Repository navigation
brainproxy 0.9.0
brainproxy 0.9.0
What's new: a much more accurate scanner, and findings that are faster to triage and harder to get wrong.
- The active scanner finds nearly twice as much, with no false positives. On the OWASP Benchmark (1,639 test cases in 7 categories, run locally at medium strength with
--inject-names), brainproxy scores +95.5%, up from +52.2% in 0.8.4. It has 0 false positives in every category. - New checks:
- LDAP injection, plus XPath injection when errors are hidden
- NoSQL login bypass
- attacks on parameter, header and cookie names
- path traversal against pages that only say whether a file exists
- anonymous writes
- secrets, password hashes, API descriptions, metrics and source maps in responses
- Much less noise. Dozens of checks were tightened against false positives, using the OWASP Benchmark and OWASP Juice Shop. On Juice Shop, a crawl and passive scan now reports 203 findings instead of 293, without losing a real one.
- Triage: keyboard triage, suppression rules, decisions that carry over to new instances, your own risk ratings, and reports with one section per issue.
- Agents can no longer overwrite a person's decisions.
Scanner: accuracy
| OWASP Benchmark category | 0.8.4 | 0.9.0 |
|---|---|---|
| SQL injection | 87.5% | 100% |
| Cross-site scripting | 75.6% | 88.6% |
| Command injection | 85.7% | 97.6% |
| Path traversal | 16.5% | 82.0% |
| LDAP injection | 0% | 100% |
| XPath injection | 0% | 100% |
| Secure cookie flag | 100% | 100% |
| Average (Benchmark score) | +52.2% | +95.5% |
Each score is the true-positive rate minus the false-positive rate. The false-positive rate is 0% in every category in both versions.
New checks
- LDAP Injection (40015). Finds LDAP errors, and filters that change which results come back.
- XPath Injection (90021) when errors are hidden. A boolean pair is confirmed with a second pair that only XPath understands, so SQL injection isn't reported as XPath.
- Attacks on names (
scan active --inject-names, on at high and insane strength). The names of query and form parameters, JSON keys, cookies and headers are attacked as well as their values. A finding names its pointname:<name>.scan policy save NAME --inject-names on|off|autokeeps the setting. - Path traversal against pages that only say whether a file exists. Two new checks (6-6, 6-7) compare the answers for a file that exists and one that doesn't.
- NoSQL injection:
- finds a login that a
$neoperator lets in - proves an operator with
$inwhere the database has no$eq - recognises Node's MongoDB and Mongoose errors
- finds a login that a
- JWT:
- The JWT rule now attacks tokens sent with
--auth, behind their placeholders. - Key confusion (RS256 signed as HS256) looks for the public key in history, in directory listings the passive scan found, and at common key paths.
- The JWT rule now attacks tokens sent with
- Access control: a write that succeeds without a session is a finding (100004-2), not a public endpoint.
- New passive checks (brainproxy's own, 100020–100025):
- private keys, provider API keys and hard-coded passwords in scripts and responses
- password digests in password fields and modern hash formats
- API descriptions (OpenAPI, Swagger)
- Prometheus metrics
- source maps
- JSONP endpoints
- Directory Browsing recognises Express, Python, Tomcat, Go and nginx listings.
- Application Error Disclosure reads a 500 page's body and recognises current stack-trace formats.
- Vulnerable JS Library reports every library on a page, and reads minified jQuery and lodash.
- zstd-compressed responses are decoded when recorded, so they are scanned like any other.
Fewer false reports
- SQL injection:
- A database error in a 500 page names the database, and a bare 500 is only a last resort.
- A cookie that accepts
""but not"no longer counts as broken SQL.
- XSS:
- A reflection in JSON or plain text is not reported as High.
- Full-width brackets echoed back are not reported as XSS.
- Command injection: output must disappear when the command is commented out.
- Format string: a 500 counts only when the format conversions cause it.
- Path traversal:
- Only reads files that a write can't damage, so a vulnerable write handler can't empty
/etc/passwd. - The check that reported a 200 for the URL's own file name is gone.
- Only reads files that a write can't damage, so a vulnerable write handler can't empty
- Remote File Inclusion and External Redirect no longer send the target to third-party hosts. They use the out-of-band server and a
.invalidredirect host. - Copies of a page: page-level findings (missing CSP, anti-clickjacking, Modern Web Application and others) on an identical copy of a page at another URL count as one more hit of the same finding. This covers a single-page app's catch-all page and shared error pages. On Juice Shop, missing-CSP findings go from 68 to 19 and Modern Web Application from 40 to 2.
- Private IP Disclosure:
- skips CIDR ranges
- skips your own address when an internal server echoes it back (
::ffff:172.17.0.1behind Docker)
- CORS:
- graded by what another site can actually read
- an origin allowed without credentials is Low, once per host
- Other passive rules:
- Error-message rules don't treat JSON data or source maps as error pages.
- JWT checks don't read tokens inside scripts or source maps.
- Timestamp Disclosure counts once per response and ignores ids in URLs and scripts.
- SRI Missing reads only pages.
- Missing CSP and anti-clickjacking skip HTML bodies with no markup.
- A 304 without HSTS isn't reported.
- Engine.IO's transport id isn't a session id in the URL.
- PII Disclosure rates an unlabelled card-like number Medium, at low confidence.
- Checks feed: a matcher that would match every response is not loaded.
Findings and triage
- People's decisions are protected.
- An agent (MCP) can't change or clear what a person set: state, rating or note.
- It can suggest instead (
findings mark --suggest), and the person accepts or dismisses the suggestion in the app. --if-staterefuses a change when the finding moved on in the meantime.
- Decisions carry over. An issue marked false positive or accepted risk as a whole passes that decision, with its note, to new instances found later.
- Suppression rules (
findings suppress add|list|remove). Mark an alert on a host (optionally on one port,--host 127.0.0.1:3000) as a false positive, now and on every later scan. Only a person can add one; MCP can't. - Your own ratings (
findings rate). A person can rate a scanner finding's risk and confidence, and lists and reports use the rating. Only a person can rate; MCP can't. - Better proof:
findings verifyreproduces an "OR true" SQL injection from the stored OR request.- For a forged JWT, it replays the valid token, the forged token and a request without a token, and says "reproduced" only when the forged token is let in where no token isn't.
- Findings are filed where the attack went. A finding reached through a redirect is filed under the request that was attacked, and its retest command scans that request.
- Lists and summaries:
findings listpages with--offset, says the total and whether it was cut, and takes--issue.- The
scan activesummary counts requests that got no answer and lists this scan's findings only. - Access Control Bypass has its own id, 100009, separate from HQL Injection.
Reports
- One section per issue, under its own title, with one proof and a table of affected places.
- Every left-out finding is counted, and says why (state, suppression rule).
report --statetakes a comma list (open,confirmed,accepted_risk).--provenancesays who recorded each finding.- Client reports keep tool internals out.
Desktop app
- Keyboard triage in Findings: J/K move, then C/F/A/Shift+F/R/O mark the finding and open the next.
- Payload highlighting: a finding's request pane highlights its payload, or the parameter it was found in.
- Agent suggestions show on the finding, to accept or dismiss.
- Large projects: Findings reads big projects in pages of 5,000 and says when there are more. Unsaved notes are kept per finding, the open finding follows changes, and risk counts follow the filter.
- The report builder can say who recorded each finding, and counts what the report leaves out.
- Verify comparison: the payload view shows the three-way JWT verify (valid, forged, without a token).
Crawler
-
Single-page apps:
- The catch-all page is read once, not at every path.
- Router links in apps that route after
#are followed as routes. - Routes that a script posts to are listed as unconfirmed endpoints instead of being sent as GET.
- API paths in template literals, and script paths after a base URL that contains a path, resolve correctly.
- Stack-trace file paths and strings from minified code aren't requested as links.
- The summary says when its endpoint list was cut.
-
Browser crawl fills harder forms:
- comboboxes and listboxes
- sliders
- arithmetic captchas
- see-through checkboxes and radios that component libraries draw over
- staged forms that wait for a lookup
- forms whose button stays disabled until the fields are valid
On OWASP Juice Shop it now submits the registration, contact and complaint forms.
-
Browser crawl wastes fewer requests:
- A list's rows (every product's "Add to basket") are tried once, not row by row.
- Data the app reads again, and scripts and fonts the browser revalidates, are answered by the crawl itself until something is written.
- On Juice Shop, a logged-in crawl sends 2,747 requests instead of 4,979 and now reaches the order history, addresses, cards, wallet and profile pages.
-
Logged-in crawls keep the session: a browser login keeps the site's localStorage and sessionStorage, and the browser crawl puts them back.
-
Side effects: the manual now says plainly that the browser crawl changes data the way a person clicking through would (baskets, feedback, sign-ups).
Dependencies
- Dependency updates (#143, #145, #146, #147): the Rust and npm dependency groups, the Alpine base image (3.24.4) and the CI install action.
- zstd decoding uses
ruzstd(MIT), a pure-Rust library.
Commands
199 (was 195): findings suppress add, findings suppress list, findings suppress remove and findings rate.
Project format
Schema 22 (was 21). Projects are upgraded when opened. Older versions of brainproxy can't open a project once it is upgraded.
To merge the copy findings in an existing project, run scan passive --rescan. Copies you have already triaged are kept.