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 401 to 450 of 2,345
  1. BB code tag input was inserted into a CSS style attribute without sanitisation.

    Seen in 1 report
  2. Billing address was passed to invoice generation without sanitising, so HTML rendered in the PDF.

    Seen in 1 report
  3. Billing fields were saved and later rendered without HTML encoding.

    Seen in 1 report
  4. Blacklisting literal strings in raw input was used instead of encoding output or normalising input.

    Seen in 1 report
  5. Blade's raw output syntax was used instead of the escaped syntax, and the user update endpoint lacked an authorisation check.

    Seen in 1 report
  6. Blob URLs do not inherit the Content Security Policy of the originating page.

    Seen in 1 report
  7. Blog post title was inserted into RSS XML without HTML encoding.

    Seen in 1 report
  8. Bookmark name was rendered without output encoding and the creation endpoint lacked CSRF tokens, Origin/Referer checks and SameSite cookies.

    Seen in 1 report
  9. Bootstrap's tooltip code inserts the title attribute value as raw HTML into the DOM instead of escaping it.

    Seen in 1 report
  10. Browser anti-XSS filters did not model ASP's parameter parsing quirks.

    Seen in 1 report
  11. The browser did not apply the originating page's CSP to a data URL opened in a new tab.

    Seen in 1 report
  12. The browser exposes URL credentials through document.URL while hiding them, and Firefox fails to encode single quotes there.

    Seen in 1 report
  13. The browser process does not validate the URL scheme of image_url from the remote response.

    Seen in 1 report
  14. Browsers and server frameworks normalise Unicode whitespace and legacy cookie syntax differently.

    Seen in 1 report
  15. The bundled PDF.js version was outdated and did not sanitise script content inside PDFs.

    Seen in 1 report
  16. Calendar applications trust standard and proprietary iCalendar properties without sanitisation.

    Seen in 1 report
  17. Calendar form input was stored and later rendered in an action link without output encoding.

    Seen in 1 report
  18. A callback was passed to a redirect without validating the scheme, so javascript: URLs are treated as navigation.

    Seen in 1 report
  19. A callback sends its URL including token or code with a wildcard postMessage target and no origin validation, and the iframe endpoint lacks framing protection.

    Seen in 1 report
  20. A case-sensitive scheme prefix check returned early and skipped setting the potentially-dangling-markup flag.

    Seen in 1 report
  21. Cell content was inserted as HTML without sanitising when htmlContent is enabled.

    Seen in 1 report
  22. A chat bot rendered user input as HTML and the page lacked clickjacking protection.

    Seen in 1 report
  23. Chat message content was inserted into notification emails without sanitising or encoding.

    Seen in 1 report
  24. Chat messages and email templates inserted user input into HTML without sanitising or context-aware encoding.

    Seen in 1 report
  25. Chat messages were stored without sanitising HTML and rendered without escaping when loading history.

    Seen in 1 report
  26. Chatbot output was rendered as HTML without encoding or sanitisation.

    Seen in 1 report
  27. Checking for a global config object without initialising it let injected elements define it.

    Seen in 1 report
  28. Cleanup only ran on tags passed in the options argument, not on the class-level allowed tags list.

    Seen in 1 report
  29. Client-side code appended unmatched search terms to the page with innerHTML, so input was parsed as HTML rather than text.

    Seen in 1 report
  30. Client-side code assigned the unvalidated URL fragment directly to the browser location.

    Seen in 1 report
  31. Client-side code took the URL fragment, made a cross-origin AJAX request to whatever address it contained, and inserted the response via innerHTML.

    Seen in 1 report
  32. Client-side JavaScript read the URL fragment and wrote it into the DOM without sanitising it.

    Seen in 1 report
  33. Client-side search script appended the search input to the page without sanitising it.

    Seen in 1 report
  34. Client-side templating evaluated user input as a template expression without sanitisation.

    Seen in 1 report
  35. Client-side URL validation used an unanchored regex that only checked whether the hostname appeared somewhere, and accepted protocol-relative URLs.

    Seen in 1 report
  36. Clipboard data was assigned to innerHTML without sanitisation.

    Seen in 1 report
  37. Cloning a rule nested inside @scope returns the original object instead of a deep copy, breaking copy-on-write on a cached stylesheet.

    Seen in 1 report
  38. Code assumed a query parameter was always a string and only sanitised it in that case.

    Seen in 1 report
  39. Code concatenated untrusted URL and referrer values into an anchor string and assigned it to innerHTML.

    Seen in 1 report
  40. Code modified sanitised HTML afterwards with a regex that could delete characters and change the structure.

    Seen in 1 report
  41. Colour settings were registered without a sanitize_callback and escaped with an HTML-attribute escaping function before printing inside a style block, which does not neutralise CSS metacharacters.

    Seen in 1 report
  42. Colour value inserted directly into an inline style attribute.

    Seen in 1 report
  43. Comment content is rendered without sanitisation and the session cookie lacks the HttpOnly flag.

    Seen in 1 report
  44. Comment content stored and output into HTML without encoding.

    Seen in 1 report
  45. Comment content was stored and later inserted into HTML responses without encoding or sanitising.

    Seen in 1 report
  46. Comment input not sanitised before rendering on the page.

    Seen in 1 report
  47. Comment input not sanitised, so HTML and script were stored and executed when other users viewed the comment.

    Seen in 1 report
  48. Comment input was not sanitised or escaped before being rendered in the page.

    Seen in 1 report
  49. Comment lines read from a cache file were concatenated into HTML and passed to a layout helper that does not HTML-encode its output.

    Seen in 1 report
  50. Comment rendering did not properly sanitise or encode user-supplied HTML, allowing an anchor tag to be injected.

    Seen in 1 report