Skip to content

In-depth lesson · CSP bypass

Year by year

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 50 of 69

2025

10 points

New this year4

  1. The dependency proxy was pointed at an attacker server so it cached a response with an attacker policy header, then tested in Firefox.

    Seen in 1 report
  2. An SVG containing a form was hosted on the asset proxy to check whether the proxied content's policy blocked form submissions.

    Seen in 1 report
  3. An HTML file uploaded as a model artifact was served inline through the proxy endpoint with a redirect header.

    Seen in 1 report
  4. A request to the proxy endpoint with no content type header stored a link with a type hint in a project description and was clicked in Firefox.

    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 6 reports
  2. The markdown placeholders feature was enabled with a scoped label and a tag whose name contained markup, and the rendered output was viewed.

    Seen in 1 report
  3. A public project with an AsciiDoc README setting a data attribute to a raw snippet URL was viewed on the user's profile contributions calendar.

    Seen in 1 report
  4. A crafted notebook file opened in the web IDE used a service worker path traversal plus a same-origin HTML file to leak the CSRF token.

    Seen in 1 report
  5. The code navigation index response was overwritten with a crafted payload and a blob page showing a Python file was refreshed.

    Seen in 1 report
  6. A wiki page whose path was crafted markup was referenced from a commit message and the commit page opened.

    Seen in 1 report

2024

8 points

New this year2

  1. DOM clobbering, postMessage and service worker tricks were increasingly chained with the policy bypass.

    Seen in 2 reports
  2. With HTML injection already available, an allowed third-party script bundling AngularJS was used to read the page nonce and load a 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 6 reports
  2. DOM clobbering was used to override a variable the policy relied on and bypass it.

    Seen in 1 report
  3. An issue title containing markup was used to trigger autocomplete in the rich text editor and check whether the query was escaped in the highlight.

    Seen in 1 report
  4. A comment containing markup that referenced a raw snippet path in a commit diff was refreshed to see whether it rendered.

    Seen in 1 report
  5. A wiki sidebar page using a reference filter trick plus mutation XSS was reloaded to see whether script ran.

    Seen in 1 report
  6. Markup in the pronunciation field of a profile was viewed on the profile page to see whether it was sanitised.

    Seen in 1 report

2023

9 points

New this year3

  1. Desktop mail clients and Electron apps where a parsing flaw led to sandbox and policy bypass and then code execution became a recurring theme.

    Seen in 4 reports
  2. A hidden AngularJS gadget in an analytics product was found and used to bypass the policy, including by loading an old AngularJS build from an allowed CDN.

    Seen in 1 report
  3. Markup stored through a GraphQL mutation was checked for execution when rendered, chaining to account takeover.

    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 4 reports
  2. Crafted emails sent to a webmail client were tested for a parsing issue letting script escape the message sandbox.

    Seen in 3 reports
  3. Electron desktop apps were tested for whether they enforced their policy and whether a bypass led to code execution.

    Seen in 2 reports
  4. A project imported from a dummy server returning a label with a crafted colour value was viewed on the labels page.

    Seen in 2 reports
  5. DOM clobbering was used to override a variable the policy relied on and bypass it.

    Seen in 1 report
  6. The lang attribute of a pre block was set to crafted markup alongside a valid diagram language and viewed in the rendered comment.

    Seen in 1 report

2022

10 points

New this year4

  1. A base tag injected into a note or issue description and pointed at an attacker server was used to see whether the page loaded scripts from there.

    Seen in 1 report
  2. A crafted notebook file opened in a desktop editor used a postMessage reply plus a path traversal in the internal file protocol to load attacker HTML.

    Seen in 1 report
  3. A dangling iframe whose target domain could be taken over was used to bypass the policy.

    Seen in 1 report
  4. A tag crafted to differ between the sanitiser's parser and the browser's was previewed in an email template to see whether it survived.

    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 6 reports
  2. Browser-specific policy bypasses were tested against a current browser build and the version was reported.

    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. An iframe with a document body placed in a class diagram label was viewed in the rendered issue to see whether special characters were escaped.

    Seen in 1 report
  5. Markup injected into the cardinality or multiplicity part of a class diagram was viewed by an admin to test privilege escalation.

    Seen in 1 report
  6. An unmatched closing curly brace in the theme CSS directive was used to check whether selectors after it escaped the diagram scope.

    Seen in 1 report

2021

9 points

New this year3

  1. A sanitiser that allowed only a strong tag but still permitted data attributes was turned by a UI framework into an interactive popover loading an external script.

    Seen in 1 report
  2. A scanner profile name set to a strong element with data attributes creating a popover was clicked on the audit events page to trigger it.

    Seen in 1 report
  3. The emoji map stored in local storage was modified so that typing a colon in a description field inserted the value unsanitised.

    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 6 reports
  2. An Electron desktop app was tested for whether it enforced its policy and whether a bypass led to code execution.

    Seen in 1 report
  3. An iframe with a document body placed in a class diagram label was viewed in the rendered issue to see whether special characters were escaped.

    Seen in 1 report
  4. An issue title containing a template variable and markup was used to test whether autocomplete rendered it when the reference trigger was typed.

    Seen in 1 report
  5. A design filename containing a double quote was referenced in Markdown to check whether the attribute broke out.

    Seen in 1 report
  6. The flowchart HTML labels directive was set to the string false and an iframe with a document body included in a diagram to see whether sanitisation was skipped.

    Seen in 1 report

2020

4 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 working1

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

    Seen in 5 reports