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 label was taken verbatim from the indexer and interpolated into a Telegram message with parse_mode Markdown with no escaping or normalisation.
-
The landing page admin dashboard lacked authentication and stored content was not sanitised.
Seen in 1 report
-
The language parameter was reflected into a META tag's content attribute without encoding, allowing breakout to add an http-equiv refresh directive.
Seen in 1 report
-
The language parameter was reflected into the page without proper output encoding, and its value was stored in the cache without sanitisation, while the session cookie lacked HttpOnly and Secure flags and no CSP was present.
Seen in 1 report
-
The language parameter was stored in NVRAM and output without sanitisation on multiple pages.
Seen in 1 report
-
The language_id parameter was reflected into widget HTML without encoding.
Seen in 1 report
-
The last part of the URL path was printed into the HTML page without encoding.
Seen in 1 report
-
The layer source URL was validated only on the client side.
Seen in 1 report
-
The legacy login page did not HTML-encode the user parameter, and an invalid UTF-8 fallback exposed it.
Seen in 1 report
-
The Lens URL opener passed the extracted URL to the navigation stack without checking its scheme, so internal navigations were treated as trusted.
Seen in 1 report
-
The lexer's end-of-stream handler returns a character token without resetting its state to normal, so parsing resumes in the wrong state.
Seen in 1 report
-
The library assigned user-controlled URL parameter values to innerHTML without encoding.
Seen in 1 report
-
The library assumed string input and failed to sanitise array elements.
-
The library did not check the content-type of XHR responses before inserting them into the DOM, and its URL parser misjudged same-origin.
Seen in 1 report
-
The library did not properly neutralise user-controlled input when generating the popup relay page.
Seen in 1 report
-
The library did not strip leading control characters before parsing, unlike the WHATWG URL standard.
Seen in 1 report
-
The library reflected the user-controlled User-Agent header without escaping.
Seen in 1 report
-
The library rendered user-supplied text as HTML without sanitising it.
Seen in 1 report
-
The library returned raw cell values without escaping HTML special characters.
Seen in 1 report
-
The library used innerHTML to decode HTML entities, executing any script in the decoded content.
Seen in 1 report
-
Medium
-
-
The licence report's URL field was rendered as a clickable link without validating or escaping the URL scheme.
Seen in 1 report
-
The link field was not validated to allow only http or https URLs.
Seen in 1 report
-
The link name was not sanitised or encoded before rendering in the notification HTML.
Seen in 1 report
-
The link preview feature did not sanitise HTML meta tags fetched from trusted domains.
Seen in 1 report
-
The link URL attribute was not sanitised or encoded, unlike the post body and comments.
Seen in 1 report
-
The link_to helper accepted any URL scheme, including javascript, without checking the source is trusted.
Seen in 1 report
-
The linked account display name was inserted into a JavaScript string without escaping characters that can terminate the script context.
Seen in 1 report
-
The linkification function replaced message content with an unescaped version after turning digits into a link.
Seen in 1 report
-
The linking endpoint relied only on a CSRF token readable from the same origin.
-
The linkSuccess parameter was reflected into the HTML response without encoding.
Seen in 1 report
-
The list title was stored and rendered without encoding, with no length limit.
Seen in 1 report
-
The List-Unsubscribe header used without validation before a request or render.
Seen in 1 report
-
The listener checked the sender origin but did not sanitise the message content before inserting it as HTML.
-
The listener did not check the origin or source of incoming messages and used the message URL without confirming it was a safe HTTPS URL.
Seen in 1 report
-
$500 Medium
-
-
The live chat input field did not escape user content before inserting it into the page HTML.
Seen in 1 report
-
Low
-
-
The locale parameter was reflected into the error page without output encoding.
Seen in 1 report
-
The locale parameter was reflected unsanitised, and the CSP was implemented in a meta tag that injected markup could comment out.
Seen in 1 report
-
The locale parameter was used in a file path without sanitisation, allowing directory traversal.
-
The locale path parameter was concatenated into an iframe src inside an HTML template and written to the DOM via nativeElement.innerHTML, bypassing Angular's sanitiser.
Seen in 1 report
-
The LocaleID value was inserted into a JavaScript string literal without validation or escaping.
Seen in 1 report
-
The log download was served as HTML without escaping special characters in log entries.
Seen in 1 report
-
The login component passed a user-controlled redirect parameter straight to window.location without validating it.
-
The login endpoint reflected the submitted password into the HTML response without output encoding.
Seen in 1 report
-
The login endpoint reflected user input without sanitisation and did not require a CSRF token.
Seen in 1 report
-
The login endpoint returned the session identifier in the response body even for a request without credentials.
Seen in 1 report
-
The login field value was echoed back without output encoding and no Content Security Policy was set.
Seen in 1 report
-
The login page reflected the url_redir parameter into the HTML response without encoding.
Seen in 1 report
-
The login query and registration form handled user input without validation or output encoding.
Seen in 1 report
-
The m parameter was written into the page without output encoding and the session cookie lacked SameSite.
Seen in 1 report
-
The maintenance mode message was rendered without output encoding or sanitisation.
Seen in 1 report