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 server stored unsanitised HTML in the key name without enforcing the client-side length limit.
Seen in 1 report
-
The server stored user-supplied HTML without output encoding, and the KML import endpoint lacked an egress allow-list.
Seen in 1 report
-
The server trusted a client-side file type check and served uploads with a user-controlled content type.
Seen in 1 report
-
The server trusted a client-side response parameter for verification and did not sanitise partner form input.
Seen in 1 report
-
The server trusted client-side link validation and stored the rich text without re-checking the link scheme.
Seen in 1 report
-
The server trusted client-side restrictions and inserted user-controlled profile fields into HTML attributes without sanitisation, while an API endpoint lacked authorisation checks on the badge identifier.
Seen in 1 report
-
The server trusted client-supplied attachment content, a legacy path inserted it via innerHTML, the sanitiser allowed dangerous data attributes, and a framework copied the page's CSP nonce to an injected element.
Seen in 1 report
-
The server trusted client-supplied metadata such as declared file size and filename without validating the actual bytes or sanitising output in the admin review screen.
Seen in 1 report
-
The server trusted the client-supplied Content-Type when storing and serving the file instead of choosing a safe type.
Seen in 1 report
-
The server trusted the client-supplied file type and served the uploaded file as a web page.
Seen in 1 report
-
The server trusted the declared content-type of uploaded attachments instead of validating the file content.
Seen in 1 report
-
The server trusted the file extension or client-side checks instead of validating the real type and content, then served the file so embedded script ran.
-
The server trusted the link type and URL fields without re-validating that an anchor link's URL still began with the expected prefix.
Seen in 1 report
-
The server trusted the client-supplied extension and Content-Type.
Seen in 1 report
-
The server was not configured to send X-XSS-Protection or set HttpOnly and Secure cookie flags.
Seen in 1 report
-
The server wrote filenames directly into HTML without escaping special characters.
Seen in 1 report
-
The server-side autocomplete endpoint echoed the search term into its response without HTML encoding.
-
The server-side PDF renderer executed untrusted JavaScript from user input without sandboxing or proper permissions.
Seen in 1 report
-
The service worker imports additional scripts and reads URL search parameters as configuration, then passes those untrusted values into sensitive functions without sanitisation.
Seen in 1 report
-
The service worker passed the URL fragment through decoding into a document write without sanitisation or a Content-Security-Policy.
-
The service worker script loader did not check the worker-src directive when resolving static import declarations.
Seen in 1 report
-
The session cookie and a password-reset secret were embedded in HTML and API responses.
-
The session cookie lacked the HttpOnly flag, so injected script could read and exfiltrate it.
Seen in 1 report
-
The session cookie value was embedded in a JSON object in the page HTML, making it readable by script despite the HttpOnly flag.
Seen in 1 report
-
The session cookie value was reflected into a hidden field, defeating the HttpOnly protection.
Seen in 1 report
-
The session cookie was issued without the Secure flag, so it could be stolen and reused.
Seen in 1 report
-
The session ID was placed into an inline JavaScript error handler without encoding and the page lacked a strict Content Security Policy.
Seen in 1 report
-
The settings page echoed user-supplied input into the response without properly encoding it, so script was stored and executed.
Seen in 1 report
-
The setup page did not escape dangerous characters in the MySQL username field before displaying it.
Seen in 1 report
-
The setup page failed to sanitise the SSID and password fields before reflecting them into HTML.
Seen in 1 report
-
The shared template inserted the search parameter into a JavaScript template literal without escaping backticks.
Seen in 1 report
-
The shared-code feature trusted the URL fragment, decoding and executing it in an unsandboxed same-origin iframe without validation.
-
The shared_runners_text setting was rendered through a markdown helper that did not sanitise HTML.
Seen in 1 report
-
The sharing plugin rendered the album name without encoding.
Seen in 1 report
-
The shortcode error preview decoded HTML entities and rendered the result without the usual sanitisation.
Seen in 1 report
-
The Signature field was stored and later rendered without output encoding or sanitisation.
Seen in 1 report
-
$50 Medium
-
-
The single sign-on page did not validate or encode user-supplied data before including it in the response.
-
The SIP User-Agent value was inserted into the web page without HTML encoding.
Seen in 1 report
-
The site allowed user-supplied SWF files to be served from its own origin, and Flash's ExternalInterface.call() could be abused to execute JavaScript.
Seen in 1 report
-
The site embedded the Google Sheet without sanitising or isolating the HTML it contained.
Seen in 1 report
-
$2,000 Medium
-
-
The site inserted cookie data into the DOM without sanitisation and lacked CSRF and clickjacking protections.
Seen in 1 report
-
The site loaded an outdated bootstrap.min.js affected by known cross-site scripting issues.
Seen in 1 report
-
The site reflected a URL parameter into the page without properly encoding or validating it.
Seen in 1 report
-
The site relied on a blacklist of HTML tags instead of encoding user input on output, so deprecated tags slipped through.
Seen in 1 report
-
The site_index configuration value was saved and echoed into admin pages without encoding.
-
The SiteName parameter was inserted into a single-quoted JavaScript string without encoding single quotes, angle brackets or slashes.
-
The SiteName parameter was reflected into an inline JavaScript string without encoding.
Seen in 1 report
-
The slug sanitiser preserved URL-encoded characters and a later truncation step decoded them but only re-encoded Unicode, leaving decoded markup stored.
Seen in 1 report
-
The snapshot controller accepted originalUrl from the request body and the view rendered it unsanitised.
Seen in 1 report
-
The SNMP location value was not sanitised or encoded before rendering in a script-executing context.