prabhuat commited on
Commit
d20f162
·
verified ·
1 Parent(s): 07b3446

Upload 13 files

Browse files
.gitattributes CHANGED
@@ -103,3 +103,5 @@ java/dependency-track/depscan.pdf filter=lfs diff=lfs merge=lfs -text
103
  java/dependency-track/java-app.atom filter=lfs diff=lfs merge=lfs -text
104
  java/dependency-track/java-usages.slices.json filter=lfs diff=lfs merge=lfs -text
105
  rust/rustdesk/sbom-postbuild-rust.cdx.json filter=lfs diff=lfs merge=lfs -text
 
 
 
103
  java/dependency-track/java-app.atom filter=lfs diff=lfs merge=lfs -text
104
  java/dependency-track/java-usages.slices.json filter=lfs diff=lfs merge=lfs -text
105
  rust/rustdesk/sbom-postbuild-rust.cdx.json filter=lfs diff=lfs merge=lfs -text
106
+ rust/rustpad/js-app.atom filter=lfs diff=lfs merge=lfs -text
107
+ rust/rustpad/sbom-postbuild-rust.cdx.json filter=lfs diff=lfs merge=lfs -text
rust/rustpad/depscan-universal.vdr.json ADDED
The diff for this file is too large to render. See raw diff
 
rust/rustpad/depscan.html ADDED
The diff for this file is too large to render. See raw diff
 
rust/rustpad/depscan.pdf ADDED
Binary file (79.4 kB). View file
 
