Skip to content

In-depth lesson · DOM-based XSS

Year by year

What the disclosed DOM-based XSS reports of each year show, newest first: what first appeared, what kept working and what turned up less.

Back to the lesson 51 to 82 of 82

2019

8 points

New this year2

  1. Using mermaid diagrams with javascript: URLs to trigger DOM-based XSS was a new technique, as shown in the disclosed reports.

    Seen in 1 report
  2. Bypassing CSP by retesting in Internet Explorer or Edge emerged as a tactic, as shown in the disclosed reports.

    Seen in 1 report

Kept working5

  1. Hunters tested Shopify's remote redirect method and direct message deeplinks for DOM-based XSS, as shown in the disclosed reports.

    Seen in 3 reports
  2. They sent crafted postMessage to SDKs and login page listeners to trigger DOM-based XSS, as shown in the disclosed reports.

    Seen in 2 reports
  3. They bypassed origin checks using substring matching and domain prefix tricks, as shown in the disclosed reports.

    Seen in 2 reports
  4. They retested CSP-blocked DOM-based XSS in Internet Explorer or Edge where CSP may not apply, as shown in the disclosed reports.

    Seen in 1 report
  5. They found DOM-based XSS in mermaid diagrams via javascript: URLs in click handlers, as shown in the disclosed reports.

    Seen in 1 report

Turned up less1

  1. Angular template injection, common in 2016 and 2017, was rarely reported, as shown in the earlier reports.

    Seen in 2 reports

2018

9 points

New this year4

  1. Persistent DOM-based XSS through localStorage rendering was a new pattern, as shown in the disclosed reports.

    Seen in 1 report
  2. Using an external script URL in a fragment parameter passed to a script loader was a novel technique, as shown in the disclosed reports.

    Seen in 1 report
  3. Poisoning via the X-Forwarded-Host header to achieve stored DOM-based XSS was observed, as shown in the disclosed reports.

    Seen in 1 report
  4. Chaining DOM-based XSS with clickjacking to achieve universal XSS in a browser extension was new, as shown in the disclosed reports.

    Seen in 1 report

Kept working4

  1. Hunters tested error pages and tool pages that use innerHTML unsafely for DOM-based XSS, as shown in the disclosed reports.

    Seen in 2 reports
  2. They combined DOM-based XSS with clickjacking and CSRF for greater impact, as shown in the disclosed reports.

    Seen in 2 reports
  3. They checked whether values from localStorage are rendered without escaping, leading to persistent DOM-based XSS, as shown in the disclosed reports.

    Seen in 1 report
  4. They found DOM-based XSS in shared widgets affecting multiple sites, as shown in the disclosed reports.

    Seen in 1 report

Turned up less1

  1. Angular template injection in query parameters, seen in 2016 and 2017, was less common, as shown in the earlier reports.

    Seen in 2 reports

2017

9 points

New this year3

  1. Testing for DOM-based XSS specifically in Internet Explorer 11 and older document modes emerged, as shown in the disclosed reports.

    Seen in 2 reports
  2. Using postMessage to reach admin interfaces and trigger template evaluation was a new vector, as shown in the disclosed reports.

    Seen in 1 report
  3. Stored DOM-based XSS in report design features was observed, as shown in the disclosed reports.

    Seen in 1 report

Kept working5

  1. Hunters tested specific parameters and functions such as the user parameter of a GitHub widget and the bindBreadCrumb function, as shown in the disclosed reports.

    Seen in 3 reports
  2. They examined search features and store pages for DOM-based XSS, as shown in the disclosed reports.

    Seen in 3 reports
  3. They used fragment parameters written into innerHTML and tested for rendering, as shown in the disclosed reports.

    Seen in 1 report
  4. They sent crafted postMessage to admin modal APIs and checked for template evaluation, as shown in the disclosed reports.

    Seen in 1 report
  5. They retested patched DOM-based XSS to find bypasses, as shown in the disclosed reports.

    Seen in 1 report

Turned up less1

  1. Simple Angular expression evaluation in query parameters, common in 2016, was less prominent, as shown in the earlier reports.

    Seen in 1 report

2016

5 points

New this year2

  1. Angular template injection in query parameters appeared as a technique, as shown in the disclosed reports.

    Seen in 1 report
  2. A Flash SWF file was identified as a source of DOM-based XSS, as shown in the disclosed reports.

    Seen in 1 report

Kept working3

  1. They found DOM-based XSS in checkout flows and on various web properties, as shown in the disclosed reports.

    Seen in 5 reports
  2. They probed activation pages and search boxes for DOM-based script injection, as shown in the disclosed reports.

    Seen in 2 reports
  3. Hunters tested Angular expression evaluation in query parameters and escalated to sandbox escapes, as shown in the disclosed reports.

    Seen in 1 report

2014

1 point

Kept working1

  1. Hunters found DOM-based XSS on high-profile sites such as Khan Academy, genericons.com and PayPal, as shown in the disclosed reports.

    Seen in 3 reports