Skip to content
Open redirect Write-up Beginner

Open Redirect Vulnerability in SSO API

An SSO endpoint accepted a user-supplied URL in its error_url parameter and redirected the visitor to that external domain without validation. An attacker could craft links that appear to belong to the trusted site but send users to a phishing page.

medium.com

Published on medium.com

Free Article Link: Click for free!

Ehtesham Ul Haq, 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 endpoint passed the user-supplied error_url value straight into its redirect response without checking it against an allowlist of trusted destinations.

Impact

Users could be tricked into visiting phishing sites through links that look legitimate, and the author claims it may in some cases help bypass protections such as CSRF defences, though no such bypass is demonstrated.

What the attacker needed

Victim clicks a crafted link

The fix

Redirect targets should be validated against an allowlist of safe domains, or relative paths used instead of absolute URLs.

How it was found

  1. Find parameters that control redirection, such as redirect, url, next or error_url.
  2. Replace the parameter value with an external domain.
  3. Visit the crafted URL and observe whether the browser leaves the trusted domain.
  4. If the redirect happens without restriction, the endpoint is vulnerable.

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.

A redirect is when a site sends your browser to another address. An open redirect means the site lets anyone choose that address through a link parameter, so a link that starts on the real site can quietly land you on a fake one. Here the SSO login endpoint did exactly that with its error_url value.

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.

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.