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 redirect parameter did not validate or restrict the URL scheme.
Seen in 1 report
-
The redirect parameter was written into a script context without output encoding.
Seen in 1 report
-
Redirect URI validation only checked for the presence of a scheme separator and did not enforce an allowlist.
Seen in 1 report
-
Redirect validation only checked that the URL string ended with the expected host and the application double URL-decoded.
-
redirect_to was passed directly to router.replace without validation, and the CORS origin check used a suffix match instead of an exact match.
-
redirect_uri was inserted into an HTML attribute without escaping.
Seen in 1 report
-
redirect_uri was reflected without validating that it is a safe URL scheme.
Seen in 1 report
-
redirect_url was passed to a navigation sink without validating for a safe http(s) URL.
Seen in 1 report
-
redirectUrl accepted a javascript: scheme without validation.
Seen in 1 report
-
A Facility parameter was reflected into the HTML response without output encoding or validation.
Seen in 1 report
-
A login parameter was reflected into the HTML response without output encoding or sanitisation.
Seen in 1 report
-
A nextUrl parameter was reflected into an anchor tag without proper output encoding and an arbitrary redirectUrl was accepted in a 2FA login link.
Seen in 1 report
-
A parameter was reflected without encoding so a double quote broke out of an attribute.
Seen in 1 report
-
A parameter was reflected without output encoding or input sanitisation.
Seen in 1 report
-
A query parameter was reflected without correct output encoding and the site relied on a WAF instead of safe encoding.
Seen in 1 report
-
A redirect parameter was reflected into the body of a 302 response and the Location header was dropped on control characters instead of rejecting the request.
Seen in 1 report
-
A URL parameter was reflected into the page's HTML without proper encoding.
Seen in 1 report
-
The User-Agent header was reflected into an HTML response without encoding or validating it.
Seen in 1 report
-
User input was reflected in multiple contexts without proper encoding.
-
User-supplied HTML and JavaScript were reflected without sanitisation and authentication tokens were stored in localStorage.
Seen in 1 report
-
User-supplied input was reflected into the HTML response without encoding or sanitising.
Seen in 1 report
-
Regex-based sanitisation removed only specific characters and patterns, allowing breakout from the JavaScript context.
Seen in 1 report
-
Registration fields were stored without sanitisation and later rendered as HTML in an admin page.
-
Registration input was stored unsanitised and later rendered unsafely in an email template.
Seen in 1 report
-
Registration input was stored without sanitising or escaping before rendering in another page or panel.
Seen in 1 report
-
Registration names were not sanitised or encoded before insertion into confirmation emails.
Seen in 1 report
-
The regular expression used to strip HTML tags was insufficient and could be bypassed.
Seen in 1 report
-
Regular expressions allowed dangerous CSS expressions to be reintroduced after substitution and permitted data URLs for images without checking for embedded script.
-
The site relied on a blacklist that blocks common handlers but not less common ones, without context-aware output encoding.
Seen in 1 report
-
The site relied on client-side filtering instead of server-side sanitisation.
Seen in 1 report
-
The site relied on client-side or transport encoding and did not sanitise the profile Description value before storing and rendering it.
Seen in 1 report
-
The site relied on pattern matching and semantic analysis that obfuscated payloads can evade.
-
Remote email HTML was rendered in an unsandboxed srcDoc iframe and a broad privileged API was exposed to that renderer.
Seen in 1 report
-
Remote SVG content was proxied from the forum's own origin without sandboxing or sanitising.
Seen in 1 report
-
Model-generated SVG was rendered directly into the page without sanitising event attributes, scriptable elements or external references.
Seen in 1 report
-
Report title and details were stored without escaping.
Seen in 1 report
-
Reports were fetched by name from the request path without checking the requesting user's access, and comments were not sanitised.
-
Repository names were stored without sanitisation and inserted directly into the page as raw HTML.
Seen in 1 report
-
Request data was reflected into the page without proper encoding.
Seen in 1 report
-
Request headers were logged and shown in an admin dashboard without HTML encoding.
Seen in 1 report
-
Request parameter values were inserted into HTML attributes without HTML encoding.
Seen in 1 report
-
Request parameters were extracted into global variables without proper initialisation.
Seen in 1 report
-
The request URI was parsed inconsistently for the Location header and the HTML fallback link.
Seen in 1 report
-
$1,120 Medium
-
-
Request validation did not properly decode or normalise encoded input when error handling was set to ignore.
Seen in 1 report
-
Restaurant and dish names were inserted into search results without output encoding.
Seen in 1 report
-
A search value was returned without proper escaping and inserted with an HTML-interpreting sink such as .html().
-
Review content was stored without sanitisation and injected as raw HTML instead of being escaped by the frontend framework.
Seen in 1 report
-
Review fields were reflected without encoding.
Seen in 1 report
-
Same-origin checks compared origins using a deprecated helper that returns an empty value for blob: URLs, so two different blob: URLs compared as equal.
Seen in 1 report
-
Sanitisation checked regular markdown links but not autolinks, so non-HTTP protocols were not filtered.