Now on AppleNow on AndroidScan free

← All posts

Login redirect trusting any URL? Ember's two-minute check

Detective Ember sniffs this one often: /login?next=https://... that sends you anywhere after sign-in.

If your app redirects to whatever next or redirect says, a stranger can build a link on your real domain that lands people on a fake page. OWASP calls this an unvalidated redirect.

The two-minute check

  1. Find where your code reads next, redirect or returnTo.
  2. Only allow paths that start with a single /. Reject //evil.com and full URLs.
  3. Then scan your own app on SniffPup. Full fixes free for every critical issue (no critical? one other fix is free).

Want one 2-minute check like this every morning? Sign up below.

Named after Ember, my black Pomeranian. Built by a software engineer and vibe-coding hobbyist to help you ship safely.