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
- Find where your code reads
next,redirectorreturnTo. - Only allow paths that start with a single
/. Reject//evil.comand full URLs. - 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.