Skip to content
XSS Write-up Beginner

A Fight For Duplicate Marked Bug: Story of BBC Hall Of Fame

Wasim Shaikh Follow

Published on medium.com

InfoSec Brothers

InfoSec Brothers, 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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

The target here is the BBC, and the goal was not a specific application feature but a place on the BBC's Hall of Fame list. The researcher had seen that many hunters had already reported cross-site scripting (XSS) to the BBC and that the organisation had patched XSS well, so the starting assumption was that the obvious payloads would be filtered or neutralised. The write-up is as much about the disclosure process as about the bug: it describes a valid XSS that was first marked as a duplicate and later accepted after the researcher asked for evidence.

The report does not name the exact BBC endpoint, parameter or page where the reflection occurred. What it does describe is the behaviour of the reflection: the submitted payload was being embedded inside a value="payload here" attribute of an HTML element.

Setup

The only tool named in the report is Burp Suite's Intruder, used to fire payloads at the target. No account, role, version number or other precondition is described. The researcher submitted the finding by email to [redacted], which is the contact given in the report for the BBC Information Security team.

Finding it

The approach was to send a large number of XSS payloads with Burp Intruder, focusing on payloads commonly used to bypass WAFs and other XSS prevention measures. A few hundred payloads were fired and none worked.

The researcher then changed method: instead of only throwing payloads, observe how the application reflects input. The observation was that this payload:

HTML
<script>alert("Hacked By DrSpitfire")</script>

was being embedded inside the attribute value, in the position described in the report as value="payload here". That is the key signal. The payload was embedded inside the attribute value, so the browser treated it as part of that value rather than as a new script element. The payload was present in the response but not executing.

Exploitation

Step 1: confirm the reflection point

The first payload was submitted and observed in the response inside the value attribute:

HTML
<script>alert("Hacked By DrSpitfire")</script>

This showed the input was reflected inside the value attribute, and the surrounding attribute context prevented execution.

Step 2: try to close the attribute

The next idea was to terminate the value="..." attribute so that the following markup would be parsed as HTML. The researcher tried payloads of this shape:

HTML
""<script>alert("Hacked By DrSpitfire")</script>

This did not work. The report does not give the exact response for this attempt, only that it failed.

Step 3: the payload that executed

After a few more tries, this payload worked and produced the alert:

HTML
"<script>alert("Hacked By DrSpitfire")</script>"<script>alert("Hacked By DrSpitfire")</script>

The trailing quote and second <script> element are part of the same submitted string.

Step 4: report and dispute the duplicate

The finding was reported by email to [redacted]. The first response from the BBC Information Security team marked it as already reported, that is, a duplicate. The researcher replied and asked the team to follow transparency and to share evidence that the same vulnerability with the same attack scenario had been reported by another hunter earlier. After many days, the BBC replied politely, stating that the issue was fixed and that the bug had been marked duplicate by mistake. The researcher's name then appeared on the BBC Hall of Fame list.

Root cause

What can be inferred from the behaviour is that user input was reflected into an HTML attribute value without adequate encoding of the characters that can break out of that context, in particular the double quote. Because the input was placed inside value="...", a payload consisting only of a <script> element stayed inert: the browser saw it as text inside the attribute. Once a double quote was included, the attribute could be closed and the following <script> element parsed as markup.

The report notes that many XSS payloads had already been reported and patched, which is consistent with a filter that catches known strings but does not encode the quote character for the attribute context. This explanation is likely rather than confirmed, since the report gives no code.

Impact

The report does not analyse impact in detail. It describes a reflected XSS that executes script in the context of a BBC page, which in the general case allows an attacker who can get a victim to load a crafted URL to run script in that victim's browser session on the affected origin. The researcher's stated motivation was recognition on the Hall of Fame, and the BBC said the issue was fixed.

Fix

The report says the issue was fixed by the BBC and that the duplicate marking was corrected. The appropriate fix for this class of bug is context-aware output encoding: encode the double quote (and the other characters that matter for the context) when reflecting input into an HTML attribute, or avoid placing user input in attribute values altogether. Input filtering alone is not sufficient, as the bypass in this report shows.

Variants to test

  1. Reflection inside a double-quoted attribute: submit a plain <script> payload and check whether it appears unencoded in the response. A positive result is the payload visible inside value="..." without encoding; then try a leading " to close the attribute and see whether the following markup is parsed.
  2. Reflection inside a single-quoted attribute: the same idea with ' as the breakout character. A positive result is the attribute closing and a script element or event handler being parsed.
  3. Reflection inside an unquoted attribute: try a space or > to end the attribute. A positive result is the payload becoming a new tag or attribute.
  4. Reflection inside a JavaScript string in a script block: try </script> and quote characters. A positive result is the script block ending early or the string being broken out of.
  5. WAF bypass by context: send payloads that contain no obvious <script> string but rely on attribute breakout plus an event handler. A positive result is execution without the WAF blocking the request.
  6. Duplicate-handling check: when a report is marked duplicate, ask the program for the earlier report identifier or evidence of the same attack scenario. A positive result is a reference that can be verified; if none is provided, the duplicate marking is unsupported.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 10 min read.

