How I Found 2 Bugs on BBC’s Subdomains and Made It Into Their Hall of Fame
Two bugs were found on BBC subdomains: a contact form that rendered user-supplied URLs as clickable links in confirmation emails, and a registration flow that evaluated template expressions in the welcome email. An attacker could send phishing emails from a trusted BBC address and potentially achieve remote code execution through the template injection.
infosecwriteups.com
Published on infosecwriteups.com
I was so convinced both bugs were duplicates that I sat on the findings for a few hours before finally writing the PoC. That hesitation would have cost me a Hall of Fame entry and a BBC swag T-shirt.
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 failed to sanitise user input before embedding it in email templates, allowing hyperlink injection and server-side template evaluation.
Impact
An attacker could send phishing emails from a trusted BBC address containing attacker-controlled links, and the template injection could lead to remote code execution depending on the template engine.
What the attacker needed
Access to a contact form; ability to submit a registration form
How it was found
- Locate a contact form on a BBC subdomain.
- Replace input values in multiple fields with a URL.
- Submit the form and receive a confirmation email.
- Observe that the injected URL appears as a clickable hyperlink.
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.
The first bug is like writing a fake web address on a form and having the company send an official email that includes your fake link as a clickable button. The second bug is like writing a maths problem in your name field and the system solving it instead of just printing it, which can sometimes let an attacker run their own commands on the server.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.