Skip to content
Open redirect Write-up Beginner

The Discovery Story: How YouTube’s Logout Parameter Led to a Se

The logout endpoint's continue parameter accepted an unvalidated destination, so a crafted link could end a user's session and then send them to an attacker-controlled site. An attacker could use this for forced logouts and to funnel victims towards phishing pages.

Akash Ghosh Follow

Published on infosecwriteups.com

While navigating the intricate systems of YouTube, I uncovered an unexpected behavior in the logout?continue= parameter. This feature, designed to provide a seamless redirection after logging out, lacked proper validation.

Akash Ghosh, on infosecwriteups.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 continue parameter was used as a redirect target without validating that it pointed to an allowed domain.

Impact

Attackers could forcibly end user sessions and redirect victims to phishing sites that mimic legitimate platforms, which could erode trust in the service.

What the attacker needed

Victim clicks a crafted link; no account needed by attacker

The fix

The text does not state that it was fixed; it says platforms should apply robust input validation and stricter security measures.

How it was found

  1. Craft a logout link whose continue parameter points to an attacker-controlled site.
  2. Send the link to a victim and get them to click it.
  3. The victim is logged out of their session without consent.
  4. The victim is then redirected to the attacker's 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.

When you log out of a site, it often sends you to another page afterwards, and that destination is given in the link. Here the site did not check where that destination pointed, so someone could craft a link that logs you out and then drops you on a fake page that asks for your password. This is called an open redirect, and it makes phishing links look more trustworthy because they start on the real 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.

More by Akash Ghosh

View all

8 more disclosed reports, 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.