Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

trailbaseio/trailbase
main @ 98367e7
26
Fixes
0
CVEs
HIGH
Peak severity
17.4%
Coverage
Highlights
Auth Bypass: 13 prior fixes. Scrutinize any change in this area.
trailbase-core/src/auth/api/login.rs: most-fixed (4 issues). Treat as high-risk during review.
15 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Auth Bypass: Session and authentication handlers repeatedly failed to properly isolate PKCE flows, clear failed session states, or check active refresh tokens in the database, risking active session pollution.
SQL Injection: Schema identifiers, order parameters, and table structures were historically processed as unvalidated raw strings inside database queries, permitting arbitrary SQL command execution.
Auth Bypass: Using predictable or plaintext database-stored codes exposed via path parameters allowed malicious credential resets, requiring a migration to short-lived signed JWTs.