Security context

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

foalts/foal
master @ 4fc5a24
28
Fixes
0
CVEs
HIGH
Peak severity
17.4%
Coverage
Highlights
Denial of Service: 10 prior fixes. Scrutinize any change in this area.
packages/storage/src/validate-multipart-form-data-body.hook.ts: most-fixed (7 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.

Denial of Service: Unhandled write failures and stream error omissions within Busboy parsing led to process crashes. Strict upload size limits, explicit stream error handlers, and generic write catch-blocks must be applied globally to all file upload surfaces.
CSRF: The use of cookie-based JWT or session tokens without proper verification hooks allowed State-Changing requests to bypass origin validation. CSRF validations must be explicitly integrated when cookies transport authentication tokens.
Auth Bypass: Inconsistent parsing of JWT user identifier types led to type-confusion issues during user lookups. Strict verification of identifier shapes must occur before querying user persistence models.