Skip to content

Webhard

Trusted Prefix, Untrusted Tail

400 points · 0 solved

The SSO bridge validates redirect_uri with startswith("https://app.sudosec.example"). An attacker registered https://app.sudosec.example.evil.dev and got this callback:

Location: https://app.sudosec.example.evil.dev/cb#token=ZmxhZzpzdWRve3ByZWZpeF9jaGVja3NfYnJlYWt9

The token is base64url. Whatever decodes out of it is yours.

Hints0/2

Learn the technique/learn/api-design-security