Skip to content
Open redirect Write-up Beginner

The QR Code Trap: How I Forced a Major Brand to Host My Phishing

The website's QR code generator accepted an arbitrary URL in the tracking code parameter and encoded it into a QR code without validation. An attacker could craft a link to the legitimate site that displays a QR code redirecting to a malicious site, enabling a quishing attack.

zer0figure Follow

Published on zer0figure.medium.com

In the world of Bug Bounty, we often talk about the wins — the Criticals, the P1s, the big payouts. But we rarely talk about the rejections.

Zer0Figure, on zer0figure.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 did not validate that the qrtrackingcode parameter contained a tracking number rather than a URL, and encoded the raw input into the QR code.

Impact

An attacker could send a link to the legitimate site that displays a QR code redirecting victims to a phishing page, but the attack requires the victim to scan the code with a phone and click through, and the report was closed as not applicable.

What the attacker needed

Victim clicks a link; victim scans QR code with phone; victim clicks link on phone

The fix

The application should validate that the qrtrackingcode parameter contains only a valid tracking number and reject or sanitise any URL input before generating the QR code.

How it was found

  1. Find the QR code generation page with the qrtrackingcode parameter.
  2. Replace the tracking number value with a URL-encoded link to a malicious site.
  3. Load the modified URL in a browser.
  4. Scan the displayed QR code with a phone to confirm it redirects to the malicious 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.

A QR code is a square barcode that phones can scan to open a link. The website let users put any web address into a parameter that was supposed to hold a tracking number, and it turned that address into a QR code. So an attacker could make the official site show a QR code that sends people to a fake 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.

More by zer0figure

View all

11 more disclosed reports, best first.

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.