Skip to content
Open redirect Write-up Beginner

₹1,000 in 10 mins: BookMyShow’s Open redirect bug!

The login-fanhood endpoint on BookMyShow accepted a referer parameter that was used as a redirect destination without validation. An attacker could craft a link that, after login, sent the user to an external site such as a phishing page.

medium.com

Published on medium.com

Bug bounties are an exciting way to earn rewards while improving cybersecurity. Recently, I discovered an open redirect vulnerability in BookMyShow, which earned me ₹1,000 in just 10 minutes!

Vivek PS, 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 application used the referer parameter as a redirect target without validating it against an allowlist.

Impact

An attacker could send users to a fake login page to steal credentials, trick them into downloading malware, or bypass filters that block direct malicious links.

What the attacker needed

Victim clicks a crafted link; victim logs in

The fix

The redirect target should be validated against a whitelist of allowed destinations.

How it was found

  1. Visit the login-fanhood endpoint with a referer parameter pointing to an external site.
  2. Log in and observe that the browser is redirected to the external site instead of the fan-hood page.

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 web address from the link you clicked and sends you there without checking it. Here, after you logged in, the site used a value from the URL to decide where to send you next. Because it did not check that value, someone could make the site send you to a fake page that looks like the real one.

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.