Repository navigation
v0.8.3
brainproxy 0.8.3
What's new: far fewer false positives from SQL injection and the time based rules, JWT scan rules, and an audit's worth of fixes across the app, the CLI and the MCP server (thanks @L1ghtn1ng, #138).
New
- JWT rules. The active rule 100007 JWT Weaknesses runs on every page that sends a JSON Web Token (header, cookie or parameter). It cracks HMAC secrets offline against common and default ones, then checks the page depends on the token before trying forged tokens: changed or removed signature,
alg: none, an expired token signed again, akidpointing at/dev/null, RS/PS to HS256 algorithm confusion with the site's public key, andjku/x5ucallbacks withoob start. The passive rule 100008 JWT Issues reports tokens in query strings, and server-issued tokens withalg: none, noexp, or claims named like secrets.
SQL injection: confirmed before it's reported
On a benchmark of pages that commonly fool SQL injection checks (echoing, searches, live data, flaky and rate-limited pages, validation errors, jittery latency), safe pages raised alerts in 16 of 87 scans at MEDIUM and 27 of 87 at HIGH. Now it's none, with the same true positives (including Juice Shop's login and product search).
- A comparison that finds SQL (expression, boolean, ORDER BY) is repeated before it's reported, and the changed page must not be a 5xx or 429 the second time.
- "OR 1=1" findings need "OR 1=2" to keep the original page (word searches matched both).
- The bare LIKE pair (
%againstXYZABCDEFGHIJ) is no longer sent: a parameterisedLIKEwith unescaped wildcards answers it the same way. The quoted LIKE pairs still find concatenated LIKE clauses. - Echoed values are also recognised HTML escaped the way frameworks write quotes (
',') and JSON escaped. - An SQL error must come back for the same characters after a random value too, so a search whose results quote an SQL error isn't reported. HQL Injection (100003) and NoSQL Injection - MongoDB (40033) do the same.
- The HTTP 500 check runs for quotes only; the 500 must repeat and go away when the quotes are doubled, so input validation and type errors (
true'in a JSON boolean) no longer count. - Every time based rule (SQL 40019-40027, command injection 90037, MongoDB 90039, blind SSTI 90036, Shellshock 10048) needs a passing high/low sequence to pass a second time.
Fixes and hardening (#138)
- Command palette and dialogs: clicks inside the palette no longer take focus out of it; dialogs without a field (Export traffic, report builder) take focus so Esc works; match highlighting after an emoji.
- MCP: positional arguments followed the client's JSON key order (
history_notecould note the wrong entry); the provenance mark is set by the server for every command, also for raw and cut-off output; non-UTF-8 raw bytes come back as base64;queryrefuses statements that write (VACUUM INTO). - Scope and session rules: NAT64 addresses no longer slip past IPv4 excludes; a session rule's URL is anchored at the whole origin (
https://app.testmatchedhttps://app.test.evil.test/, and the vault could send the rule's values there). - Proxy and HTTP: absolute-form URLs with a query and no path, URLs inside an origin-form query over HTTP/2 and HTTP/3, responses with more than 256 headers, bodies decoding past 64 MiB.
- CLI: out-of-range times and rates (
--timeout inf,--rate 1e-300) are errors instead of panics;findings list --limitwithout--all,--statetypos,--remove-header Content-Length;auth add --keep-passwordkeeps a stored password when a profile is replaced (the app's edit form no longer deletes it). - Core and scanner: the redactor's panic on some non-ASCII text (report, repro, ticket, HAR export); grouped findings show the highest risk; OpenAPI percent-encoded
$refs and Postman nested variables andinheritauth; passive rules and<3/<!-->. - App: traffic rows recorded before their response stay "error" no more; the list no longer jumps to the selection on every poll; Scope keeps unsaved edits; the guided scan's job poll stops; deleting a project removes its
.record.log. AGENTS.mdfor coding agents; everyunsafeblock documents why it's sound.
Behaviour changes: negative or non-finite times and rates are errors rather than clamped; a session rule URL like https://app.test no longer covers other ports or longer host names; query refuses statements that write.
Project format
Unchanged (schema 21).
Dependencies
flate2 1.1.11 and brotli-decompressor 6.3.0 (#137), serde-saphyr 2.1.1 (#134), vite 8.3.6 (#133), Rust image 44819b2 (#136), softprops/action-gh-release 3.0.4 (#132), taiki-e/install-action 2.90.2 (#135).