Skip to content
Open redirect Write-up Beginner

Open Redirect on Logout Page — When Shopping Got Too Redire

The logout endpoint accepted a redirect parameter and sent users to any external domain without validation. An attacker could craft a logout link that lands victims on a phishing site.

Aryamevada Follow

Published on medium.com

“I came to shop, not to teleport!” – Me, after discovering an Open Redirect bug on a shopping site’s logout page

Aryamevada, 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 logout handler used the redirect parameter directly in a Location header without validating that the destination was on an allowed domain.

Impact

The open redirect could be used in phishing attacks and may help bypass redirect-based validations, though some URL tricks were blocked.

What the attacker needed

Victim clicks a crafted logout link

The fix

The report says the issue was patched quickly, so the redirect parameter should be restricted to allowed destinations.

How it was found

  1. Intercept the logout request and note the redirect parameter pointing to the site's homepage.
  2. Replace the redirect value with an external domain.
  3. Send the request and observe the redirect to the external domain.
  4. Try multiple domains and some URL tricks to confirm the behaviour.

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 website takes a link parameter and sends you to that address without checking it. Here, the logout page had a 'redirect' setting, and changing it to an attacker's site made the site forward visitors there. That helps phishing because the link starts 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.

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.