What happened, in plain words

A security researcher wanted his name on the BBC's Hall of Fame, a public list of people who have reported security problems to the organisation. To get there he needed to find a real bug. He found one: a type of bug called cross-site scripting, usually shortened to XSS, on a BBC page. He reported it by email. The BBC first told him the bug had already been reported by someone else, which is called marking it a duplicate. He asked for proof. After some days the BBC replied that the issue was fixed and that the duplicate marking had been a mistake. His name then went up on the Hall of Fame list.

The story is partly about the bug and partly about that argument over the duplicate. The bug itself is simple to understand once you know one thing about how web pages are built: some parts of a page are text the visitor sees, and some parts are instructions the browser follows. That is XSS.

The background: what XSS is, and why the BBC was a hard target

When you type something into a website, for example a search box, the site often sends your text back to your browser so it can be shown on the page. This is called reflection: your input is echoed back in the response. Normally the site is careful to treat your text as text. But if it forgets, and your text contains characters that the browser reads as instructions, the browser will run those instructions. A script is a small program that runs inside your browser tab. If an attacker can get a script of their choosing to run on a site you trust, that script can do things in your name on that site.

The BBC had already received many XSS reports and had fixed them well. So the researcher expected the obvious tricks to be blocked. That shaped his whole approach: he assumed the easy payloads would fail, and he planned to send a lot of them quickly to see what came back.

The tool: Burp Suite's Intruder

Burp Suite is a program that sits between your browser and a website so you can watch and change the traffic. Intruder is one of its features: you mark a spot in a request and give it a list of values, and it sends the request once for each value, automatically. Think of it as a machine that fills in the same form hundreds of times with different answers, much faster than a person could.

The report names no other tool, no account, no user role and no version number. The only contact address given for reporting is [redacted], the BBC Information Security team's email.

Step 1: firing a lot of payloads

The first plan was brute force: send a few hundred XSS payloads through Intruder, choosing ones commonly used to get past a WAF and past other XSS defences. A WAF, or web application firewall, is a filter that sits in front of a website and blocks requests that look like attacks. A payload is simply the piece of text you send in the hope that it will be treated as code.

None of the few hundred worked. This is an important result, not a failure: it told the researcher that the site's filters were catching the well-known patterns.

Step 2: stop guessing and start watching

The researcher changed method. Instead of only throwing payloads, he looked at how the application responded to his input. This is the single most useful habit in this kind of testing: the response tells you where your text landed and what the site did to it.

He noticed that this payload:

HTML
<script>alert("Hacked By DrSpitfire")</script>

was appearing inside an attribute value, in the place the report describes as value="payload here". Let us unpack both halves.

  • <script> and </script> are HTML tags. A tag is a marker in the page source that tells the browser what kind of thing comes next. The script tag says: what follows is a program, run it.
  • alert("Hacked By DrSpitfire") is a tiny JavaScript instruction that makes the browser show a pop-up box with that text. Researchers use it because a pop-up is unmistakable proof that code ran.
  • An attribute is extra information attached to an HTML element, written as name="value". The value attribute is what a text box shows by default. The double quotes around it mark where the value starts and ends.

So the page was putting his whole payload inside the quotes of a value attribute. The payload appeared inside the quotes of the value attribute, so the browser treated it as attribute text. But because the payload sat inside a quoted attribute, the browser treated all of it as the text of that attribute, not as a new script. The payload was present in the response but did nothing. This is the key signal: the payload was reflected inside the attribute value, where the browser treated it as text.

Step 3: try to close the attribute

The next idea follows directly from that observation. If the input sits inside value="...", then a double quote in the input might end the attribute early. Everything after that quote would then be outside the attribute, where the browser reads markup. The researcher tried payloads of this shape:

HTML
""<script>alert("Hacked By DrSpitfire")</script>

The payload starts with two double quotes, then a script element. It did not work. Then <script>alert("Hacked By DrSpitfire")</script> is the program he wants the browser to run. It did not work. The report does not show the response for this attempt, only that it failed.

Step 4: the payload that worked

After a few more tries, this payload produced the pop-up:

HTML
"<script>alert("Hacked By DrSpitfire")</script>"<script>alert("Hacked By DrSpitfire")</script>

Reading it left to right:

  1. " closes the attribute value that the page opened with value=".
  2. <script>alert("Hacked By DrSpitfire")</script> is now outside the attribute, so the browser parses it as a script element and runs the pop-up.
  3. " is a quote that is part of the same submitted string.
  4. <script>alert("Hacked By DrSpitfire")</script> is a second copy of the same script.

The report does not explain why this exact arrangement succeeded where the earlier attempt did not. It only records that this one produced the pop-up.

Step 5: report it, then argue about the duplicate

The researcher emailed the finding to [redacted]. The first reply from the BBC Information Security team said the issue had already been reported, in other words it was a duplicate.

