Skip to content
XSS Disclosed report Intermediate

Stored Xss on bugzilla.mozilla.org via comment edit feature from non-admin to admin.

A stored cross-site scripting vulnerability existed in Bugzilla's comment editing feature. When an administrator edited a comment containing a crafted payload, JavaScript could execute in the administrator's browser, though the site's Content Security Policy blocked it in the reporter's test.

r3dpars3c Follow

Originally disclosed on HackerOne

  • Disclosed after 35 days

Hi There ! There is Stored xss on comment feature. The XSS executed when admin tries to edit the comment. The XSS fires. I tried to Bypass the CSP But was not able to.

Steps To Reproduce.

  1. Create a report in bugzilla.mozilla.org as users.
  2. Comment this xss payload as users </base</sTyle/</scRIpt/</textArea/</noScript/</tiTle/--><h1/<h1><image/onerror="import('data:application/javascript;charset=utf-8;base64,YWxlcnQoZG9jdW1lbnQuZG9tYWluKTtjb25zb2xlLmxvZyhkb2N1bWVudC5kb21haW4pOy8v')//%27"src><script>
  3. Now as admin, TRy to edit the comment, you will see xss popup with document.domain when csp disabled.

I am working on to bypass the csp I have filed a bug report on bugzilla with my xss containing comment. https://bugzilla.mozilla.org/show_bug.cgi?id=1848911 Try to edit and check your browser console if csp is enabled. if csp isn't enabled, you will be able to see popup. I tested this on my local instance, and this worked.

Thanks Best Regards r3dpars3c

Impact

Client side javascript execution.

The original report as published on HackerOne, by r3dpars3c. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 comment editing interface failed to properly sanitise or escape user-supplied content before rendering it in the administrator's browser.

Impact

An attacker could execute JavaScript in an administrator's browser, but the site's CSP blocked the exploit in the reporter's test.

What the attacker needed

A free account; victim is an administrator; victim edits the malicious comment; CSP must be disabled or bypassed

How it was found

  1. Create a report on bugzilla.mozilla.org as a regular user.
  2. Post a comment containing a crafted XSS payload as a regular user.
  3. As an administrator, try to edit that comment.
  4. Observe the XSS popup showing the document domain when CSP is disabled.

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.

Stored XSS is when a site saves harmful code and later shows it to others. Here a user posted a comment with hidden code, and when an admin edited it, the code could run in the admin's browser. The site's security policy (CSP) stopped it in the reporter's test.

What is XSS?

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

More by r3dpars3c

View all

3 more disclosed reports, best first.

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.