Skip to content

In-depth lesson · CSP bypass

Year by year: 2020

What the disclosed CSP 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 9 of 9 (of 69 in all)

Clear the search

2020

9 points

New this year3

  1. A large share of reports came from one code hosting platform where Markdown, diagram and reference rendering repeatedly produced stored XSS with a policy bypass.

    Seen in 5 reports
  2. Prototype pollution through URL query parameters consumed by an embedded third-party script was used to inject markup, alongside loading an old AngularJS build from an allowed CDN for expression evaluation.

    Seen in 1 report
  3. A stored message or profile field in a desktop messaging client was tested for reading the file system or running script.

    Seen in 1 report

Kept working6

  1. Markdown, diagram and reference rendering on a code hosting platform repeatedly produced stored XSS with a policy bypass.

    Seen in 5 reports
  2. A crafted page opened in the browser's reader mode was checked for script running there and bypassing the policy.

    Seen in 1 report
  3. An OpenAPI file with crafted attributes was uploaded and the rendered document clicked to see whether the viewer let markup survive sanitisation.

    Seen in 1 report
  4. A link from a public comment to a private project using HTML-encoded tags was checked to see whether the redaction step re-activated the encoded markup.

    Seen in 1 report
  5. A branch name containing markup was used to test escaping in the duplicate dashboard modal on the metrics page.

    Seen in 1 report
  6. A response with a misleading content type was served to check whether the browser sniffed it as HTML, bypassing the policy.

    Seen in 1 report