A duplicate marking means the programme believes someone else reported the same problem first, so no reward or credit is due. The researcher replied and asked the team to be transparent: to share evidence that the same vulnerability, with the same attack scenario, had been reported by another hunter earlier. After many days the BBC replied politely: the issue was fixed, and the bug had been marked duplicate by mistake. His name then appeared on the BBC Hall of Fame list.

The report makes a broader point about this. In the researcher's view, a programme that marks a bug duplicate should provide substantial evidence that the same vulnerability with the same attack scenario was reported earlier. He notes that HackerOne, a bug bounty platform, follows a policy of mentioning the report number of the earlier submission. If a programme marks a bug duplicate without evidence, his advice is to stop hunting on that programme and to tell other researchers about it on Twitter and LinkedIn. He lists several hunters who have faced duplicate markings for good vulnerabilities, and says some programmes do not even continue the conversation after marking a submission duplicate.

Why the bug existed

User input was reflected into an HTML attribute value without proper encoding of the characters that can break out of that context, above all the double quote. Because the input sat inside value="...", a payload made only of a <script> element stayed inert: the browser saw it as attribute text. Once a double quote was included, the attribute could be closed and the following script parsed as markup.

The report notes that many XSS payloads had already been reported and patched, which fits a filter that catches known strings but does not encode the quote for the attribute context. This explanation is likely rather than confirmed, since no code is given.

What the impact was

The report does not analyse impact in detail. It describes a reflected XSS that runs script in the context of a BBC page. In the general case, that lets an attacker who can get a victim to load a crafted URL run script in that victim's browser session on the affected origin. The researcher's stated motivation was recognition on the Hall of Fame, and the BBC said the issue was fixed.

The fix

The report says the BBC fixed the issue and corrected the duplicate marking. The right fix for this class of bug is context-aware output encoding: encode the double quote, and the other characters that matter for the context, when reflecting input into an HTML attribute, or avoid putting user input in attribute values at all. Input filtering alone is not enough, as the bypass in this report shows.

Variants to test

These are the same ideas applied to other places input can land. Each one starts with the same question: where does my text appear in the response, and what surrounds it?

  1. Reflection inside a double-quoted attribute: submit a plain <script> payload and check whether it appears unencoded in the response. A positive result is the payload visible inside value="..." without encoding; then try a leading " to close the attribute and see whether the following markup is parsed.
  2. Reflection inside a single-quoted attribute: the same idea with ' as the breakout character. A positive result is the attribute closing and a script element or event handler being parsed.
  3. Reflection inside an unquoted attribute: try a space or > to end the attribute. A positive result is the payload becoming a new tag or attribute.
  4. Reflection inside a JavaScript string in a script block: try </script> and quote characters. A positive result is the script block ending early or the string being broken out of.
  5. WAF bypass by context: send payloads that contain no obvious <script> string but rely on attribute breakout plus an event handler. A positive result is execution without the WAF blocking the request.
  6. Duplicate-handling check: when a report is marked duplicate, ask the programme for the earlier report identifier or evidence of the same attack scenario. A positive result is a reference that can be verified; if none is provided, the duplicate marking is unsupported.

Glossary

  • Attribute: extra information attached to an HTML element, written as name="value", such as the default text of a text box.
  • Bug bounty programme: an arrangement where an organisation invites people to report security problems, often with rewards or public credit.
  • Burp Suite: a tool that sits between your browser and a website so you can inspect and modify the traffic.
  • Context-aware output encoding: converting characters that are dangerous in a particular part of a page into harmless stand-ins, based on where the input lands, such as inside an attribute or inside a script.
  • Cross-site scripting (XSS): a bug where an attacker's text is treated as code by a victim's browser on a site the victim trusts.
  • Duplicate: a report marked as already submitted by someone else, so no credit or reward is given.
  • Encoding (escaping): replacing characters that have special meaning with safe stand-ins so they are shown as text rather than acted on.
  • Hall of Fame: a public list of people who have reported security problems to an organisation.
  • HackerOne: a bug bounty platform that hosts programmes and their reports.
  • HTML: the language that describes the structure of a web page, made of tags and attributes.
  • Intruder: a Burp Suite feature that sends the same request many times with different values filled in automatically.
  • JavaScript: the programming language that runs inside a browser tab and can change the page or read data.
  • Payload: the piece of text an attacker sends in the hope that it will be treated as code.
  • Pop-up (alert): a small browser box shown by the alert() instruction, used as clear proof that code ran.
  • Reflection: when a site sends your input back to your browser in its response.
  • Script: a small program, usually JavaScript, that a browser runs.
  • Tag: a marker in HTML source, such as <script>, that tells the browser what kind of content follows.
  • Transparency (in disclosure): a programme giving evidence and reasons for its decisions, such as naming the earlier report behind a duplicate marking.
  • WAF (web application firewall): a filter in front of a website that blocks requests that look like attacks.

More from BBC

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.