In-depth lesson · XSS
Root causes
Every point the XSS reports back under this heading, best-backed first, each with the reports it is seen in.
-
The page reflected a parameter without output encoding and the filter could be bypassed by duplicate parameters.
-
The page reflected the product parameter into its output without output encoding or input validation.
Seen in 1 report
-
The page sent a message containing URL parameters to a different origin without validating the target origin.
-
The page size parameter lacked input validation and output encoding.
Seen in 1 report
-
The page title and author name were concatenated into HTML strings without escaping.
Seen in 1 report
-
The page title setting was inserted into title tags without sanitisation, unlike other fields.
-
The page took the URL fragment and passed it into jQuery parseHTML, which writes to innerHTML without sanitising.
Seen in 1 report
-
The page trusted a user-controlled configUrl and loaded remote configuration and specification files from anywhere.
Seen in 1 report
-
The page URL was concatenated into an inline onclick JavaScript string without escaping.
Seen in 1 report
-
The page used a template that interpolated the token without HTML escaping, and Firefox did not encode single quotes.
Seen in 1 report
-
The page used innerHTML with unsanitised data from a drag-and-drop event.
Seen in 1 report
-
The page wrote a user-controlled query value into an anchor's href and programmatically clicked an element chosen by the hash without checking the URL scheme.
Seen in 1 report
-
The page wrote user input into the document with innerHTML and the session cookie was set without HttpOnly.
Seen in 1 report
-
The parameter is reflected without HTML-encoding angle brackets and cookies lack HttpOnly.
Seen in 1 report
-
The parameter is reflected without output encoding.
Seen in 1 report
-
The parameter was concatenated into an HTML attribute without encoding, and the CSP trusted a subdomain hosting a JSONP endpoint that reflected a callback parameter.
Seen in 1 report
-
The parameter was embedded into the HTML response without output encoding or sanitisation.
Seen in 1 report
-
The parameter was inserted into an HTML attribute without encoding and the WAF only blocked specific tags.
Seen in 1 report
-
The parameter was inserted without output encoding and a keyword-based filter only blocked specific strings.
Seen in 1 report
-
The parameter was reflected without output encoding and the WAF filter was bypassed by the payload encoding.
Seen in 1 report
-
The parameter was written into a style attribute without filtering style-based script execution.
-
The parent page accepted postMessage events from any origin and inserted the dataKey value into the DOM without sanitisation.
Seen in 1 report
-
The parent page passed a user-controlled URL parameter (the merchant ID) directly into the iframe source without validating that it belonged to the expected merchant.
-
The parent process trusted the principal-to-inherit field sent over IPC without validating it, and the coherence check did not catch an HTTP principal inherited into about:blank.
-
The parentOrigin parameter was taken from the query string without validation, bypassing the origin check for incoming messages.
Seen in 1 report
-
The parser assigned the URL from the API response directly to the match destination with no check that the scheme was HTTP or HTTPS.
Seen in 1 report
-
The parser compares the total parsed policy count including HTTP headers with the number of meta tags seen by the preload scanner, so the counts can match prematurely.
Seen in 1 report
-
The parser did not check the URL scheme of navigation suggestions and accepted javascript: URLs.
Seen in 1 report
-
The parser's cleanup of the namespace reset state was skipped because the template element pushes a DocumentFragment and the early return for non-Element nodes skips clearing the state.
Seen in 1 report
-
The password change endpoint trusted only the bearer token with no CSRF protection and sessions were not invalidated on change.
Seen in 1 report
-
The password-change endpoint accepted a CSRF token from a readable cookie and did not require the current password.
Seen in 1 report
-
The paste handler wrote clipboard content to innerHTML before the editor schema sanitised it.
Seen in 1 report
-
The paste protection only checked for a plain javascript: prefix and did not account for malformed file: schemes with control characters.
Seen in 1 report
-
The path after /agecheck/ was not sanitised before being inserted into the page.
Seen in 1 report
-
The PDF generation component rendered unsanitised HTML input, allowing script and iframe tags to execute in a local context.
Seen in 1 report
-
The PDF rendering SDK allowed arbitrary JavaScript injection, mitigated by a content security policy.
Seen in 1 report
-
The PDF viewer rendered uploaded documents without sandboxing or disabling embedded JavaScript.
Seen in 1 report
-
The PDF viewer rendered uploaded files without blocking embedded JavaScript.
Seen in 1 report
-
The permalink script trusted a parameter to pick the data source and inserted the returned body HTML without sanitising.
Seen in 1 report
-
The permission model for active tab did not restrict access to subframes, treating all frames in the tab as the same scope.
Seen in 1 report
-
The pinboard accepted and rendered script-scheme URIs as clickable links without sanitising the scheme.
Seen in 1 report
-
The pipeline sanitised with DOMPurify before decoding HTML entities, so a second decode after sanitisation turned harmless text into live markup.
-
The placeholder value is assigned directly to innerHTML without escaping.
Seen in 1 report
-
The player allowed an attacker-controlled cdn_url to load an arbitrary SWF into its security domain and trusted the shared object.
-
The plugin applied shortcode processing to comment text via the comment_text filter without validating shortcode attributes or escaping the output.
Seen in 1 report
-
The plugin decoded an encoded form parameter and echoed a nested value into the page without output encoding.
Seen in 1 report
-
The plugin did not filter special HTML characters when generating error messages.
Seen in 1 report
-
The plugin did not validate that X-Forwarded-For held a valid IP address and did not sanitise the tab parameter.
-
The plugin echoed user input into a generated page without encoding.
Seen in 1 report
-
The plugin failed to escape cache keys according to the HTML output context before rendering them in an admin page.
Seen in 1 report