Tips

Open redirect tips

An open redirect sends users from the trusted site to any address the attacker chooses. On its own it is often low impact, but it can lead to token theft in OAuth flows or get past an allow-list.

Published tips, newest first. Payloads and commands are shown as plain text.

Open redirect: how to hunt it

Where to look

  • Parameters such as next, return, redirect_uri, continue and url in login, logout and link-tracking flows.
  • Allow-lists fooled by //attacker.example, a backslash, an @ or a look-alike subdomain.
  • OAuth redirect_uri handling, where the code or token follows the user.
  • JavaScript redirects that read location.hash or a query parameter.

What proves it

Show the trusted link landing on a host you control, and for more impact, chain it to leak an OAuth code or get past an allow-list.

Read further

Writeups on Open redirect, by hunters and researchers, most with a short summary.

Related classes