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 851 to 900 of 2,345
  1. Sanitisation code used a div element's innerHTML to fix unclosed tags, which executed scripts when inserted into the DOM.

    Seen in 1 report
  2. Sanitisation decoded and checked input only once, so double encoding bypassed it.

    Seen in 1 report
  3. Sanitisation happened before a server-side image re-upload modified the HTML, so the final HTML was never re-sanitised.

    Seen in 1 report
  4. Sanitised HTML was modified afterwards by a faulty regex that removed an uneven number of quotes, and attachments were served inline with attacker-controlled MIME types.

    Seen in 1 report
  5. The sanitiser allowlist permits absolute same-origin URLs in SVG use elements.

    Seen in 1 report
  6. The sanitiser did not strip the form tag, allowing arbitrary form submissions.

    Seen in 1 report
  7. The sanitiser mishandles emoji shortcode expansion inside an attribute.

    Seen in 1 report
  8. The sanitiser's view of safe content diverges from what the browser parses, and pasted content is styled before sanitisation.

    Seen in 1 report
  9. Sanitisers failed to account for browser-specific parsing quirks such as namespace switching, case sensitivity, animation attributes, XSLT and Safari's image import behaviour.

    Seen in 1 report
  10. Sanitising with a library's default configuration can be bypassed with script gadgets.

    Seen in 1 report
  11. Sanitisers failed to account for obscure SVG and XML features such as namespace switching, animation elements, XSLT stylesheets and browser-specific behaviours.

    Seen in 1 report
  12. A campaign name was saved and output into admin pages without HTML encoding.

    Seen in 1 report
  13. Script standard output was inserted into the page without HTML encoding.

    Seen in 1 report
  14. Search and category parameters were reflected into HTML without escaping.

    Seen in 1 report
  15. The search field was reflected without encoding or sanitisation.

    Seen in 1 report
  16. Search input was reflected without output encoding.

    Seen in 1 report
  17. Search input was reflected into the page without output encoding, and there was no X-Frame-Options or frame-busting script.

    Seen in 1 report
  18. Search input was reflected with incomplete sanitisation that blocks script tags but not event-handler attributes on other elements.

    Seen in 1 report
  19. Search input was reflected without HTML escaping, allowing attribute breakout.

    Seen in 1 report
  20. Search input was inserted back into the page by client-side JavaScript without escaping before rendering.

    Seen in 1 report
  21. Search input was inserted into an HTML node AngularJS treats as a template, so expressions were evaluated rather than shown.

    Seen in 1 report
  22. Search input was not encoded before being rendered back for work and school accounts.

    Seen in 1 report
  23. Search input was reflected into a dfn tag without output encoding and the input filter was insufficient.

    Seen in 1 report
  24. Search keywords were not sanitised on the search criteria page.

    Seen in 1 report
  25. The search parameter was only partially sanitised before reflection.

    Seen in 1 report
  26. The search parameter was reflected without HTML encoding.

    Seen in 1 report
  27. The search parameter was reflected without output encoding and the WAF relies on a blacklist.

    Seen in 1 report
  28. Sensitive session tokens were stored in localStorage, so script execution could read and exfiltrate them.

    Seen in 1 report
  29. The server or framework was not configured to send the X-XSS-Protection header.

    Seen in 1 report
  30. Service worker registration used document.getElementById to read a domain from a div's innerText, which could be clobbered by injecting an element with the same id.

    Seen in 1 report
  31. Session cookies lacked the HttpOnly flag, allowing script access.

    Seen in 1 report
  32. Session tokens were passed in URL query parameters during redirects, and server size limits could break the chain and expose the token.

    Seen in 1 report
  33. Settings values were inserted into the page template without output encoding or validation.

    Seen in 1 report
  34. Several metadata and output fields were not escaped when generating HTML.

    Seen in 1 report
  35. Several portal fields were rendered without output encoding, so stored markup ran for anyone viewing the page.

    Seen in 1 report
  36. Shallow copying of the internal property set during rule cloning and failure to reattach CSSOM wrappers after a copy-on-write fork let mutations reach the shared stylesheet.

    Seen in 1 report
  37. Shortcode attributes were not sanitised or escaped before rendering in the administrator preview.

    Seen in 1 report
  38. Single quotes were not escaped when embedding input into JSON in a script context.

    Seen in 1 report
  39. Single quotes were escaped by doubling but backslashes were not escaped.

    Seen in 1 report
  40. SMS messages were stored and rendered in the internal portal without output encoding.

    Seen in 1 report
  41. SMTP error text was inserted into the page using an HTML-rendering method without escaping.

    Seen in 1 report
  42. Social media link fields lacked proper validation and sanitisation, so stored links could point to arbitrary downloads.

    Seen in 1 report
  43. Social media links were not validated and the client-supplied account address was trusted without verifying ownership.

    Seen in 1 report
  44. Social profile URLs were not validated or sanitised on the server side.

    Seen in 1 report
  45. Software written decades ago without security in mind had unsafe defaults and weak input sanitisation.

    Seen in 1 report
  46. A sort value was placed into an exception message rendered without HTML encoding.

    Seen in 1 report
  47. Source map fetching did not enforce the same controls as normal requests and honoured response headers.

    Seen in 1 report
  48. Special characters were not escaped when rendering input into HTML.

    Seen in 1 report
  49. Special elements in output were not neutralised before a downstream component processed them.

    Seen in 1 report
  50. State-changing POST requests were accepted without a CSRF token.

    Seen in 1 report