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 time-of-day format preference was inserted into the file overview without escaping.
Seen in 1 report
-
The title parameter was reflected into the DOM without sanitisation or output encoding.
Seen in 1 report
-
The toDOM function copied a node attribute into output without checking its type, so an array was read as an element specification.
Seen in 1 report
-
The token URI contract built an SVG from the ERC20 symbol without sanitisation.
Seen in 1 report
-
The token-sending function used a user-supplied targetOrigin parameter without validating it against a whitelist.
Seen in 1 report
-
The tooltip was built by concatenating attribute values into HTML and passed to jQuery, which re-parsed it as markup.
-
The tracking URL was stored without scheme validation and placed directly into an anchor href.
Seen in 1 report
-
The translation feature did not neutralise all payload variants, so a longer polyglot got through.
Seen in 1 report
-
The translation view re-rendered stored post content without sanitising event-handler attributes, so a whitelisted tag with an inline handler executed.
Seen in 1 report
-
The True-Client-IP header was reflected into the login history page without output encoding, and login/logout lacked CSRF protection.
Seen in 1 report
-
The TV device name was stored unsanitised and a session cookie could be set from a URL parameter.
Seen in 1 report
-
The unsafe link parameter was reflected into an HTML attribute without encoding.
Seen in 1 report
-
The update endpoint identified the target account by a user-supplied email address instead of the authenticated session.
Seen in 1 report
-
The upload accepted SVG content without sanitising it and the CDN served it inline, while cookies were scoped to a shared parent domain.
Seen in 1 report
-
The upload allowed changing the file extension and content type, enabling an SVG with JavaScript to be stored and executed.
Seen in 1 report
-
The upload check trusted the file name and declared content type instead of the actual file contents.
Seen in 1 report
-
The upload checked only the extension or declared type, not the content, and served the file as an image type the browser rendered as active SVG.
Seen in 1 report
-
The upload endpoint accepted SVG files without sanitisation and served them from the application's own origin, while tokens were stored in JavaScript-accessible LocalStorage.
-
The upload endpoint did not restrict file types and served files with an inline content disposition.
Seen in 1 report
-
The upload endpoint did not set a content type response header so browsers rendered uploaded HTML as active content.
-
The upload endpoint did not validate file type or content so a script-bearing file was served back and executed.
Seen in 1 report
-
The upload endpoint required no authentication and did not validate the fileUidList parameter, so the payload was stored and rendered.
Seen in 1 report
-
The upload endpoint stored the user-supplied filename and rendered it into the chat page without sanitising or encoding.
Seen in 1 report
-
$1,000 Critical
-
-
The upload endpoint trusted client-supplied SVG and JSON, stored them under a predictable hash-based path and served them from a CDN without validation.
Seen in 1 report
-
The upload endpoint trusted the client content type and served stored files as HTML without sanitising metadata.
Seen in 1 report
-
The upload endpoint trusted the client-supplied filename extension and content type instead of validating the actual file content and serving uploads with a safe content type.
Seen in 1 report
-
The upload feature accepted SVG files and served them inline with a content type that lets the browser execute embedded script, instead of forcing a download or sanitising the file.
Seen in 1 report
-
The upload feature allowed JavaScript content types and the message filter did not block iframe srcdoc.
Seen in 1 report
-
The upload feature did not validate file types strictly and served user-supplied HTML with a text/html content type.
Seen in 1 report
-
The upload feature trusted the file extension and client-supplied Content-Type instead of validating the actual content, and served the file in a way the browser rendered as HTML.
Seen in 1 report
-
The upload feature trusted the file extension and did not validate the actual file content.
Seen in 1 report
-
The upload feature trusted the file extension instead of validating content, and plan limits were enforced only in the browser or without atomic checks.
Seen in 1 report
-
The upload feature validated only the file extension and did not restrict or sanitise HTML content, and the uploaded files were served from a directory that executes HTML.
Seen in 1 report
-
The upload field allowed a URL value and the checkout page rendered it without restricting the scheme.
Seen in 1 report
-
The upload handler did not check the file's real type or content and stored it where it was later rendered.
-
The upload handler preserved the SVG content type instead of forcing a safe type.
Seen in 1 report
-
The upload handler stored any file type and the logo endpoint served it so browsers rendered it as HTML.
Seen in 1 report
-
The upload only checked the file extension and not the actual content, and the OAuth redirect_uri was not validated against a whitelist.
Seen in 1 report
-
The upload only checked the file extension and the page parameter was printed into HTML without encoding.
Seen in 1 report
-
The upload only checked the file extension or declared type and served the file inline, so SVG script was rendered by the browser.
Seen in 1 report
-
The upload only validated the file extension and did not restrict active content types, so an xhtml file was served as executable markup.
Seen in 1 report
-
The upload plugin used jQuery's .html() method to insert the unsanitised filename.
Seen in 1 report
-
The upload service did not validate file types and the image proxy trusted content from the storage bucket without checking it was an image.
Seen in 1 report
-
The upload trusted the client content type and did not re-encode image metadata, so the file was served as text/html.
Seen in 1 report
-
The upload validation only checked the file extension and the server served uploaded files with a content type that allowed script execution.
-
The uploaded CSV filename was not sanitised or encoded before being displayed in the admin interface.
Seen in 1 report
-
$500
-
-
The uploaded file name is inserted into HTML without encoding.
Seen in 1 report
-
The uploaded file name was reflected into the page without proper output encoding, allowing script execution.
Seen in 1 report
-
The uploaded file was named using the client-supplied extension and validation only checked magic bytes, not actual content.
Seen in 1 report
-
The uploaded filename was inserted into an error message without HTML encoding and the endpoint accepted cross-site multipart POSTs.
Seen in 1 report