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 chat interface failed to treat code-block content as inert text and inserted SVG and image markup into the page's HTML.
Seen in 1 report
-
The chat interface rendered user-supplied and AI-generated content without sanitising it.
-
The chat prompt input was reflected without output encoding and the response was cached in a way that served injected content to other users.
Seen in 1 report
-
The chat rendering engine converted Markdown to HTML without properly sanitising the resulting markup.
Seen in 1 report
-
The chat system rendered raw HTML without sanitising it.
-
The chat tags parameter was inserted without correct output encoding.
Seen in 1 report
-
The chatbot did not sanitise user input before rendering it as HTML, and uploads lacked server-side restrictions.
Seen in 1 report
-
The checkout form's input filter only blocked most HTML tags but allowed the html tag, and the thank-you page inserted the first name into the title element without proper output encoding.
Seen in 1 report
-
The circle display name was inserted into the search UI without HTML encoding.
Seen in 1 report
-
The city value from the location cookie was passed through the location suggestion endpoint and rendered into the page without output encoding or validation.
-
The City value was saved without sanitisation and rendered into the forum profile page without HTML encoding.
Seen in 1 report
-
The class diagram renderer did not sanitise user-supplied class names, allowing HTML injection.
Seen in 1 report
-
The clean function assigned untrusted HTML to a detached div's innerHTML, which triggered event handlers before any sanitisation.
Seen in 1 report
-
The cleanup that removes style when select is allowed was applied only to the per-call tag list, not the class-level allowed_tags list.
Seen in 1 report
-
The client concatenated user-controlled folder names into an HTML string without escaping.
Seen in 1 report
-
The client script concatenated the raw JSON response into an eval call.
Seen in 1 report
-
The client's URL parser turned protocol-like text into clickable links without sanitisation, and the OS protocol handler allowed local file execution.
Seen in 1 report
-
The client-side MIME type restriction could be bypassed because files were encrypted before reaching the server.
-
The client-side redirect function assigned a user-controlled parameter directly to window.location without validating the scheme, and the server-side filter only checked the first occurrence of a duplicated parameter.
Seen in 1 report
-
The client-supplied content type was trusted, the CSP allowed same-origin scripts and an error page reflected input.
Seen in 1 report
-
The client-supplied X-Forwarded-For header was inserted into email HTML without encoding.
Seen in 1 report
-
The clipboard sanitiser serialised CSS strings without escaping angle brackets.
Seen in 1 report
-
The CNAME delegation to a third-party survey platform that allows customer-supplied JavaScript, without ensuring that only authorised accounts can use the domain.
Seen in 1 report
-
The code assigns element text content to innerHTML without sanitisation.
Seen in 1 report
-
The code checked only that the URL was structurally valid, not that its scheme was HTTP or HTTPS, and the keyword check allowed hostless javascript: URLs.
Seen in 1 report
-
The code trusted the destination URI from the search backend without checking its scheme.
Seen in 1 report
-
The code used a JSON serialiser instead of an HTML escaper for the reflected bug and omitted the HTML escaper for the From header.
Seen in 1 report
-
The code used a strict string equality check on the entire concatenated X-Content-Type-Options value instead of parsing it as a comma-separated list.
Seen in 1 report
-
The code used request.query_parameters instead of safe_params when building a link, letting dangerous parameters reach the link helper.
-
The code view editor accepted raw HTML without sanitisation and no Content Security Policy restricted embedded frames.
Seen in 1 report
-
The collection name was inserted into an HTML title tag without encoding.
Seen in 1 report
-
The colour name was concatenated into an HTML string passed to jQuery's element constructor instead of being set as text.
-
The colour value was inserted into a CSS style block without sufficient escaping.
Seen in 1 report
-
The combination of a browser bug that allowed malformed Host headers and lax Host header parsing by Heroku and Fastly that treated the slash-containing value as a subdomain of an attacker-controlled domain.
Seen in 1 report
-
The comment field stored the submitted script and rendered it without encoding, and the session cookie was readable by page scripts.
Seen in 1 report
-
The comment field's escaping routine could be reversed by supplying already-escaped characters.
-
The comment renderer accepted image markup and passed attributes through without restricting event handlers.
Seen in 1 report
-
The comment update API did not sanitise the body_html field, unlike the web form and documented fields.
Seen in 1 report
-
The comment value was written into a textarea response without HTML encoding and the POST endpoint lacked a CSRF token.
-
The companion form stored user input and rendered it back without output encoding or sanitisation.
Seen in 1 report
-
The company name was stored and inserted into the message room page without output encoding or sanitisation.
Seen in 1 report
-
High
-
-
The configuration validation schema was incomplete and partial, so unlisted properties were merged into live config unvalidated.
-
The configUrl parameter loaded external JSON without validating its origin.
Seen in 1 report
-
The configUrl parameter was not restricted to trusted origins, so a remote configuration could inject script.
Seen in 1 report
-
The console script built an anchor element by concatenating untrusted text into an HTML string and assigning it with .html().
Seen in 1 report
-
The contact API accepted unauthenticated submissions with no server-side reCAPTCHA check, no CSRF token and no rate limit.
-
The contact form passed message content into the outgoing email without sanitising or escaping it, and a link parameter allowed an open redirect.
Seen in 1 report
-
The container name input was not sanitised before being stored and rendered.
Seen in 1 report
-
The content placeholder was substituted before the JSON-LD placeholder, so page content containing the placeholder got JSON-LD data spliced into it.
Seen in 1 report
-
The Content Security Policy was only attached to HTML responses, leaving renderable types such as SVG unprotected.