Highlights
Auth Bypass: 13 prior fixes. Scrutinize any change in this area.
backend/services/deviceauth/devauth/devauth.go: most-fixed (9 issues). Treat as high-risk during review.
17 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 fixes show that device status transitions (accept/reject/delete) lacked proper checks (limits, provisioned flags, revisions, exclusion of current auth set), allowing bypasses or stale credential persistence.
Auth Bypass: Signature verification was moved to the start of the authentication request handler; previously, requests with invalid signatures could be processed, leading to full authentication bypass.
Auth Bypass: A race condition in token caching could cache invalid token values, enabling authentication bypass; the fix skips re-caching on invalidation errors.