Skip to content
Open redirect Write-up Beginner

Open redirect in logout

The logout endpoint accepted a referer parameter and redirected to it after only loosely checking that the value contained the site's domain name. An attacker could craft a logout link that sends the victim to an attacker-controlled domain.

muhmoud.barket Follow

Published on medium.com

Hi mates, I’m Mahmoud (aka brbr0s). I’m a bug hunter who’s always trying to learn more and get better at what I do.

brbr0s, 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 redirect target was validated by a loose substring or prefix check for the site's domain rather than by comparing the full host.

Impact

A victim could be redirected from a trusted logout link to an attacker-controlled site, which could be used for phishing; the report shows no further escalation.

What the attacker needed

Victim clicks a crafted logout link

How it was found

  1. Open the logout URL and note the referer parameter holding the site's own domain.
  2. Change the value to a lookalike domain with the dot removed and observe the redirect.
  3. Set the value to the site's domain with an attacker domain appended and observe the redirect.

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 site takes a link from the address bar and sends you there without checking it properly. Here the site only looked for its own name somewhere in the value, so a domain like the real one with an attacker's domain appended still passed the check. A victim clicking such a logout link would end up on a fake site.

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.