Skip to content

In-depth lesson · Mutation XSS and sanitiser bypass

Year by year: 2020

What the disclosed Mutation XSS and sanitiser bypass reports of each year show, newest first: what first appeared, what kept working and what turned up less.

Back to the lesson 1 to 7 of 7 (of 52 in all)

Clear the search

2020

7 points

New this year2

  1. After the fix wrapped the input in an extra CDATA block, repeating the attack with the closing sequence doubled escaped the added wrapper, showing a new bypass technique.

    Seen in 1 report
  2. Sending an HTML email whose style tag used CSS url() values with encoded characters bypassed the sanitiser and injected a form when the email was opened, a new vector in the disclosed reports.

    Seen in 1 report

Kept working5

  1. Feeding crafted markup through an AngularJS application's sanitisation path showed that it mutated into executable markup.

    Seen in 1 report
  2. Creating a custom map whose name contained the CDATA closing sequence followed by markup and exporting it as KML let the name escape the CDATA block in the response.

    Seen in 1 report
  3. Assigning markup containing a template element to innerHTML produced mutation XSS or DOM XSS due to incorrect parsing.

    Seen in 1 report
  4. A DOMPurify bypass relying on HTML namespace confusion was successful.

    Seen in 1 report
  5. Pasting markup combining svg, style and title elements into a page that sanitises clipboard content bypassed the sanitiser.

    Seen in 1 report