I Pasted a Simple HTML Code on BookMyShow… and Got ₹1000 for
The gift card payment page on BookMyShow did not sanitise the sender name field, allowing an attacker to inject HTML elements into the page. An attacker could craft a URL that displays misleading content, such as fake payment instructions or forms, to deceive users.
Picture this: You’re about to buy a gift card for your movie-loving friend. You enter your name, their name, and proceed to payment.
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 inserted user-supplied input into the page without HTML-encoding or sanitising it.
Impact
An attacker could craft a link that shows misleading content on the payment page, potentially tricking users into entering sensitive information or visiting a phishing site; however, script execution was blocked by Cloudflare.
What the attacker needed
Victim clicks a crafted link; attacker can craft a URL with HTML in a name field
The fix
The application should HTML-encode or sanitise user input before displaying it on the page.
How it was found
- Start a gift card purchase and enter a name containing HTML.
- Proceed to the payment page where the name is displayed.
- Observe that the HTML is rendered as elements rather than text.
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 type your name into a website, the site should treat it as plain text. Here, the site put the name directly into the page's code without cleaning it, so someone could type HTML (the language used to build web pages) and change what the page shows. This could let an attacker make a fake message or form appear on the real payment page.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.