This vulnerability lets attackers mint arbitrary OAuth tokens using a valid authorization code while bypassing both client_secret and code_verifier validation simultaneously. The mechanism is identical for both parameters: in PHP, empty strings are falsy, so if (!$client_secret) and if (!$code_verifier) exit early without any actual validation. When two independent security controls fail through structurally identical code paths, you're looking at a pattern failure, not an isolated error.
OAuth2's defense-in-depth model depends on client_secret proving client identity AND code_verifier proving the authorization code holder. This attack severs both protections with one exploit primitive. The attacker needs only a valid authorization code—which may have been legitimately obtained—and can then exchange it for tokens at will. Authorization codes are inherently more accessible than passwords or secrets: they're transmitted in URLs, logged in referrer headers, cached by browsers, and often retained in server logs that outlive the systems that generated them.
What should concern you most: successful bypass attempts likely produce identical log entries to legitimate token exchanges. If your token endpoint emits no security telemetry when validation is skipped, you cannot detect exploitation post-hoc. That's not just a detection gap—it's evidence nobody designed for this attack.
Immediate actions: audit every security-critical parameter validation in your OAuth implementation for truthy-evaluation patterns (if (!$value) or equivalent). Replace with explicit checks: if ($value === '') or if ($value === null). Add audit logging to your token endpoint that records which validation paths were taken, regardless of outcome. Finally, treat any security validation function that hasn't been reviewed since PKCE was introduced as potential zombie code—it may carry legacy assumptions that no longer hold.