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 application set a cookie without the HttpOnly attribute in its Set-Cookie header.
Seen in 1 report
-
The application set an incorrect Content-Type header for the response, possibly due to a misconfiguration or a bug in how the content type is determined.
Seen in 1 report
-
The application stored the User-Agent header and later rendered it in an HTML option tag without output encoding.
-
The application stored user input without sanitisation and allowed unrestricted file uploads to a web-accessible directory.
Seen in 1 report
-
The application stored user-supplied story content and rendered it without proper output encoding or sanitisation.
Seen in 1 report
-
The application stored user-supplied XML content and later rendered it on the print page without properly encoding or sanitising it.
Seen in 1 report
-
The application stored usernames without output encoding, exposed a phpinfo page reflecting request headers, and passed an unvalidated URL into include() with remote inclusion enabled.
-
The application treated possession of an invitation code as sufficient authorisation without binding it to the requester, and stored and rendered answers without output escaping.
Seen in 1 report
-
The application treated the filename as trusted metadata and rendered it without output encoding while all validation focused on file contents.
Seen in 1 report
-
The application trusted a third-party rich text editor's built-in sanitisation and inserted user content directly without additional encoding.
Seen in 1 report
-
The application trusted client-side validation and did not sanitise input on the server before storing and exporting it.
Seen in 1 report
-
The application trusted the callbackUrl parameter without validating it pointed to a safe internal location and allowed javascript: URLs.
Seen in 1 report
-
The application trusted the file extension and client-supplied MIME type instead of validating the actual file content, and served SVGs as image/svg+xml on the same origin.
Seen in 1 report
-
The application trusted the landing page cookie and inserted it into an anchor href without validating the scheme.
Seen in 1 report
-
The application trusted the X-Forwarded-For header and inserted it into the page without sanitisation while only validating the User-Agent.
Seen in 1 report
-
The application URL-decoded the token and inserted it into an HTML attribute without context-aware encoding, and the session cookie lacked HttpOnly.
-
The application used AngularJS to render user-controlled input (the name field and a default property value) without sanitising it, leading to client-side template injection.
Seen in 1 report
-
The application used dangerouslySetInnerHTML to render JSON-LD and concatenated the search term into that JSON without encoding.
-
The application used default credentials on the login page and failed to validate uploaded file types, allowing HTML files to be stored and served with a content type that browsers render.
Seen in 1 report
-
The application used eval on data from an API response without validating or sanitising it.
Seen in 1 report
-
The application used non-root-relative paths for resources and the web server resolved path-info after the file extension.
Seen in 1 report
-
The application used the last url parameter for signature verification while the browser used the first, and the frontend rendered the unsanitised URL.
Seen in 1 report
-
The application uses AngularJS to render user-controlled profile name fields without proper sanitisation, allowing expression injection.
Seen in 1 report
-
The application validated file types by checking only the file extension and did not properly handle null bytes or inspect file content.
Seen in 1 report
-
The array parameter was reflected into the response body without encoding, and the multipart/mixed content type caused Internet Explorer to sniff it as HTML.
Seen in 1 report
-
The assertion consumer service location was not checked against the declared binding syntax and was inserted into a form action unsanitised.
-
The attachment file name was output without HTML escaping in the media list table and attachment page templates.
Seen in 1 report
-
The attachment filename was not escaped when included in the JSON response and was later inserted into the DOM without sanitisation.
Seen in 1 report
-
The attribute filtering uses case-sensitive matching, so uppercase scripting attributes created via DOM APIs are serialised into the archive.
Seen in 1 report
-
The audio and video onebox parsers mishandled single quotes in user-supplied URLs.
Seen in 1 report
-
The auditor's pattern matching missed an unclosed base tag and quote characters below the injection point.
Seen in 1 report
-
The auth query parameter was inserted directly into a JavaScript context without validation or encoding.
Seen in 1 report
-
The author name was read from the DOM and re-inserted via an HTML-building function without encoding.
Seen in 1 report
-
The author_url derived from the commit email was marked HTML-safe and inserted into an anchor without sanitisation.
Seen in 1 report
-
Medium
-
-
The auto-link regular expression matched any word characters before a colon instead of restricting to safe schemes.
Seen in 1 report
-
The auto-URL regex assumed parentheses were removed by encoding, and the theme import stored the templateset property without sanitisation before using it in a SQL query.
Seen in 1 report
-
The autocomplete endpoint returned stored organisation names without output encoding.
Seen in 1 report
-
The autofill script built JavaScript by concatenating user-controlled card fields without escaping.
Seen in 1 report
-
The automatic syntax-highlighting-off path for files over 256kB rendered the file content without HTML escaping, unlike the manual highlight-off path.
Seen in 1 report
-
The autosuggest rendered input without sanitisation and the application lacked anti-framing headers for authenticated users.
Seen in 1 report
-
The backend accepted markup in a plain-text field and the support-mail template inserted it into an HTML context without encoding.
-
The backend checks only that the URL contains the CDN domain, not that it belongs to the organisation's tenant path.
Seen in 1 report
-
The backend did not enforce the same input validation and password policy as the frontend.
-
The backend filtered some characters but the frontend inserted the same data into a different context without matching escaping.
Seen in 1 report
-
The backend serialised user data into a JSON script element without escaping the sequence that terminates the script element.
Seen in 1 report
-
The backend trusted the file extension and Content-Type header instead of validating the actual file content with magic bytes.
Seen in 1 report
-
The badge name, description and key display name were stored and rendered without output encoding or input sanitisation.
Seen in 1 report
-
The badge renderer decoded HTML entities after substituting untrusted profile values and passed the result to a UI component without output escaping.
-
The banner block description was rendered without output encoding or sanitisation.
Seen in 1 report
-
The banner identifier was written into HTML form fields without HTML encoding.
Seen in 1 report