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.
-
A user-controlled callback parameter invoked a parent function and the server response was passed to eval without validation.
Seen in 1 report
-
$1,500
-
-
A user-controlled document field was placed into a link href without restricting the URL scheme.
Seen in 1 report
-
$2,000 High
-
-
A user-controlled filename was inserted into the DOM via innerHTML instead of textContent or escaping.
Seen in 1 report
-
A user-controlled name echoed into a JSON response without the nosniff header, letting IE11 content-sniff it as HTML.
Seen in 1 report
-
A user-controlled redirectPath was passed to the router without checking it was a safe path.
-
A user-controlled return URL was inserted directly into a JavaScript string inside a script tag without escaping.
Seen in 1 report
-
A user-controlled URL parameter was reflected directly into the CSP header, and the form-action directive was omitted even though it does not fall back to default-src.
Seen in 1 report
-
A user-controlled URL was stored and rendered as a javascript: link without sanitising, and the CSRF token check was ineffective.
Seen in 1 report
-
A user-provided sound URL was appended to the DOM with jQuery append without sanitisation.
Seen in 1 report
-
A user-supplied configUrl was passed to Swagger UI without restricting where configuration could be loaded from.
Seen in 1 report
-
A user-supplied greeting is rendered as markdown without sanitising javascript: URLs, and the endpoint lacks CSRF protection.
Seen in 1 report
-
A user-supplied name was concatenated into an HTML string and marked safe without escaping.
Seen in 1 report
-
A user-supplied relativeRootPath was trusted when building a script URL.
-
A user-supplied URL was inserted into an iframe src without validating that it was a safe web address.
Seen in 1 report
-
$3,600 High
-
-
A user-supplied URL was used directly in a redirect without checking it was a safe http(s) URL, so javascript schemes were accepted.
Seen in 1 report
-
A user-supplied value from the request URL was inserted into a notification without validation or encoding.
Seen in 1 report
-
A value read from localStorage was inserted into the page HTML without encoding.
Seen in 1 report
-
A value was HTML-encoded and then inserted as HTML, so the encoding did not prevent markup creation.
Seen in 1 report
-
A Vue component rendered the Kubernetes namespace value using unescaped interpolation.
Seen in 1 report
-
$3,000 High
-
-
A Vue directive rendering raw HTML was used on filenames without sanitisation.
Seen in 1 report
-
A vulnerable tag management library merged user-controlled input into objects without validation, allowing prototype pollution.
-
A WAF blocklist missed unusual event handlers and syntax.
Seen in 1 report
-
A whitelist of HTML elements was allowed in name fields without sanitising or escaping before rendering.
-
Abandoned subdomains still configured on Akamai's edge without proper access controls allow content from other Akamai-hosted sites to be loaded.
Seen in 1 report
-
Accepting and storing raw HTML from user input without sanitising it, then rendering it unsafely in staff-facing pages.
-
Accepting SVG files and serving them without sanitising or restricting active content.
Seen in 1 report
-
Access control relied on a client-side redirect and search parameters were inserted into HTML and SQL unsanitised.
Seen in 1 report
-
AI-generated output was rendered as HTML without sanitising it.
Seen in 1 report
-
Alert rule names were stored without sanitising and rendered unsafely.
Seen in 1 report
-
An allow-list check used a substring match on the hostname instead of verifying the domain suffix.
Seen in 1 report
-
An allowlist permitted the formaction attribute on button elements without validating its value.
Seen in 1 report
-
An alt attribute was rendered as HTML in a popup.
Seen in 1 report
-
An AJAX endpoint lacked authorisation checks and output encoding.
Seen in 1 report
-
An API endpoint reflected input into an HTML response and set the Content-Type to HTML instead of JSON.
Seen in 1 report
-
An attacker-controlled channel name was passed to element creation in a code path only reached when a browser feature test was true.
Seen in 1 report
-
An attacker-controlled URL parameter was placed directly into an iframe source without validating the scheme.
Seen in 1 report
-
An authentication cookie was scoped to the parent domain so any subdomain could read it.
-
An authentication token in localStorage combined with a DOM XSS and no Content Security Policy blocking external script loads.
Seen in 1 report
-
An early-return error path did not clear the parsed fragment when Sanitizer creation threw, unlike the earlier error path.
Seen in 1 report
-
An element's link value was copied straight into an anchor href without validating the URL scheme, and clipboard data was trusted.
-
An elements URL parameter was passed to the page without validation so CSS and JavaScript loaded from any host.
Seen in 1 report
-
An email address containing markup was rendered unsafely in the admin dashboard.
Seen in 1 report
-
An empty policy container was stored for a failed navigation and reused for a later successful navigation instead of being recomputed.
Seen in 1 report
-
An endpoint did not set the JSON content-type, so the browser interpreted the response as HTML.
Seen in 1 report
-
An error dialog displayed a user-supplied ID without sanitisation.
Seen in 1 report
-
An error handler passed API error messages to a toast library without escaping, and room creation merged unvalidated extra data.
Seen in 1 report
-
An error in how the wallet browser handled web requests while injecting its provider.
Seen in 1 report
-
An exported activity passes attacker-controlled HTML and base URL to a JavaScript-enabled WebView without validating the caller.
Seen in 1 report
-
An exported activity trusted an intent extra containing a parcelable array of intents and launched them without validating targets or URL schemes.
-
An exported WebView activity loaded a URL from an intent extra without validating scheme or host.
Seen in 1 report