rust/rustpad/depscan.toml.sample ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ config = "/Users/prabhu/work/owasp/dep-scan/.config/depscan.toml"
2
+ src_dir_image = "/Users/prabhu/sandbox/rustpad"
3
+ reports_dir = "/Users/prabhu/sandbox/rustpad/reports"
4
+ csaf = false
5
+ profile = "generic"
6
+ bom_engine = "auto"
7
+ vuln_analyzer = "LifecycleAnalyzer"
8
+ reachability_analyzer = "SemanticReachability"
9
+ suggest = true
10
+ risk_audit = false
11
+ project_type = [ "universal",]
12
+ bom_dir = "/Users/prabhu/sandbox/rustpad/reports"
13
+ report_name = "rendered.report"
14
+ deep_scan = false
15
+ fuzzy_search = false
16
+ search_order = "pcu"
17
+ non_universal_scan = false
18
+ no_vuln_table = false
19
+ server_mode = false
20
+ server_host = "127.0.0.1"
21
+ server_port = "7070"
22
+ enable_debug = false
23
+ quiet = false
24
+ explain = true
25
+ explanation_mode = "EndpointsAndReachables"
26
+ annotate = false
27
+ src_dir = "/Users/prabhu/sandbox/rustpad"
28
+ html_report_file = "/Users/prabhu/sandbox/rustpad/reports/depscan.html"
29
+ pdf_report_file = "/Users/prabhu/sandbox/rustpad/reports/depscan.pdf"
30
+ txt_report_file = "/Users/prabhu/sandbox/rustpad/reports/depscan.txt"
31
+ depscan_version = "6.0.0"
rust/rustpad/depscan.txt ADDED
@@ -0,0 +1,437 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Dependency Scan Results (BOM)
3
+ ╔════════════════════════════════════════════════════════════════════╤══════════════════════════════════╤═══════════════════╤══════════════╤═════════╗
4
+ ║ Dependency Tree │ Insights │ Fix Version │ Severity │ Score ║
5
+ ╟────────────────────────────────────────────────────────────────────┼──────────────────────────────────┼───────────────────┼──────────────┼─────────╢
6
+ ║ env_logger@0.7.1 │ Not maintained │ │ LOW │ 2.0 ║
7
+ ║ └── atty@0.2.14 ⬅ RUSTSEC-2024-0375 │ │ │ │ ║
8
+ ║ env_logger@0.7.1 │ │ │ LOW │ 2.0 ║
9
+ ║ └── atty@0.2.14 ⬅ RUSTSEC-2021-0145 │ │ │ │ ║
10
+ ║ env_logger@0.7.1 │ │ │ LOW │ 2.0 ║
11
+ ║ └── atty@0.2.14 ⬅ GHSA-g98v-hv3f-hcfr │ │ │ │ ║
12
+ ╟────────────────────────────────────────────────────────────────────┼──────────────────────────────────┼───────────────────┼──────────────┼─────────╢
13
+ ║ rustpad-server@0.1.0 │ Not maintained │ │ LOW │ 2.0 ║
14
+ ║ └── dotenv@0.15.0 ⬅ RUSTSEC-2021-0141 │ │ │ │ ║
15
+ ╟────────────────────────────────────────────────────────────────────┼──────────────────────────────────┼───────────────────┼──────────────┼─────────╢
16
+ ║ url@2.5.2 │ │ 1.0.0 │ LOW │ 2.0 ║
17
+ ║ └── idna@0.5.0 ⬅ RUSTSEC-2024-0421 │ │ │ │ ║
18
+ ║ url@2.5.2 │ │ │ MEDIUM │ 6.3 ║
19
+ ║ └── idna@0.5.0 ⬅ CVE-2024-12224 │ │ │ │ ║
20
+ ╟────────────────────────────────────────────────────────────────────┼──────────────────────────────────┼───────────────────┼──────────────┼─────────╢
21
+ ║ instant@0.1.13 ⬅ RUSTSEC-2024-0384 │ Not maintained │ │ LOW │ 2.0 ║
22
+ ╟────────────────────────────────────────────────────────────────────┼──────────────────────────────────┼────────��──────────┼──────────────┼─────────╢
23
+ ║ sqlx-core@0.6.3 │ │ 0.25.1 │ HIGH │ 7.5 ║
24
+ ║ └── libsqlite3-sys@0.24.2 ⬅ RUSTSEC-2022-0090 │ │ │ │ ║
25
+ ║ sqlx-core@0.6.3 │ │ │ HIGH │ 7.5 ║
26
+ ║ └── libsqlite3-sys@0.24.2 ⬅ CVE-2022-35737 │ │ │ │ ║
27
+ ╟────────────────────────────────────────────────────────────────────┼──────────────────────────────────┼───────────────────┼──────────────┼─────────╢
28
+ ║ sqlx-core@0.6.3 │ Not maintained │ │ LOW │ 2.0 ║
29
+ ║ └── paste@1.0.15 ⬅ RUSTSEC-2024-0436 │ │ │ │ ║
30
+ ╟────────────────────────────────────────────────────────────────────┼──────────────────────────────────┼───────────────────┼──────────────┼─────────╢
31
+ ║ sqlx-core@0.6.3 │ │ 0.17.12 │ LOW │ 2.0 ║
32
+ ║ └── rustls@0.20.9 │ │ │ │ ║
33
+ ║ └── ring@0.16.20 ⬅ RUSTSEC-2025-0010 │ │ │ │ ║
34
+ ║ sct@0.7.1 │ │ │ LOW │ 2.0 ║
35
+ ║ └── ring@0.17.8 ⬅ RUSTSEC-2025-0009 │ │ │ │ ║
36
+ ║ sct@0.7.1 │ │ │ LOW │ 2.0 ║
37
+ ║ └── ring@0.17.8 ⬅ RUSTSEC-2025-0009 │ │ │ │ ║
38
+ ║ sct@0.7.1 │ │ │ MEDIUM │ 6.6 ║
39
+ ║ └── ring@0.17.8 ⬅ GHSA-4p46-pwfr-66x6 │ │ │ │ ║
40
+ ║ sct@0.7.1 │ │ │ MEDIUM │ 6.6 ║
41
+ ║ └── ring@0.17.8 ⬅ GHSA-4p46-pwfr-66x6 │ │ │ │ ║
42
+ ╟────────────────────────────────────────────────────────────────────┼──────────────────────────────────┼───────────────────┼──────────────┼─────────╢
43
+ ║ sqlx-core@0.6.3 │ │ 0.21.11 │ HIGH │ 7.5 ║
44
+ ║ └── rustls@0.20.9 ⬅ RUSTSEC-2024-0336 │ │ │ │ ║
45
+ ╟────────────────────────────────────────────────────────────────────┼──────────────────────────────────┼───────────────────┼──────────────┼─────────╢
46
+ ║ rustpad-server@0.1.0 │ │ 0.8.1 │ LOW │ 2.0 ║
47
+ ║ └── sqlx@0.6.3 ⬅ RUSTSEC-2024-0363 │ │ │ │ ║
48
+ ║ rustpad-server@0.1.0 │ │ │ MEDIUM │ 5.0 ║
49
+ ║ └── sqlx@0.6.3 ⬅ GHSA-xmrp-424f-vfpx │ │ │ │ ║
50
+ ╟────────────────────────────────────────────────────────────────────┼──────────────────────────────────┼───────────────────┼──────────────┼─────────╢
51
+ ║ hyper@0.14.30 │ │ 1.38.2 │ LOW │ 2.0 ║
52
+ ║ └── h2@0.3.26 │ │ │ │ ║
53
+ ║ └── tokio@1.38.1 ⬅ RUSTSEC-2025-0023 │ │ │ │ ║
54
+ ║ hyper@0.14.30 │ │ │ LOW │ 2.7 ║
55
+ ║ └── h2@0.3.26 │ │ │ │ ║
56
+ ║ └── tokio@1.38.1 ⬅ GHSA-rr8g-9fpq-6wmg │ │ │ │ ║
57
+ ╟────────────────────────────────────────────────────────────────────┼──────────────────────────────────┼───────────────────┼──────────────┼─────────╢
58
+ ║ vite@6.0.6 │ 🎯 Used in 4 locations │ 0.25.0 │ MEDIUM │ 5.3 ║
59
+ ║ └── esbuild@0.24.2 ⬅ GHSA-67mh-4wv8-2f99 │ │ │ │ ║
60
+ ╟────────────────────────────────────────────────────────────────────┼──────────────────────────────────┼───────────────────┼──────────────┼─────────╢
61
+ ║ plugin-react@4.3.4 │ 🎯 Used in 6 locations │ 6.0.15 │ MEDIUM │ 6.0 ║
62
+ ║ └── vite@6.0.6 ⬅ CVE-2025-32395 │ 🧾 Reachable │ │ │ ║
63
+ ║ plugin-react@4.3.4 │ 🎯 Used in 6 locations │ │ MEDIUM │ 5.3 ║
64
+ ║ └── vite@6.0.6 ⬅ CVE-2025-31486 │ 🧾 Reachable │ │ │ ║
65
+ ║ plugin-react@4.3.4 │ 🎯 Used in 6 locations │ │ MEDIUM │ 5.3 ║
66
+ ║ └── vite@6.0.6 ⬅ CVE-2025-31125 │ 🧾 Reachable │ │ │ ║
67
+ ║ plugin-react@4.3.4 │ 🎯 Used in 6 locations │ │ MEDIUM │ 5.3 ║
68
+ ║ └── vite@6.0.6 ⬅ CVE-2025-30208 │ 🧾 Reachable │ │ │ ║
69
+ ║ plugin-react@4.3.4 │ 🎯 Used in 6 locations │ │ MEDIUM │ 6.5 ║
70
+ ║ └── vite@6.0.6 ⬅ CVE-2025-24010 │ 🧾 Reachable │ │ │ ║
71
+ ╚═══════════════���════════════════════════════════════════════════════╧══════════════════════════════════╧═══════════════════╧══════════════╧═════════╝
72
+ Vulnerabilities count: 26
73
+ ╭──────────────────────────────────────────────── Recommendation ─────────────────────────────────────────────────╮
74
+ │ ✅ No packages require immediate attention, as the major vulnerabilities are neither reachable nor exploitable. │
75
+ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
76
+
77
+ Proactive Measures
78
+
79
+ Below are the top reachable packages identified by depscan. Set up alerts and notifications to actively monitor them for new vulnerabilities and exploits.
80
+ 🕸 Top Endpoint-Reachable Packages
81
+ ╔═══════════════════════════╤═════════════════╗
82
+ ║ Package │ Reachable Flows ║
83
+ ╟───────────────────────────┼─────────────────╢
84
+ ║ pkg:npm/react@18.3.1 │ 530 ║
85
+ ╟───────────────────────────┼─────────────────╢
86
+ ║ pkg:npm/react-is@16.13.1 │ 213 ║
87
+ ╟───────────────────────────┼─────────────────╢
88
+ ║ pkg:npm/react-icons@5.4.0 │ 101 ║
89
+ ╚═══════════════════════════╧═════════════════╝
90
+
91
+ Service Endpoints
92
+
93
+ The following endpoints and code hotspots were identified by depscan. Verify that proper authentication and authorization mechanisms are in place to secure them.
94
+
95
+
96
+ Reachable Flows
97
+
98
+ Below are several data flows identified by depscan, including reachable ones. Use the tips provided to strengthen your application’s security posture.
99
+
100
+ #1 let cachedUint8Memory0 = null can be used to reach this package from certain endpoints.
101
+ ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
102
+ ║ rustpad-wasm/pkg/rustpad_wasm_bg.js#33 let cachedUint8Memory0 = null ║
103
+ ║ Tags: pkg:npm/react-is@16.13.1, framework ║
104
+ ║ ║
105
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#36 cachedUint8Memory0 === null ║
106
+ ║ │ Tags: pkg:npm/react-is@16.13.1, framework ║
107
+ ║ │ ║
108
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#39 return cachedUint8Memory0 ║
109
+ ║ └── rustpad-wasm/pkg/rustpad_wasm_bg.js#44 getUint8Memory0() ║
110
+ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
111
+ Reachable Packages:
112
+ pkg:npm/react-is@16.13.1
113
+
114
+ #2 var r1 = getInt32Memory0() can be used to reach 2 packages from certain endpoints.
115
+ ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
116
+ ║ rustpad-wasm/pkg/rustpad_wasm_bg.js#341 var r1 = getInt32Memory0() ║
117
+ ║ Tags: pkg:npm/rustpad-wasm@0.1.0, pkg:npm/react-is@16.13.1, framework ║
118
+ ║ ║
119
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#343 deferred1_1 = r1 ║
120
+ ║ │ Tags: pkg:npm/rustpad-wasm@0.1.0, pkg:npm/react-is@16.13.1, framework ║
121
+ ║ │ ║
122
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#344 getStringFromWasm0(r0, r1) ║
123
+ ║ │ Tags: pkg:npm/rustpad-wasm@0.1.0, pkg:npm/react-is@16.13.1, framework ║
124
+ ║ │ ║
125
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#42 getStringFromWasm0(len) ↩ ║
126
+ ║ │ Tags: pkg:npm/rustpad-wasm@0.1.0 ║
127
+ ║ │ ║
128
+ ║ └── rustpad-wasm/pkg/rustpad_wasm_bg.js#44 ptr + len ║
129
+ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
130
+ Reachable Packages:
131
+ pkg:npm/react-is@16.13.1
132
+ pkg:npm/rustpad-wasm@0.1.0
133
+
134
+ #3 The flow originates from a module import.
135
+ ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
136
+ ║ src/User.tsx#1 require("@chakra-ui/react") ║
137
+ ║ Tags: pkg:npm/%40chakra-ui/react@2.10.4, pkg:npm/react@18.3.1, framework ║
138
+ ║ ║
139
+ ║ └── src/User.tsx#18 require("react") ║
140
+ ║ Tags: pkg:npm/react@18.3.1, framework ║
141
+ ║ ║
142
+ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
143
+ Reachable Packages:
144
+ pkg:npm/%40chakra-ui/react@2.10.4
145
+ pkg:npm/react@18.3.1
146
+
147
+ #4 The flow originates from a module import.
148
+ ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
149
+ ║ src/index.tsx#2 require("react") ║
150
+ ║ Tags: pkg:npm/react@18.3.1, framework ║
151
+ ║ ║
152
+ ║ ├── src/index.tsx#3 require("react-dom/client") ║
153
+ ║ │ Tags: pkg:npm/react@18.3.1, framework, pkg:npm/react-dom@18.3.1 ║
154
+ ║ │ ║
155
+ ║ ├── src/index.tsx#4 require("rustpad-wasm") ║
156
+ ║ │ Tags: pkg:npm/rustpad-wasm@0.1.0 ║
157
+ ║ │ ║
158
+ ║ ├── src/index.tsx#6 require("./App") ║
159
+ ║ ├── src/index.tsx#7 require("./index.css") ║
160
+ ║ └── src/index.tsx#9 createRoot(document.getElementById("root")!) ║
161
+ ║ Tags: pkg:npm/stylis@4.2.0, pkg:npm/react-dom@18.3.1, framework ║
162
+ ║ ║
163
+ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
164
+ Reachable Packages:
165
+ pkg:npm/stylis@4.2.0
166
+ pkg:npm/rustpad-wasm@0.1.0
167
+ pkg:npm/react-dom@18.3.1
168
+ pkg:npm/react@18.3.1
169
+
170
+ #5 The flow originates from a module import.
171
+ ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
172
+ ║ src/User.tsx#1 require("@chakra-ui/react") ║
173
+ ║ Tags: pkg:npm/%40chakra-ui/react@2.10.4, pkg:npm/react@18.3.1, framework ║
174
+ ║ ║
175
+ ║ ├── src/User.tsx#18 require("react") ║
176
+ ║ │ Tags: pkg:npm/react@18.3.1, framework ║
177
+ ║ │ ║
178
+ ║ └── src/User.tsx#19 require("react-icons/fa") ║
179
+ ║ Tags: pkg:npm/react@18.3.1, framework, pkg:npm/react-icons@5.4.0 ║
180
+ ║ ║
181
+ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
182
+ Reachable Packages:
183
+ pkg:npm/react-icons@5.4.0
184
+ pkg:npm/%40chakra-ui/react@2.10.4
185
+ pkg:npm/react@18.3.1
186
+
187
+ #6 getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf) can be used to reach 3 packages from certain endpoints.
188
+ ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
189
+ ║ rustpad-wasm/pkg/rustpad_wasm_bg.js#84 getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf) ║
190
+ ║ Tags: pkg:npm/react-is@16.13.1, framework ║
191
+ ║ ║
192
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#83 buf.length ║
193
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#84 ptr + buf.length ║
194
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#86 return ptr ║
195
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#255 passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc) ║
196
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#257 wasm.opseq_apply(retptr, this.__wbg_ptr, ptr0, len0) ║
197
+ ║ └── rustpad-wasm/pkg/rustpad_wasm_bg.js#258 getInt32Memory0() ║
198
+ ║ Tags: pkg:npm/rustpad-wasm@0.1.0, pkg:npm/react-is@16.13.1, framework ║
199
+ ║ ║
200
+ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
201
+ Reachable Packages:
202
+ pkg:npm/react-is@16.13.1
203
+ pkg:npm/stylis@4.2.0
204
+ pkg:npm/rustpad-wasm@0.1.0
205
+
206
+ #7 getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf) can be used to reach this package from certain endpoints.
207
+ ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
208
+ ║ rustpad-wasm/pkg/rustpad_wasm_bg.js#84 getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf) ║
209
+ ║ Tags: pkg:npm/react-is@16.13.1, framework ║
210
+ ║ ║
211
+ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
212
+ Reachable Packages:
213
+ pkg:npm/react-is@16.13.1
214
+
215
+ #8 The flow originates from a module import.
216
+ ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════���═══════════════════════╗
217
+ ║ src/App.tsx#1 require("@chakra-ui/react") ║
218
+ ║ Tags: pkg:npm/%40chakra-ui/react@2.10.4, pkg:npm/react@18.3.1, framework ║
219
+ ║ ║
220
+ ║ ├── src/App.tsx#2 require("@monaco-editor/react") ║
221
+ ║ │ Tags: pkg:npm/react@18.3.1, framework, pkg:npm/%40monaco-editor/react@4.6.0, pkg:npm/monaco-editor@0.52.2 ║
222
+ ║ │ ║
223
+ ║ ├── src/App.tsx#3 require("monaco-editor/esm/vs/editor/editor.api") ║
224
+ ║ │ Tags: pkg:npm/monaco-editor@0.52.2 ║
225
+ ║ │ ║
226
+ ║ ├── src/App.tsx#4 require("react") ║
227
+ ║ │ Tags: pkg:npm/react@18.3.1, framework ║
228
+ ║ │ ║
229
+ ║ └── src/App.tsx#5 require("react-icons/vsc") ║
230
+ ║ Tags: pkg:npm/react@18.3.1, framework, pkg:npm/react-icons@5.4.0 ║
231
+ ║ ║
232
+ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
233
+ Reachable Packages:
234
+ pkg:npm/react-icons@5.4.0
235
+ pkg:npm/%40chakra-ui/react@2.10.4
236
+ pkg:npm/%40monaco-editor/react@4.6.0
237
+ pkg:npm/monaco-editor@0.52.2
238
+ pkg:npm/react@18.3.1
239
+
240
+ #9 The flow originates from a module import.
241
+ ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
242
+ ║ src/ConnectionStatus.tsx#1 require("@chakra-ui/react") ║
243
+ ║ Tags: pkg:npm/%40chakra-ui/react@2.10.4, pkg:npm/react@18.3.1, framework ║
244
+ ║ ║
245
+ ║ └── src/ConnectionStatus.tsx#2 require("react-icons/vsc") ║
246
+ ║ Tags: pkg:npm/react@18.3.1, framework, pkg:npm/react-icons@5.4.0 ║
247
+ ║ ║
248
+ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
249
+ Reachable Packages:
250
+ pkg:npm/react-icons@5.4.0
251
+ pkg:npm/%40chakra-ui/react@2.10.4
252
+ pkg:npm/react@18.3.1
253
+
254
+ #10 getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf) can be used to reach 3 packages from certain endpoints.
255
+ ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
256
+ ║ rustpad-wasm/pkg/rustpad_wasm_bg.js#84 getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf) ║
257
+ ║ Tags: pkg:npm/react-is@16.13.1, framework ║
258
+ ║ ║
259
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#83 buf.length ║
260
+ ║ ├── ║
261
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#409 passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc) ║
262
+ ║ │ Tags: pkg:npm/rustpad-wasm@0.1.0, pkg:npm/stylis@4.2.0 ║
263
+ ║ │ ║
264
+ ║ └── rustpad-wasm/pkg/rustpad_wasm_bg.js#411 getInt32Memory0() ║
265
+ ║ Tags: pkg:npm/rustpad-wasm@0.1.0, pkg:npm/react-is@16.13.1, framework ║
266
+ ║ ║
267
+ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
268
+ Reachable Packages:
269
+ pkg:npm/react-is@16.13.1
270
+ pkg:npm/stylis@4.2.0
271
+ pkg:npm/rustpad-wasm@0.1.0
272
+
273
+ #11 The flow originates from a module import.
274
+ ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
275
+ ║ src/index.tsx#2 require("react") ║
276
+ ║ Tags: pkg:npm/react@18.3.1, framework ║
277
+ ║ ║
278
+ ║ └── src/index.tsx#3 require("react-dom/client") ║
279
+ ║ Tags: pkg:npm/react@18.3.1, framework, pkg:npm/react-dom@18.3.1 ║
280
+ ║ ║
281
+ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
282
+ Reachable Packages:
283
+ pkg:npm/react-dom@18.3.1
284
+ pkg:npm/react@18.3.1
285
+
286
+ #12 The flow originates from a module import.
287
+ ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
288
+ ║ src/Sidebar.tsx#1 require("@chakra-ui/react") ║
289
+ ║ Tags: pkg:npm/%40chakra-ui/react@2.10.4, pkg:npm/react@18.3.1, framework ║
290
+ ║ ║
291
+ ║ └── src/Sidebar.tsx#16 require("react-icons/vsc") ║
292
+ ║ Tags: pkg:npm/react@18.3.1, framework, pkg:npm/react-icons@5.4.0 ║
293
+ ║ ║
294
+ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
295
+ Reachable Packages:
296
+ pkg:npm/react-icons@5.4.0
297
+ pkg:npm/%40chakra-ui/react@2.10.4
298
+ pkg:npm/react@18.3.1
299
+
300
+ #13 The flow originates from a module import.
301
+ ╔═════════════════════════════════════════════════════════════════════════════════════════════════════��══════════════════════════════════════════════╗
302
+ ║ src/ReadCodeConfirm.tsx#1 require("@chakra-ui/react") ║
303
+ ║ Tags: pkg:npm/%40chakra-ui/react@2.10.4, pkg:npm/react@18.3.1, framework ║
304
+ ║ ║
305
+ ║ └── src/ReadCodeConfirm.tsx#10 require("react") ║
306
+ ║ Tags: pkg:npm/react@18.3.1, framework ║
307
+ ║ ║
308
+ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
309
+ Reachable Packages:
310
+ pkg:npm/%40chakra-ui/react@2.10.4
311
+ pkg:npm/react@18.3.1
312
+
313
+ #14 getUint8Memory0() can be used to reach 5 packages from certain endpoints.
314
+ ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
315
+ ║ rustpad-wasm/pkg/rustpad_wasm_bg.js#92 getUint8Memory0() ║
316
+ ║ Tags: pkg:npm/rustpad-wasm@0.1.0, pkg:npm/react-is@16.13.1, framework ║
317
+ ║ ║
318
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#106 realloc(ptr, len, len = offset + arg.length * 3, 1) ║
319
+ ║ │ Tags: pkg:npm/rustpad-wasm@0.1.0, pkg:npm/stylis@4.2.0 ║
320
+ ║ │ ║
321
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#107 ptr + len ║
322
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#108 encodeString(arg, view) ║
323
+ ║ │ Tags: pkg:npm/%40jridgewell/sourcemap-codec@1.5.0, pkg:npm/framer-motion@11.15.0 ║
324
+ ║ │ ║
325
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#110 ret.written ║
326
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#111 realloc(ptr, len, offset, 1) ║
327
+ ║ │ Tags: pkg:npm/stylis@4.2.0 ║
328
+ ║ │ ║
329
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#115 return ptr ║
330
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#255 passStringToWasm0(s, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc) ║
331
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#257 wasm.opseq_apply(retptr, this.__wbg_ptr, ptr0, len0) ║
332
+ ║ └── rustpad-wasm/pkg/rustpad_wasm_bg.js#258 getInt32Memory0() ║
333
+ ║ Tags: pkg:npm/rustpad-wasm@0.1.0, pkg:npm/react-is@16.13.1, framework ║
334
+ ║ ║
335
+ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
336
+ Reachable Packages:
337
+ pkg:npm/%40jridgewell/sourcemap-codec@1.5.0
338
+ pkg:npm/react-is@16.13.1
339
+ pkg:npm/framer-motion@11.15.0
340
+ pkg:npm/stylis@4.2.0
341
+ pkg:npm/rustpad-wasm@0.1.0
342
+
343
+ #15 cachedUint8Memory0 === null can be used to reach this package from certain endpoints.
344
+ ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
345
+ ║ rustpad-wasm/pkg/rustpad_wasm_bg.js#36 cachedUint8Memory0 === null ║
346
+ ║ Tags: pkg:npm/react-is@16.13.1, framework ║
347
+ ║ ║
348
+ ║ ├── rustpad-wasm/pkg/rustpad_wasm_bg.js#39 return cachedUint8Memory0 ║
349
+ ║ └── rustpad-wasm/pkg/rustpad_wasm_bg.js#84 getUint8Memory0() ║
350
+ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
351
+ Reachable Packages:
352
+ pkg:npm/react-is@16.13.1
353
+
354
+ #16 The flow originates from a module import.
355
+ ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
356
+ ║ src/App.tsx#2 require("@monaco-editor/react") ║
357
+ ║ Tags: pkg:npm/react@18.3.1, framework, pkg:npm/%40monaco-editor/react@4.6.0, pkg:npm/monaco-editor@0.52.2 ║
358
+ ║ ║
359
+ ║ ├── src/App.tsx#3 require("monaco-editor/esm/vs/editor/editor.api") ║
360
+ ║ │ Tags: pkg:npm/monaco-editor@0.52.2 ║
361
+ ║ │ ║
362
+ ║ ├── src/App.tsx#4 require("react") ║
363
+ ║ │ Tags: pkg:npm/react@18.3.1, framework ║
364
+ ║ │ ║
365
+ ║ └── src/App.tsx#5 require("react-icons/vsc") ║
366
+ ║ Tags: pkg:npm/react@18.3.1, framework, pkg:npm/react-icons@5.4.0 ║
367
+ ║ ║
368
+ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
369
+ Reachable Packages:
370
+ pkg:npm/monaco-editor@0.52.2
371
+ pkg:npm/%40monaco-editor/react@4.6.0
372
+ pkg:npm/react-icons@5.4.0
373
+ pkg:npm/react@18.3.1
374
+
375
+ #17 The flow originates from a module import.
376
+ ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
377
+ ║ src/App.tsx#2 require("@monaco-editor/react") ║
378
+ ║ Tags: pkg:npm/react@18.3.1, framework, pkg:npm/%40monaco-editor/react@4.6.0, pkg:npm/monaco-editor@0.52.2 ║
379
+ ║ ║
380
+ ║ ├── src/App.tsx#3 require("monaco-editor/esm/vs/editor/editor.api") ║
381
+ ║ │ Tags: pkg:npm/monaco-editor@0.52.2 ║
382
+ ║ │ ║
383
+ ║ ├── src/App.tsx#4 require("react") ║
384
+ ║ │ Tags: pkg:npm/react@18.3.1, framework ║
385
+ ║ │ ║
386
+ ║ └── src/App.tsx#5 require("react-icons/vsc") ║
387
+ ║ Tags: pkg:npm/react@18.3.1, framework, pkg:npm/react-icons@5.4.0 ║
388
+ ║ ║
389
+ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
390
+ Reachable Packages:
391
+ pkg:npm/monaco-editor@0.52.2
392
+ pkg:npm/%40monaco-editor/react@4.6.0
393
+ pkg:npm/react-icons@5.4.0
394
+ pkg:npm/react@18.3.1
395
+
396
+ #18 The flow originates from a module import.
397
+ ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
398
+ ║ src/App.tsx#4 require("react") ║
399
+ ║ Tags: pkg:npm/react@18.3.1, framework ║
400
+ ║ ║
401
+ ║ └── src/App.tsx#5 require("react-icons/vsc") ║
402
+ ║ Tags: pkg:npm/react@18.3.1, framework, pkg:npm/react-icons@5.4.0 ║
403
+ ║ ║
404
+ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
405
+ Reachable Packages:
406
+ pkg:npm/react-icons@5.4.0
407
+ pkg:npm/react@18.3.1
408
+
409
+ #19 The flow originates from a module import.
410
+ ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
411
+ ║ src/App.tsx#4 require("react") ║
412
+ ║ Tags: pkg:npm/react@18.3.1, framework ║
413
+ ║ ║
414
+ ║ └── src/App.tsx#5 require("react-icons/vsc") ║
415
+ ║ Tags: pkg:npm/react@18.3.1, framework, pkg:npm/react-icons@5.4.0 ║
416
+ ║ ║
417
+ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
418
+ Reachable Packages:
419
+ pkg:npm/react-icons@5.4.0
420
+ pkg:npm/react@18.3.1
421
+
422
+ #20 The flow originates from a module import.
423
+ ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
424
+ ║ src/User.tsx#1 require("@chakra-ui/react") ║
425
+ ║ Tags: pkg:npm/%40chakra-ui/react@2.10.4, pkg:npm/react@18.3.1, framework ║
426
+ ║ ║
427
+ ║ └── src/User.tsx#18 require("react") ║
428
+ ║ Tags: pkg:npm/react@18.3.1, framework ║
429
+ ║ ║
430
+ ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
431
+ Reachable Packages:
432
+ pkg:npm/%40chakra-ui/react@2.10.4
433
+ pkg:npm/react@18.3.1
434
+
435
+ Secure Design Tips
436
+
437
+ • Consider implementing a common validation and sanitization library to reduce the risk of exploitability.
rust/rustpad/js-app.atom ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3048efd9de1f9742f671bb360724ef1d97a371a984c5b6d56478149895fc58ef
3
+ size 1490944
rust/rustpad/js-openapi.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "info": {
3
+ "title": "OpenAPI Specification for reports",
4
+ "version": "1.0.0"
5
+ },
6
+ "openapi": "3.1.0",
7
+ "paths": {}
8
+ }
rust/rustpad/js-reachables.slices.json ADDED
The diff for this file is too large to render. See raw diff
 
