| Sev / Track | Rule ID | Location | Finding & Masked Evidence |
|---|---|---|---|
| CRITICAL BOUNTY | B02-STRIPE-LIVE | web_client.html | Hardcoded Stripe Live Secret / Restricted Key (`sk_live_` / `rk_live_`) 1 match(es) detected in clear asset. sk_liv...[51 chars] Fix: Revoke and rotate live Stripe key; client apps should hold publishable keys (`pk_live_`) only. |
| CRITICAL OSS | T01-AST-CMD-INJECTION | app.py:11 (run_job) | AST-Verified Tainted Flow Into OS Shell Execution (`CWE-78`) Untrusted flow reaches `subprocess.check_output()` inside `run_job()`; hardcoded constants are excluded. Flow: request.args.get() -> target -> subprocess.check_output() Fix: Pass argument arrays with `shell=False` and validate inputs against strict allowlists (`shlex.quote` is only a fallback). |
| HIGH BOUNTY | B22-KEY-MATERIAL-WEBSTORAGE | web_client.html | Raw Private / Signing Key Material Persisted to Browser Storage (`localStorage` / `IndexedDB`) — CWE-312 / CWE-522 1 match(es) detected in clear asset. localStorage.setItem("wallet_private_key Fix: Never persist raw private/signing keys or mnemonics in `localStorage`/`sessionStorage`/`IndexedDB` (XSS-readable); hold them in a non-extractable `CryptoKey` (WebCrypto), a hardware/secure enclave, or server-side custody. |
| HIGH BOUNTY | T08-AST-UNHARDENED-ACTIVE-SEND-FILE | app.py:17 (serve_asset) | Inline `send_file()` Serves Dynamic or Active MIME Type Without CSP Sandbox / `as_attachment=True` (`CWE-79`) `serve_asset()` calls `send_file()` with dynamic/active `mimetype` and without unconditional `as_attachment=True` or `Content-Security-Policy: sandbox` hardening. send_file(mimetype=...) inline in `serve_asset` Fix: Apply active-content response hardening (`Content-Security-Policy: default-src 'none'; sandbox`, `X-Content-Type-Options: nosniff`, and forced `Content-Disposition: attachment` for HTML/XML/SVG). |
| HIGH OSS | O01-CMD-EXEC-SHELL | app.py | Shell Command Execution Sink (`shell=True` / `os.system` / `sh -c`) — CWE-78 Review 1 match(es) detected in clear asset. shell=True Fix: Replace shell invocation with argument arrays (`shell=False` / `execFile` / `exec.Command(bin, args...)`) to prevent command injection. |
| HIGH OSS | T04-JS-SSRF-TAINT | server.js:7 | Tainted URL Into Outbound HTTP Client (`fetch`/`axios`) — CWE-918 Untrusted flow reaches `fetch(...)`; constant-only arguments are excluded. Flow: req.query.url -> targetUrl -> fetch() Fix: Allowlist destination host/scheme and block loopback/RFC1918/link-local (`169.254.169.254`). |
| MEDIUM BOUNTY | B21-UNPINNED-EXTERNAL-SCRIPT | web_client.html | External Remote `<script>` Loaded Without Subresource Integrity (`integrity=` / SRI) 1 match(es) detected in clear asset. <script src="https://cdn.example.net/sdk-v2.js"> Fix: Pin external third-party CDN scripts (A/B testing, tag managers, checkout widgets) with `integrity="sha384-..."`, strict CSP `script-src`, or self-hosted immutable artifacts. |