From Open Redirect to Credential Theft: A Login Flow Story
The login page accepted a user_return_to parameter that redirected to any external domain without validation, creating an open redirect. An attacker could craft a link to the legitimate login page that, after credential entry, redirected the victim to an attacker-controlled site, allowing credential theft.
This confirmed a classic open redirect vulnerability. But the real danger wasn’t the redirect itself — it was where it existed.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application failed to validate or whitelist the user_return_to parameter before using it for redirection after authentication.
Impact
An attacker could steal user credentials by redirecting them to a malicious site after they log in, with no visible trace to the victim.
What the attacker needed
Victim clicks a crafted link; victim enters credentials on the login page
How it was found
- Log out and modify the login URL to include a user_return_to parameter pointing to an external domain.
- Observe that the application redirects to the external domain without validation.
- The attacker sends a link to the victim that appears to be the real login page but includes the malicious user_return_to parameter.
- The victim enters credentials on the familiar login page.
- The page shows an invalid password message, prompting the victim to log in again, capturing both attempts.
- After submission, the victim is redirected to the real site and sees the home page, already authenticated.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
An open redirect is when a website sends you to another site based on a link parameter without checking if that site is safe. Here, the login page used a parameter to decide where to go after login, and it did not check the destination. An attacker could make a link that looks like the real login page but sends your password to their own site after you log in.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.