How I Turned a Simple QR Code into a €100 Open Redirect Bounty
The share product feature accepted a URL parameter and generated a QR code that redirected to that URL without validation. An attacker could craft a link to the legitimate site that, when scanned, sent the victim to an arbitrary external site.
Published on medium.com
In this short writeup, I want to share how I found an unique bug on a private program at YesWeHack and received a €100 bounty. The bug is about an Open Redirect vulnerability through a QR Code Generator feature on the target’s website.
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
Impact
An attacker could craft a link on the official site that, when opened and the QR code scanned, redirects the victim to an arbitrary external site; the report notes the victim must open the crafted URL and scan the QR code.
What the attacker needed
Victim opens crafted URL; victim scans QR code
How it was found
- Find the share product feature that generates a QR code from a URL parameter.
- Change the url parameter to an external attacker-controlled domain.
- The QR code now encodes the external URL and redirects there when scanned.
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 from its address and sends you to that link without checking it. Here, the site made a QR code for any link you gave it, so a bad link could look like it came from the trusted site. Scanning the QR code then took the victim to the attacker's 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.