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.
-
Duplicate Content-Disposition headers coalesced with a comma, failing token validation and defaulting to inline.
Seen in 1 report
-
Dynamic import from an isolated content script resolved through the page service worker.
Seen in 1 report
-
Echoing user-supplied name fields into the page without sanitising or encoding special characters.
Seen in 1 report
-
Echoing user-supplied parameter values into HTML without output encoding.
Seen in 1 report
-
Email clients mishandled malformed or specially encoded sender headers so the displayed address differed from the checked one.
Seen in 1 report
-
Email content was insufficiently validated, allowing CSS injection that affected signed message display.
Seen in 1 report
-
Email template auto-links text that looks like a domain without encoding or validation.
Seen in 1 report
-
Embedding the user-creation nonce in the page DOM so any XSS can read it.
Seen in 1 report
-
Encoding angle brackets but failing to escape quotes or apply attribute-context encoding.
Seen in 1 report
-
Encoding conversions applied after filtering turn benign Unicode into dangerous characters.
Seen in 1 report
-
Enforcing upload validation only client-side or on the original request, with no server-side check of extension, MIME type or content.
Seen in 1 report
-
Error handler passed untrusted server response text straight into eval instead of parsing it as JSON.
Seen in 1 report
-
Error or blank pages returned for malformed URLs were served without the Content Security Policy header that normal pages include.
Seen in 1 report
-
Error pages reflected user input without HTML escaping and a redirect parameter was not validated.
Seen in 1 report
-
Error-handling code inserted iframe messages into the page as HTML without sanitising.
Seen in 1 report
-
Escaping function only escaped single quotes and newlines, so a backslash bypassed it.
-
Example code snippets from scanned files were rendered as active markup in the report.
Seen in 1 report
-
EXIF metadata not stripped or sanitised before serving images.
Seen in 1 report
-
EXIF metadata values inserted into the page without escaping.
Seen in 1 report
-
Exported activities accepted attacker-controlled intents and passed data to WebView or file operations without proper validation.
-
Exported activities passed an attacker-controlled html extra into a WebView bound to the site origin with a JavaScript bridge.
Seen in 1 report
-
Exported activities process deep links without validating scheme, host or path.
Seen in 1 report
-
Extension did not validate the sender of external messages and passed data to a script execution API.
-
Extension-based filtering was relied on and SVG content was not sanitised.
Seen in 1 report
-
Extensions embedded attacker-controlled data in Markdown strings marked as trusted, allowing command links.
-
Externally supplied URL loaded into a JavaScript-enabled WebView with native interfaces exposed to any page.
Seen in 1 report
-
Failing to encode user input before inserting it into the HTML response.
Seen in 1 report
-
Failing to keep JavaScript libraries up to date, leaving known vulnerabilities unpatched.
Seen in 1 report
-
Failing to sanitise a components parameter before rendering it into HTML attributes.
Seen in 1 report
-
Failing to sanitise PDF content before inserting it into the DOM during re-render.
Seen in 1 report
-
Failing to sanitise user-supplied data before including it in database event logs.
Seen in 1 report
-
Feedback form lacked input validation and output encoding.
Seen in 1 report
-
Feedback message inserted into outgoing email without sanitising.
Seen in 1 report
-
Feedback stored as raw HTML and rendered in a staff-facing tool on another server.
Seen in 1 report
-
Fields allowed javascript: pseudoprotocols instead of only alphanumeric characters and dots.
Seen in 1 report
-
File and directory names from stats files were not sanitised.
Seen in 1 report
-
File and directory names were inserted into HTML anchor elements without sanitisation or escaping.
Seen in 1 report
-
File content and extension were validated but the raw filename was stored and rendered into HTML without encoding.
Seen in 1 report
-
File content inserted directly into an HTML string without escaping, and the sanitiser allowed form tags.
Seen in 1 report
-
File extensions were checked only on the client side and file content and names were not validated on the server, and anonymous users could submit tickets to any address.
Seen in 1 report
-
File name substituted into a localisation string and appended to the DOM as HTML without escaping.
Seen in 1 report
-
File names and titles were saved and rendered into file manager pages without HTML encoding.
Seen in 1 report
-
File names extracted from uploaded archives were not sanitised before display.
Seen in 1 report
-
File paths in script creation were not sanitised, allowing traversal and network share resolution.
Seen in 1 report
-
File-type restrictions were enforced on one upload endpoint only while sibling endpoints did no validation.
-
Filename randomisation used a predictable pseudo-random generator.
Seen in 1 report
-
Filenames were not sanitised when rendering notes, and Present mode used a desktop runtime with Node.js integration enabled.
-
Filter blocked literal javascript: links but did not decode HTML entities before checking.
Seen in 1 report
-
Filter decodes CSS escape sequences inside selectors.
Seen in 1 report
-
$5,000
-
-
Filter input inserted into the DOM without sanitising or encoding.
Seen in 1 report