Skip to content

In-depth lesson · redirect_uri manipulation

Root causes

Every point the redirect_uri manipulation reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 6 of 6
  1. The registration endpoint required no authentication and did not validate redirect URIs, client names or logos, and did not restrict the none token endpoint authentication method.

    Seen in 4 reports
  2. The OAuth flow used an unverified custom URI scheme without PKCE, so the code was not bound to the app that started the flow.

    Seen in 3 reports
  3. The callback trusted the attacker-controllable Referer header to choose the post-login destination, and OAuth initiation was a forgeable GET.

    Seen in 2 reports
  4. The server allowed arbitrary query parameters and fragments to be appended dynamically to the redirect_uri instead of pinning the whole value.

    Seen in 1 report
  5. The callback put the access token in the query string and honoured an attacker-controlled redirect_uri, so the token leaked through the Referer header on the redirect.

    Seen in 1 report
  6. redirect_uri was validated by path prefix instead of exact match, and the token endpoint did not validate redirect_uri.

    Seen in 1 report