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 FontMatrix array was read from the PDF dictionary with no numeric type validation and concatenated into a generated function body.
Seen in 1 report
-
The form plugin stored a header value without sanitising it, and the third-party service rendered it without encoding.
Seen in 1 report
-
The form's submit handler sanitised input by writing it into a temporary element's innerHTML, which parses markup and can trigger event handlers.
Seen in 1 report
-
The format hook responsible for linkifying Git commit messages did not escape HTML entities in its output.
Seen in 1 report
-
The formatter treated the on-chain text-record key as trusted display text with only a truthiness check and no allowlist, length cap or character filtering.
-
The forum did not encode user-supplied topic titles before rendering.
Seen in 1 report
-
The fragment context element's stack item did not copy the element's attributes, so checks relying on the encoding attribute on MathML annotation-xml failed.
Seen in 1 report
-
The fragment parser tracks the ancestor that reset the namespace in a single pointer instead of a stack, so nested resets clear the state for outer elements.
Seen in 1 report
-
The fragment parser was given the live document's custom element registry, so callbacks fired before sanitisation.
Seen in 1 report
-
The fragment was used as a form action without checking it began with http.
Seen in 1 report
-
The fragment-only URL check only runs for attributes without a namespace, so namespaced attributes skip it.
Seen in 1 report
-
The frame-src allowlist used a wildcard for a whole free hosting domain instead of one project subdomain.
Seen in 1 report
-
The framework's default MIME type was overridden to text/html, so JSON was interpreted as HTML.
Seen in 1 report
-
The frontend passed the API's search_query value into React's dangerouslySetInnerHTML, skipping default escaping.
-
The frontend persisted the JWT in sessionStorage instead of an HTTP-only cookie.
Seen in 1 report
-
The FTP upload path stored the original filename without the sanitisation used by manual rename.
-
The FTP username field was not sanitised before being shown in the admin panel.
-
The full URL assigned to the root scope without sanitising for later render contexts.
-
The full URL was reflected into a canonical link tag without encoding, and the WAF could be bypassed.
Seen in 1 report
-
The gadget-loading endpoint accepted an arbitrary remote URL instead of restricting it to trusted local sources.
Seen in 1 report
-
The game failed to sanitise or escape formatting markup in player-supplied names before displaying them to other players.
-
The game_id parameter was reflected without validation or encoding.
Seen in 1 report
-
The GameplayVersion field was not sanitised or escaped before being rendered on the public guide page.
Seen in 1 report
-
The gem server rendered the homepage value directly into an anchor href without restricting the URL scheme.
Seen in 1 report
-
The generator did not validate input before encoding it, and the browser executed the javascript: URI.
Seen in 1 report
-
The gist tag validated the URL only by checking whether it contained the expected host name as a substring.
Seen in 1 report
-
The GitHub organisation checked in the URL string without normalising the path.
-
The goal title input was not sanitised or escaped before rendering.
Seen in 1 report
-
The group name was inserted into the twitter:description meta tag without output encoding or sanitisation.
Seen in 1 report
-
The group name was rendered unsafely on an old page.
Seen in 1 report
-
$3,263
-
-
The group name was sanitised in most places but reflected without encoding in the make-member-admin option.
Seen in 1 report
-
The group name was stored raw and later inserted into the page without output encoding or sanitisation.
-
The handler accepts messages from any origin and allows calling any method, and the help dialog inserts user data into HTML without sanitisation.
Seen in 1 report
-
The handler checked origin but never validated the blob's content type before creating an object URL.
Seen in 1 report
-
The handler does not check the message origin and inserts CSS into a style element using innerHTML.
Seen in 1 report
-
The handler reflected request data into an HTML response without sanitisation or output encoding.
Seen in 1 report
-
The handler trusted a query parameter to supply a secondary URL and did not restrict its scheme.
Seen in 1 report
-
The handler trusted postMessage data without validating the sender's origin and inserted it into a script element as executable code.
Seen in 1 report
-
The header field passed user input into a server-side template without sanitisation, and the template context allowed construction and execution of JavaScript.
Seen in 1 report
-
The headline field was not filtered, and the Content Security Policy allowed inline scripts without a nonce.
Seen in 1 report
-
The helper removed literal control characters before decoding HTML entities, so control characters introduced by entity decoding were not stripped before protocol validation.
-
The helper trusted any non-string value as an already-validated URI object and called toString on it without checking its type.
-
The helper was injected at document end after web content loaded, letting a page script define an overriding object.
Seen in 1 report
-
The hidden parameter was reflected into an HTML attribute without encoding or validating it, allowing the attribute context to be broken.
-
The hidden parameter's value was written into the HTML response without output encoding, allowing markup to break out of its context.
Seen in 1 report
-
The history sidebar restored a data URI navigation without carrying over the CSP that applied to the original page.
Seen in 1 report
-
The Home button's drop handler did not check the URL scheme.
Seen in 1 report
-
The home page URL value was stored and later rendered into the edit page without proper output encoding or validation.
Seen in 1 report
-
The host combined allow-same-origin with allow-scripts on the WordPress iframe and applied its Document Isolation Policy only to responses that already carried a COEP header.
-
The hostname comparison did not normalise the trailing dot before comparing.
Seen in 1 report