Security context

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

mojolicious/mojo
main @ cbcf640
53
Fixes
32
CVEs
CRITICAL
Peak severity
14.8%
Coverage
Highlights
Auth Bypass: 11 prior fixes. Scrutinize any change in this area.
Mojo::UserAgent::CookieJar: most-fixed (5 issues). Treat as high-risk during review.
16 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.

Deserialization of Untrusted Data: Mojolicious previously serialized session data using Perl's Storable module, which is highly vulnerable to arbitrary object injection and arbitrary code execution. The fix migrated the serializer to JSON.
Path Traversal: Path parsing and canonicalization allowed directory traversal bypasses (especially on Windows) due to insufficient canonicalization of dot segments and handling of URL-encoded characters.
Cryptographic Weakness: The application scaffold generator historically hardcoded a static, weak default application secret ('s3cret') or relied on weak rand() entropy, exposing sessions to brute-force forgery attacks.