← Passage Hub
All Lab Tools Security Services Support

Shadow X-Ray Static Audit Report

examples/demo_vuln_app | web_or_asset_dir | SHA-256: directory | Scanned: 2026-11-23T02:21:39+00:00
7Total Findings
6Critical / High
1Medium
0Low / Info
modedirectory
total_files3
Sev / TrackRule IDLocationFinding & Masked Evidence
CRITICAL
BOUNTY
B02-STRIPE-LIVEweb_client.htmlHardcoded 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-INJECTIONapp.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-WEBSTORAGEweb_client.htmlRaw 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-FILEapp.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-SHELLapp.pyShell 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-TAINTserver.js:7Tainted 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-SCRIPTweb_client.htmlExternal 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.