Highlights
Auth Bypass: 18 prior fixes. Scrutinize any change in this area.
cps/kobo_auth.py: most-fixed (7 issues). Treat as high-risk during review.
36 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: Multiple Kobo endpoints lacked proper authentication, with fixes adding @login_required, @requires_kobo_auth, and token validation across sync, metadata, cover, and init requests. Inconsistent enforcement across sibling endpoints suggests ongoing risk.
Auth Bypass: Reverse proxy header authentication was added for OPDS but required trusted proxy IPs and shared secret to prevent spoofing. Sibling paths (OPDS download, user management) had bypasses, indicating fragile trust of proxy headers.
Authorization Bypass: Shelf creation and editing lacked permission checks, allowing non-admin users to create public shelves or edit others' shelves. Multiple fixes in the same component indicate recurring authorization gaps.