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