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 did not validate the content type of uploaded files, allowing HTML with script to be stored and served.
Seen in 1 report
-
The application did not validate the origin of incoming postMessage events and passed message data directly into innerHTML.
Seen in 1 report
-
The application echoed the raw URL contents into an error page without encoding or filtering them.
-
The application escaped characters that break out of the string but did not neutralise template expression syntax.
-
The application failed to encode or validate user input before reflecting it into HTML or using it as a redirect target.
Seen in 1 report
-
The application failed to encode user-controlled first and last names when reflecting them on the template information page.
Seen in 1 report
-
The application failed to encode user-supplied input when rendering the publication name in the notifications widget.
Seen in 1 report
-
The application failed to HTML-encode the page title before inserting it into the page.
Seen in 1 report
-
The application failed to neutralise user-supplied input when generating web pages, letting crafted content influence what the browser displays in the address bar.
Seen in 1 report
-
The application failed to properly encode or escape user input before inserting it into a JavaScript string context.
Seen in 1 report
-
The application failed to properly encode or validate user-supplied input (the variant option name) before rendering it in the Buy Button page's variant title element.
Seen in 1 report
-
The application failed to sanitise or encode user-supplied filenames before inserting them into HTML, allowing a double quote to break out of an attribute context.
Seen in 1 report
-
The application failed to sanitise or encode user-supplied input before including it in the email body.
-
The application failed to sanitise or encode user-supplied network names before rendering them in the browser.
Seen in 1 report
-
The application failed to sanitise user input and used raw SQL string concatenation in the login query.
Seen in 1 report
-
The application failed to sanitise user-supplied input in the email body template, allowing HTML injection.
Seen in 1 report
-
The application failed to validate the URL scheme and allowed javascript: URIs in a link rendered without sanitisation.
Seen in 1 report
-
The application failed to validate the URL scheme in the document link, allowing a javascript: URI to be stored and rendered as a clickable link.
Seen in 1 report
-
The application fails to properly sanitise or validate the contents of uploaded ZIP files, allowing script code to be stored and later executed in the browser.
Seen in 1 report
-
The application fetched content from a user-supplied URL and rendered it without sanitisation.
Seen in 1 report
-
The application loaded a known-vulnerable AngularJS version whose expression sandbox could be bypassed.
Seen in 1 report
-
The application mirrors request headers into response headers and Next.js only sets a default Content-Type when one is absent.
Seen in 1 report
-
The application name was rendered without sanitisation on the OAuth authorization page.
Seen in 1 report
-
The application neither validated that the id parameter was a number nor encoded it before writing it into the HTML response.
Seen in 1 report
-
The application passed a user-controlled file path directly to a file-reading function without restricting it to a safe directory, and later served user-uploaded files without proper content-type or sandboxing.
Seen in 1 report
-
The application performed input sanitisation only on the client side for the forum topic subject, allowing a crafted request to store a script.
Seen in 1 report
-
The application placed user-controlled URL input into the Location header without stripping carriage-return and line-feed characters, permitting header injection.
Seen in 1 report
-
$140 Medium
-
-
The application read baseUrl from the URL and used it directly to set the src of a dynamically created script tag without validation, allowlist or CSP.
Seen in 1 report
-
The application reflected part of the URL path into the page without properly encoding it, allowing an event handler attribute to be injected.
Seen in 1 report
-
The application reflected request parameters into the HTML response without output encoding, allowing the injected markup to break out of the surrounding form.
Seen in 1 report
-
The application reflected search input into HTML and the page title without output encoding.
-
The application reflected the raw URL path into the HTML error response without encoding or validation.
Seen in 1 report
-
The application reflected the URL path into the 404 error page without encoding or validation, allowing text injection.
Seen in 1 report
-
The application reflected the uuid parameter without context-aware encoding and also sent a text/html Content-Type, causing the browser to render the response as HTML.
-
The application reflected user input into an HTML attribute without proper encoding, and triple URL encoding bypassed the sanitisation.
Seen in 1 report
-
The application reflected user input into the HTML body without output encoding, and the WAF only blocked script tags.
Seen in 1 report
-
The application reflected user input without sanitisation in a search function, and its CORS policy trusted any subdomain of the app to access sensitive data endpoints.
Seen in 1 report
-
The application reflected user-controlled input (Host header, cookie, POST parameter) without validation or encoding, and the caching layer stored the response containing that input.
-
The application reflects the URL path into the error page without proper validation or encoding, only blocking the slash character.
-
The application reflects the utm_source parameter into the HTML response without proper output encoding or sanitisation.
Seen in 1 report
-
The application relied entirely on client-side JavaScript validation and rendered user input as raw HTML.
Seen in 1 report
-
The application relied on a deny-list of executable extensions and MIME types instead of forcing download or sandboxing.
Seen in 1 report
-
The application relied on a regex blacklist instead of output encoding.
Seen in 1 report
-
The application relied on blacklist filtering that checked for literal dangerous strings without accounting for encoding or browser parsing behaviour.
Seen in 1 report
-
The application relied on client-side HTML escaping and JavaScript logic for security.
Seen in 1 report
-
The application relied on client-side validation for the competitor domain field and did not sanitise or encode the stored value on output, while the firewall used a blacklist.
Seen in 1 report
-
The application relied on escaping forward slashes inside script tags instead of encoding input, and later fields did not escape HTML special characters.
Seen in 1 report
-
The application rendered the location name in the Orders Timeline without HTML-encoding or sanitising it.
-
The application rendered untrusted input as raw HTML without escaping.
Seen in 1 report
-
The application rendered user-supplied file contents and scraped web content without output encoding.