[Test Pilot] HTML injection in "Containers" experiment popout
The Containers experiment popout accepted and stored HTML in container names without sanitisation, then displayed it unsanitised when the toolbar icon was clicked. An attacker could inject HTML, potentially leading to XSS-like attacks, though no proof of concept was provided.
Originally disclosed on Mozilla
- Fixed in 4 days
- Paid in 8 days
- Disclosed after 4 days
Created attachment 8846440
Containers HTML injection
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8
Steps to reproduce:
Using Firefox 52.0 on macOS Sierra, I added the Containers experiment via Test Pilot and created new containers:
- Click on the Containers toolbar icon
- Select the "+" option
- Create new containers with the following names:
'"><h1>Test</h1>
<marquee>abc
Actual results:
In both cases, the HTML was accepted and stored by the Containers popout. This is presented in an unsanitised fashion upon clicking the Containers toolbar icon.
Expected results:
The HTML should be sanitised upon being stored in the browser. I have flagged this issue as Security-Sensitive on the basis that XSS-like attacks may be possible, although am currently unable to identify a suitable Proof of Concept.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the container name input was not sanitised before being stored and rendered in the popout.
Impact
An attacker could inject HTML that is stored and displayed unsanitised, potentially enabling XSS-like attacks, though the reporter could not identify a suitable proof of concept.
What the attacker needed
Firefox with Test Pilot; Containers experiment installed; Ability to create a container
How it was found
- Add the Containers experiment via Test Pilot.
- Click the Containers toolbar icon.
- Select the '+' option to create a new container.
- Enter a container name containing HTML markup.
- Click the Containers toolbar icon to view the stored name.
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 report has not been written yet. The Original tab links to the source.
This report is about a browser feature that lets you name containers. The names were not cleaned before being shown, so someone could put HTML code in a name and it would run or display as code. That could let an attacker do things like run scripts, though the reporter did not prove it.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.