Berildocs GitHub

Memory cards

OAuth redirect matching is prefix logic under pressure

confidence: highupdated: 2026-11-24status: activeweboauthidentity

Claim#

The authorization server compares redirect URIs with loose rules. Path traversal, a subdomain, an open redirect or a fragment can move the code.

Test#

Map every redirect URI and the matching rule. Test path, query, fragment, subdomain, case and open redirect on an allowed host. Reuse state and nonce.

Proof#

A code or token delivered to an attacker-controlled origin, then exchanged for a session.

Failure modes#

A login CSRF needs a victim action. A code for your own account is not account takeover.