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.
2022
8 pointsNew this year2
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
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
Allowing math and style together, reflecting a parameter through the sanitize helper and sending crafted markup let script survive sanitisation.
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
Allowing svg and style together, reflecting a parameter through the sanitize helper and sending crafted markup let script survive sanitisation.
Testing the esdoc-publish-html-plugin HTML sanitiser with crafted markup bypassed it to run script.
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
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