Skip to content

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.

Back to the lesson 1,501 to 1,550 of 2,345
  1. The label was taken verbatim from the indexer and interpolated into a Telegram message with parse_mode Markdown with no escaping or normalisation.

    Seen in 1 report
  2. The landing page admin dashboard lacked authentication and stored content was not sanitised.

    Seen in 1 report
  3. 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
  4. 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
  5. The language parameter was stored in NVRAM and output without sanitisation on multiple pages.

    Seen in 1 report
  6. The language_id parameter was reflected into widget HTML without encoding.

    Seen in 1 report
  7. The last part of the URL path was printed into the HTML page without encoding.

    Seen in 1 report
  8. The layer source URL was validated only on the client side.

    Seen in 1 report
  9. The legacy login page did not HTML-encode the user parameter, and an invalid UTF-8 fallback exposed it.

    Seen in 1 report
  10. 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
  11. 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
  12. The library assigned user-controlled URL parameter values to innerHTML without encoding.

    Seen in 1 report
  13. The library assumed string input and failed to sanitise array elements.

    Seen in 1 report
  14. 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
  15. The library did not properly neutralise user-controlled input when generating the popup relay page.

    Seen in 1 report
  16. The library did not strip leading control characters before parsing, unlike the WHATWG URL standard.

    Seen in 1 report
  17. The library reflected the user-controlled User-Agent header without escaping.

    Seen in 1 report
  18. The library rendered user-supplied text as HTML without sanitising it.

    Seen in 1 report
  19. The library returned raw cell values without escaping HTML special characters.

    Seen in 1 report
  20. The library used innerHTML to decode HTML entities, executing any script in the decoded content.

    Seen in 1 report
  21. The licence report's URL field was rendered as a clickable link without validating or escaping the URL scheme.

    Seen in 1 report
  22. The link field was not validated to allow only http or https URLs.

    Seen in 1 report
  23. The link name was not sanitised or encoded before rendering in the notification HTML.

    Seen in 1 report
  24. The link preview feature did not sanitise HTML meta tags fetched from trusted domains.

    Seen in 1 report
  25. The link URL attribute was not sanitised or encoded, unlike the post body and comments.

    Seen in 1 report
  26. The link_to helper accepted any URL scheme, including javascript, without checking the source is trusted.

    Seen in 1 report
  27. The linked account display name was inserted into a JavaScript string without escaping characters that can terminate the script context.

    Seen in 1 report
  28. The linkification function replaced message content with an unescaped version after turning digits into a link.

    Seen in 1 report
  29. The linking endpoint relied only on a CSRF token readable from the same origin.

    Seen in 1 report
  30. The linkSuccess parameter was reflected into the HTML response without encoding.

    Seen in 1 report
  31. The list title was stored and rendered without encoding, with no length limit.

    Seen in 1 report
  32. The List-Unsubscribe header used without validation before a request or render.

    Seen in 1 report
  33. The listener checked the sender origin but did not sanitise the message content before inserting it as HTML.

    Seen in 1 report
  34. 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
  35. The live chat input field did not escape user content before inserting it into the page HTML.

    Seen in 1 report
  36. The locale parameter was reflected into the error page without output encoding.

    Seen in 1 report
  37. 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
  38. The locale parameter was used in a file path without sanitisation, allowing directory traversal.

    Seen in 1 report
  39. 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
  40. The LocaleID value was inserted into a JavaScript string literal without validation or escaping.

    Seen in 1 report
  41. The log download was served as HTML without escaping special characters in log entries.

    Seen in 1 report
  42. The login component passed a user-controlled redirect parameter straight to window.location without validating it.

    Seen in 1 report
  43. The login endpoint reflected the submitted password into the HTML response without output encoding.

    Seen in 1 report
  44. The login endpoint reflected user input without sanitisation and did not require a CSRF token.

    Seen in 1 report
  45. The login endpoint returned the session identifier in the response body even for a request without credentials.

    Seen in 1 report
  46. The login field value was echoed back without output encoding and no Content Security Policy was set.

    Seen in 1 report
  47. The login page reflected the url_redir parameter into the HTML response without encoding.

    Seen in 1 report
  48. The login query and registration form handled user input without validation or output encoding.

    Seen in 1 report
  49. The m parameter was written into the page without output encoding and the session cookie lacked SameSite.

    Seen in 1 report
  50. The maintenance mode message was rendered without output encoding or sanitisation.

    Seen in 1 report