Security context

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

hwi/hwioauthbundle
master @ 046da2d
27
Fixes
0
CVEs
CRITICAL
Peak severity
50.0%
Coverage
Highlights
Auth Bypass: 13 prior fixes. Scrutinize any change in this area.
Security/Core/Authentication/Provider/OAuthProvider.php: most-fixed (5 issues). Treat as high-risk during review.
11 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: The user provider was vulnerable to a critical authentication bypass where a null social ID returned by an OAuth provider allowed users to login as other registered accounts, compounded by refreshUser returning stale or unrefreshed user entities.
Auth Bypass: The authentication provider bypassed post-authentication checks (allowing locked/disabled accounts to log in) and suffered from token expiration issues because expired tokens were recycled without forcing a refresh.
Authentication Bypass: Expired tokens remained active because isExpired() always evaluated to false, exacerbated by missing parent constructor initialization and failure to preserve serialization states.