Skip to content
XSS Disclosed report Beginner

[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.

Yasin Soliman Follow

Originally disclosed on Mozilla

  • Fixed in 4 days
  • Paid in 8 days
  • Disclosed after 4 days
Text
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.

The original report as published on Mozilla's Bugzilla, by Yasin Soliman. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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

  1. Add the Containers experiment via Test Pilot.
  2. Click the Containers toolbar icon.
  3. Select the '+' option to create a new container.
  4. Enter a container name containing HTML markup.
  5. 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.

More from Mozilla

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.