Security context

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

micronaut-projects/micronaut-security
5.2.x @ d0b6607
4
Fixes
0
CVEs
HIGH
Peak severity
25.0%
Coverage
Highlights
Auth Bypass: 4 prior fixes. Scrutinize any change in this area.
security/src/main/java/io/micronaut/security/token/TokenAuthenticationFetcher.java: most-fixed (3 issues). Treat as high-risk during review.
1 high-severity fix 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: Asynchronous token validation utilizing non-sequential reactive operators (like flatMap) allowed concurrent validation execution. This let lower-precedence token validators resolve ahead of high-precedence ones, bypassing stricter authentication checks. Sequential execution must be strictly enforced.
Auth Bypass: Directly querying raw request attributes to fetch route match info instead of utilizing safe, dedicated wrapper methods can lead to authorization bypass due to unmanaged lifecycles or unexpected request states.