Skip to content

In-depth lesson · Mutation XSS and sanitiser bypass

Year by year: 2022

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 8 of 8 (of 52 in all)

Clear the search

2022

8 points

New this year2

  1. Using the data-disable-with attribute, which the sanitiser did not strip and which Rails-ujs turned into HTML on click, got script or a form submission past the directive, a new technique.

    Seen in 1 report
  2. Splitting a tag name with a line break to get past a filter that removes HTML tags was first seen in the disclosed reports.

    Seen in 1 report

Kept working6

  1. Allowing math and style together, reflecting a parameter through the sanitize helper and sending crafted markup let script survive sanitisation.

    Seen in 1 report
  2. Configuring select and style in the class-level allowed tags, reflecting a parameter through the sanitize helper and sending a crafted select and style payload ran script.

    Seen in 1 report
  3. Allowing svg and style together, reflecting a parameter through the sanitize helper and sending crafted markup let script survive sanitisation.

    Seen in 1 report
  4. Testing the esdoc-publish-html-plugin HTML sanitiser with crafted markup bypassed it to run script.

    Seen in 1 report
  5. Pasting crafted markup into an issue comment showed that the syntax highlighting filter built HTML from unsanitised attributes or the emoji custom element inserted its name attribute into an image tag without escaping.

    Seen in 1 report
  6. Adding CI configuration with job names containing crafted markup, opening the job list, erasing a job's logs and artifacts, then clicking Retry and the error message ran script or submitted a form.

    Seen in 1 report