Threat model and trust boundaries
Loose prefix or substring comparisons can allow an attacker-controlled host or path to receive authorization responses. Redirect URIs are part of the protocol security boundary, not ordinary navigation input.
- Identify actors, assets and trust boundaries
- Choose controls that address the stated threat
- Test failure behavior and recovery paths