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.
2019
8 pointsNew this year2
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
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
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
They sent crafted postMessage to SDKs and login page listeners to trigger DOM-based XSS, as shown in the disclosed reports.
They bypassed origin checks using substring matching and domain prefix tricks, as shown in the disclosed reports.
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
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
Angular template injection, common in 2016 and 2017, was rarely reported, as shown in the earlier reports.
Seen in 2 reports
2018
9 pointsNew this year4
Persistent DOM-based XSS through localStorage rendering was a new pattern, as shown in the disclosed reports.
Seen in 1 report
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
-
$500 Medium
-
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
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
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
They combined DOM-based XSS with clickjacking and CSRF for greater impact, as shown in the disclosed reports.
Seen in 2 reports
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
They found DOM-based XSS in shared widgets affecting multiple sites, as shown in the disclosed reports.
Seen in 1 report
Turned up less1
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 pointsNew this year3
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
Using postMessage to reach admin interfaces and trigger template evaluation was a new vector, as shown in the disclosed reports.
Stored DOM-based XSS in report design features was observed, as shown in the disclosed reports.
Seen in 1 report
Kept working5
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
They examined search features and store pages for DOM-based XSS, as shown in the disclosed reports.
Seen in 3 reports
They used fragment parameters written into innerHTML and tested for rendering, as shown in the disclosed reports.
Seen in 1 report
They sent crafted postMessage to admin modal APIs and checked for template evaluation, as shown in the disclosed reports.
They retested patched DOM-based XSS to find bypasses, as shown in the disclosed reports.
Seen in 1 report
Turned up less1
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 pointsNew this year2
Angular template injection in query parameters appeared as a technique, as shown in the disclosed reports.
Seen in 1 report
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
They found DOM-based XSS in checkout flows and on various web properties, as shown in the disclosed reports.
Seen in 5 reports
They probed activation pages and search boxes for DOM-based script injection, as shown in the disclosed reports.
Seen in 2 reports
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 pointKept working1
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