rust/rustpad/js-usages.slices.json ADDED
The diff for this file is too large to render. See raw diff
 
rust/rustpad/sbom-build-js.cdx.json ADDED
The diff for this file is too large to render. See raw diff
 
rust/rustpad/sbom-build-rust.cdx.json ADDED
The diff for this file is too large to render. See raw diff
 
rust/rustpad/sbom-container-js.cdx.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bomFormat":"CycloneDX","specVersion":"1.6","serialNumber":"urn:uuid:40f69d6c-0620-4495-84dd-e5f2281c4585","version":1,"metadata":{"timestamp":"2025-04-27T23:58:43Z","tools":{"components":[{"group":"@cyclonedx","name":"cdxgen","version":"11.2.7","purl":"pkg:npm/%40cyclonedx/cdxgen@11.2.7","type":"application","bom-ref":"pkg:npm/@cyclonedx/cdxgen@11.2.7","publisher":"OWASP Foundation","authors":[{"name":"OWASP Foundation"}]}]},"authors":[{"name":"OWASP Foundation"}],"lifecycles":[{"phase":"pre-build"},{"phase":"post-build"}],"component":{"name":"ekzhang/rustpad","version":"latest","type":"container","purl":"pkg:oci/ekzhang/rustpad@sha256:536b63883b2661f31de580df438427f2b799f9284bf9f908708ea3b5d231b585","bom-ref":"pkg:oci/ekzhang/rustpad@sha256:536b63883b2661f31de580df438427f2b799f9284bf9f908708ea3b5d231b585"},"properties":[{"name":"oci:image:Id","value":"sha256:90623ecb332f2c9fe111dbdcbcb57b2549780df0eee9b54d84e390c14e9e7069"},{"name":"oci:image:RepoTag","value":"ekzhang/rustpad:latest"},{"name":"oci:image:RepoDigest","value":"ekzhang/rustpad@sha256:536b63883b2661f31de580df438427f2b799f9284bf9f908708ea3b5d231b585"},{"name":"oci:image:Created","value":"2025-02-02T03:02:01.159725121Z"},{"name":"oci:image:Architecture","value":"arm64"},{"name":"oci:image:Os","value":"linux"},{"name":"oci:image:manifest:Config","value":"blobs/sha256/90623ecb332f2c9fe111dbdcbcb57b2549780df0eee9b54d84e390c14e9e7069"},{"name":"oci:image:manifest:Layers","value":"blobs/sha256/b1a33970522162c035d687af20ffee6c99ebce104a6c298f977c9ddc5f4f9b8b\\nblobs/sha256/0abc8de68ee2803aab579d3a06930fefb067a87537385add08e1f960c4a2bbc7"},{"name":"oci:image:lastLayer:Env","value":"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"},{"name":"oci:image:env:PATH","value":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"},{"name":"oci:image:lastLayer:Cmd","value":"./rustpad-server"}]},"components":[],"services":[],"dependencies":[{"ref":"pkg:oci/ekzhang/rustpad@sha256:536b63883b2661f31de580df438427f2b799f9284bf9f908708ea3b5d231b585","dependsOn":[]}],"annotations":[{"bom-ref":"metadata-annotations","subjects":["pkg:oci/ekzhang/rustpad@sha256:536b63883b2661f31de580df438427f2b799f9284bf9f908708ea3b5d231b585"],"annotator":{"component":{"group":"@cyclonedx","name":"cdxgen","version":"11.2.7","purl":"pkg:npm/%40cyclonedx/cdxgen@11.2.7","type":"application","bom-ref":"pkg:npm/@cyclonedx/cdxgen@11.2.7","publisher":"OWASP Foundation","authors":[{"name":"OWASP Foundation"}]}},"timestamp":"2025-04-27T23:58:43Z","text":"This Software Bill-of-Materials (SBOM) document was created on Monday, April 28, 2025 with cdxgen. The lifecycles phases represented are: pre-build and post-build. The document describes a container named 'ekzhang/rustpad'. BOM file is empty without components. The linux image uses the arm64 architecture and has the registry tag ekzhang/rustpad:latest."}]}
rust/rustpad/sbom-postbuild-rust.cdx.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21ed7b071a33ae6e6c6f540edfd9f107d8bdfcdbe6922df2ca636637b979c7b1
3
+ size 25560198