XSS vulnerability in the remo-form-payment page
Originally disclosed on Mozilla
- Fixed in 3 days
- Paid in 10 days
- Disclosed after 3 days
Steps to reproduce:
1. Look through https://bugzilla-dev.allizom.org/buglist.cgi?product=Mozilla Reps&component=Budget Requests and select an old bug that nobody will care about (I decided to use https://bugzilla-dev.allizom.org/show_bug.cgi?id=885675).
2. Edit the title of the bug and add <img src=d onerror=alert("xss")> to it (bonus points for adding some text to mask this manipulation).
3. Send an email with a fake sender to a MoCo employee and trick them into entering 885675 under "Budget request bug" on https://bugzilla-dev.allizom.org/page.cgi?id=remo-form-payment.html.
Result:
As soon as the focus moves away from that field the page will load the bug info and - BOOM, alert triggered by the code in bug title. Real malicious code would take over that Bugzilla account.
The problematic code can be found under https://github.com/mozilla/webtools-bmo-bugzilla/blob/7c39ca2/extensions/REMO/template/en/default/pages/remo-form-payment.html.tmpl#L112:
> div.innerHTML = bug_message;
Variable bug_message is being set a few lines above:
> bug_message = "[% terms.Bug %] " + bug_id + " - " + data.result.bugs[0].status +
> " - " + data.result.bugs[0].summary;
The bug summary is being taken over for the message, no HTML escaping.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A high-severity XSS bug in Extensions. Mozilla made it public on 29 February 2016.
About XSS
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.