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 51 to 69 of 69

2020

5 points

Kept working5

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

    Seen in 1 report
  2. 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
  3. 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
  4. A branch name containing markup was used to test escaping in the duplicate dashboard modal on the metrics page.

    Seen in 1 report
  5. 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

2019

7 points

New this year2

  1. Browser and desktop client policy bypasses appeared as their own class, distinct from the earlier pairing with reflected or stored XSS on marketing or admin pages.

    Seen in 2 reports
  2. JavaScript URLs were used to run script despite the policy, including as a follow-up URL where inline script would be blocked.

    Seen in 2 reports

Kept working5

  1. Browser-specific policy bypasses were tested against a current browser build and the version was reported.

    Seen in 2 reports
  2. Blob URLs were used to load script that the policy would otherwise block.

    Seen in 2 reports
  3. Places where an attacker could inject or influence the policy itself, such as through a cached response header, were used to relax the rules.

    Seen in 1 report
  4. Crafted window messages sent to a third-party marketing form were watched to see whether a follow-up URL from the message data was used for navigation.

    Seen in 1 report
  5. A DevOps portal was probed for reflected input and then tested for a policy bypass to execute it.

    Seen in 1 report

2018

6 points

New this year1

  1. Browser and desktop client policy bypasses began to appear as their own class rather than always being paired with a reflected or stored XSS on marketing or admin pages.

    Seen in 2 reports

Kept working5

  1. Merchant or user-supplied free-text fields submitted through the API were checked on the admin review page for markup rendering.

    Seen in 1 report
  2. Installed browser extensions were tested as a way to load or run script on a page whose policy would otherwise block it.

    Seen in 1 report
  3. The browser's built-in XSS filter behaviour was used to neutralise or reshape a page so the policy no longer blocked injected script.

    Seen in 1 report
  4. A chat websocket host's query parameter reflected into the HTML response was fuzzed to slip past the CDN filter.

    Seen in 1 report
  5. A small policy bypass was chained with an OAuth flow to reach and steal a third-party session token.

    Seen in 1 report

2017

1 point

Kept working1

  1. Hunters showed that an allowed analytics script could be repurposed to send data out of the page, turning it into an exfiltration channel under the policy.

    Seen in 1 report