Security context

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

thephpleague/oauth2-server
master @ b96b4a1
65
Fixes
3
CVEs
HIGH
Peak severity
52.8%
Coverage
Highlights
Auth Bypass: 45 prior fixes. Scrutinize any change in this area.
src/Grant/AuthCodeGrant.php: most-fixed (21 issues). Treat as high-risk during review.
47 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: Repeated PKCE validation issues arose due to incorrect regular expression anchoring, trailing whitespace in key lookup tables, and incorrect S256 hash formatting. This allowed attackers to bypass PKCE requirements entirely.
Open Redirect: Insecure parsing using PHP's native parse_url function and loose comparison of parsed structures enabled validation bypasses, which could leak authorization codes. Standard-compliant URI parsing and strict comparisons are required.
Auth Bypass: Confidential client validation was repeatedly bypassed by failing to properly enforce the client_secret requirement or check for empty secret parameters prior to performing verification.