Skip to content

In-depth lesson · redirect_uri manipulation

Tips for beginners

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 14 of 14
  1. Look for secondary OAuth endpoints or less obvious flows, such as those used for password reset or account linking. These may have weaker validation. Also check client registration endpoints that allow unauthenticated registration with arbitrary redirect URIs.

    Seen in 5 reports
  2. Use a webhook or a server you control to capture incoming requests. This helps you confirm that the code or token is sent to you. Be careful not to expose real user data; use dummy accounts.

    Seen in 4 reports
  3. Look for weak validation patterns. Try adding extra query parameters or fragments to the redirect_uri. Test if the server accepts a redirect_uri that starts with the legitimate domain but continues into your domain. Check if duplicate redirect_uri parameters are accepted and which one is used.

    Seen in 3 reports
  4. Consider mobile apps. If the OAuth flow uses a custom URI scheme, try to register the same scheme with a malicious app and see if you can intercept the code. Check if PKCE is used; if not, the flow may be vulnerable.

    Seen in 3 reports
  5. Check for token leakage via Referer. If the token is in the URL, see if it leaks when the user clicks an external link or loads third-party resources. You can use a page you control on the whitelisted domain to capture the Referer.

    Seen in 3 reports
  6. Test for parameter pollution and parser discrepancies. For example, use semicolons as delimiters or duplicate parameters to see if validation and actual redirect use different values. This can bypass filters.

    Seen in 3 reports
  7. Start by mapping the OAuth flows in scope. Look for authorisation endpoints, client registration pages, and callback handlers. Use a proxy to intercept requests and identify the redirect_uri parameter. Check if the application uses OAuth for login or third-party integrations.

    Seen in 2 reports
  8. Test the redirect_uri with a domain you control. If the server redirects there with a code or token, you have a finding. Try simple variations first: a different domain, a subdomain, a path traversal, or a protocol-relative URL. Observe whether the server rejects or accepts the change.

    Seen in 2 reports
  9. Chain with open redirects. If the redirect_uri must be on a whitelisted domain, look for an open redirect on that domain. You can then use the open redirect to forward the code to your server. Also check for subdomain takeovers that could be used.

    Seen in 2 reports
  10. When you find a potential issue, demonstrate impact clearly. Show that you can obtain a victim's token or code and use it to access their account or data. Use a test account you control to avoid harming real users. Document the steps and include evidence such as screenshots or logs.

    Seen in 2 reports
  11. Do not report a redirect_uri change that only leads to an error page or a benign redirect. You need to show that a code or token is actually sent to an attacker-controlled location. If the impact is only an open redirect without token leakage, it may be considered low severity or out of scope.

    Seen in 2 reports
  12. Avoid reporting out-of-scope issues. Check the program's policy to see if OAuth flaws are in scope and if they accept reports about open redirects or token leakage. Do not test on production users without permission. If unsure, ask the program first.

    Seen in 1 report
  13. If you find a custom domain feature, try to host content under a domain you control and use that as the redirect_uri. This is often overlooked and can lead to token leakage.

    Seen in 1 report
  14. Remember to stay within the program's rules. Do not use real user data, do not perform denial-of-service, and do not test on systems that are out of scope. If you are unsure, reach out to the program's security team.

    Seen in 1 report