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.
-
Filter rule validation was insufficient, allowing CSS injection through malformed selectors and alternative CSS functions.
Seen in 1 report
-
Filtering of javascript: URIs did not account for control characters inserted into the scheme.
Seen in 1 report
-
Firefox did not properly isolate the principal of a data: URI loaded via redirect from an img tag, allowing the SVG to inherit the original domain's origin and set cookies.
Seen in 1 report
-
First and last name fields are not sanitised before storage and rendering.
Seen in 1 report
-
First and last name fields were not sanitised for quotation marks inside an iframe tag.
Seen in 1 report
-
First and last names were not sanitised or encoded before rendering in the connection view.
Seen in 1 report
-
First name not sanitised before embedding in the HTML body of a verification email.
-
Flash's URL handling treated the jar: prefix as transparent and did not re-check the inner scheme against its protocol restrictions.
-
Form fields stored unsanitised and admin panel relying on hidden URLs rather than authentication.
-
Form input stored and rendered back to other users without validation or sanitisation.
Seen in 1 report
-
Form input was not sanitised or escaped before being stored and rendered on the confirmation page.
Seen in 1 report
-
Form input was stored and inserted into a confirmation email without HTML encoding.
Seen in 1 report
-
Forum content was saved and output on the admin forum listing without sanitisation or escaping.
Seen in 1 report
-
Frame size values were placed into HTML attributes without HTML encoding.
Seen in 1 report
-
Front-end proxy trusts the client-supplied forwarded-host header to locate the CDN host.
Seen in 1 report
-
Frontend JavaScript concatenated a user-controlled URL parameter into a fetch path without validating traversal sequences.
-
Function descriptions were inserted into the DOM without sanitisation.
-
GET parameters were echoed directly into an HTML attribute without encoding or validation.
Seen in 1 report
-
Group names and full names were not escaped before rendering in issue activity comments.
Seen in 1 report
-
Group names were inserted into the page without output encoding.
Seen in 1 report
-
Header value inserted into an HTML template without encoding, and the renderer ran from a file origin with local file access.
Seen in 1 report
-
Helpers escaped attribute values but did not validate or escape attribute names or tag names.
Seen in 1 report
-
Hidden code parameter reflected into the HTML response without output encoding.
Seen in 1 report
-
Hidden form fields echoed query-string values into HTML without encoding or validation.
Seen in 1 report
-
HTML entity encoding and semicolon removal were used instead of context-aware output encoding.
Seen in 1 report
-
HTML file uploads were allowed without sanitising or restricting their content.
Seen in 1 report
-
HTML files were accepted and served back with an HTML content type instead of being restricted or forced to download.
Seen in 1 report
-
HTML files were served with a text/html content type without sanitisation or a restrictive Content-Disposition header.
Seen in 1 report
-
HTML special characters were escaped but the URL scheme was not validated before placing input into an href.
Seen in 1 report
-
HTML strings were built by concatenating unescaped values and assigned to innerHTML in privileged pages.
Seen in 1 report
-
HTML was built by concatenating the API title and description into template strings without escaping.
-
HTML was built with Python f-strings before being passed to Markup, so escaping never applied to the user-supplied name.
Seen in 1 report
-
HTML was modified after sanitisation by a different parser that interpreted the markup differently, reintroducing script.
Seen in 1 report
-
Iframe elements were rendered without the sandbox attribute.
Seen in 1 report
-
Iframe lacked origin validation on postMessage and passed attacker-controlled ajax parameters straight to the ajax function.
-
Ignoring nosniff for resources embedded in object tags, allowing content sniffing.
Seen in 1 report
-
Image attribute values were not escaped or validated, producing malformed HTML.
Seen in 1 report
-
Imported page title inserted without sanitisation and the event-handler filter can be bypassed with a malformed tag.
Seen in 1 report
-
Importing and phishing systems rendered stored user text without sanitising it.
Seen in 1 report
-
Improper input validation and output encoding allowed URL-supplied input to be reflected and executed as script.
Seen in 1 report
-
Incoming messages were parsed as JSON without checking the sender origin and the URL was not sanitised before use as an iframe source.
Seen in 1 report
-
Inconsistent attribute whitelists between the editor's general sanitisation and a widget's internal sanitisation, plus missing sanitisation in preview mode.
Seen in 1 report
-
Inconsistent cookie scope and lifetime handling across multiple authentication cookies.
-
Inconsistent input sanitisation across API routes and templates, where some paths encoded user input and others did not.
Seen in 1 report
-
Inconsistent input sanitisation and WAF canonicalisation gaps allowing HTML injection.
Seen in 1 report
-
Inline content disposition with an XHTML filename caused iOS WebKit to sniff and render as HTML.
Seen in 1 report
-
Input echoed without encoding and a return URL trusted without scheme validation.
Seen in 1 report
-
Input filters compared the protocol against a lowercase pattern without normalising case.
Seen in 1 report
-
Input from location.search assigned to innerHTML without sanitisation.
Seen in 1 report
-
Input inserted into a script context without encoding and protected only by a weak blacklist.
Seen in 1 report