Skip to content
Open redirect Write-up Beginner

How I Found an Open Redirect in a Login Endpoint (and Why It Matt

The login page accepted a return parameter that told it where to send the user after signing in, and it did not check that the destination was on the same site. An attacker could send a link to the real login page that, once the victim logged in, sent them on to a site the attacker controlled.

TakiasSec Follow

Published on medium.com

While doing some recon on a popular SaaS platform’s login system, I stumbled upon a classic yet impactful vulnerability — an open redirect in the login flow.

TakiasSec, on medium.com

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 took the destination from the return parameter and redirected to it without checking that it pointed to its own domain.

Impact

Because the link starts on the genuine login domain, an attacker could use it to send users to a lookalike page after they authenticate, potentially collecting credentials or second-factor codes; the text also notes possible token exposure in SSO or OAuth flows.

What the attacker needed

Victim clicks a crafted login link; victim logs in with real credentials

The fix

The redirect target should be validated against an allowlist of internal paths or the site's own domain, and anything else rejected or replaced with a safe default.

How it was found

  1. Open the login page with the return parameter set to an external address.
  2. Log in with a normal account.
  3. Observe that after login the browser is sent to the external site.

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.

After you log in to a website, it often sends you to a page you asked for, such as a dashboard. This site let the address of that page be set by anyone through a link, and never checked it was still on its own site. So a link that looks like the real login page could quietly hand you over to a fake copy afterwards, where your password could be stolen.

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.

More by TakiasSec

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.