Skip to content

In-depth lesson · Stored XSS

Root causes

Every point the Stored XSS reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 51 to 88 of 88
  1. The regular expression extracting multi-word label references from Markdown was too permissive and allowed script tags in the label name.

    Seen in 1 report
  2. The product filter rendered the product type value into the page without encoding it.

    Seen in 1 report
  3. An outdated swagger-ui bundled an old DOMPurify that did not properly sanitise HTML.

    Seen in 1 report
  4. A server-side syntax highlighting filter built HTML from unsanitised attributes, and a frontend emoji custom element inserted its name attribute into an image tag without escaping.

    Seen in 1 report
  5. The dashboard URL field accepted absolute URLs without validating the scheme, so a javascript URI was stored and rendered as a clickable link.

    Seen in 1 report
  6. The image link filter did not sanitise the alt attribute when replacing an image with a link.

    Seen in 1 report
  7. The quick-action contact list rendered contact names without HTML escaping.

    Seen in 1 report
  8. The deployment key title was inserted into HTML without escaping and rendered via jQuery, which executes script tags even under a strict-dynamic CSP.

    Seen in 1 report
  9. The desktop client rendered file names as HTML in its notification and dialog UI without escaping them.

    Seen in 1 report
  10. The dataset owner's name was rendered without HTML-escaping before output.

    Seen in 1 report
  11. The editor allowed data URLs as image sources, and the stored SVG's script ran when the image was opened directly.

    Seen in 1 report
  12. A page widget referenced a JavaScript file in a cloud storage bucket that was no longer registered, allowing anyone to claim it.

    Seen in 1 report
  13. The application inserted the user-supplied filename into HTML without escaping.

    Seen in 1 report
  14. The application reflected a cookie into a JavaScript context without output encoding, and a quote-hiding mechanism created a parser differential that bypassed the WAF.

    Seen in 1 report
  15. The server trusted client-side link validation and stored the rich text without re-checking the link scheme.

    Seen in 1 report
  16. The diagram filter used the parent pre element's lang attribute without validating it and concatenated it into an image tag.

    Seen in 1 report
  17. The source branch name was marked as HTML-safe without proper escaping.

    Seen in 1 report
  18. The application failed to escape user-controlled cookie values in HTML, and the cookie parser split on spaces instead of semicolons.

    Seen in 1 report
  19. The activation date value was stored and later rendered into the promocode lookup page without output encoding.

    Seen in 1 report
  20. The application failed to sanitise the IP address field and served the stored data with a text/html content type.

    Seen in 1 report
  21. The maintenance mode message was rendered without output encoding, allowing script tags to execute on every page load.

    Seen in 1 report
  22. The pronunciation value was inserted into an HTML string marked as safe without sanitisation.

    Seen in 1 report
  23. The code extracted text from a paragraph element and inserted it as HTML without sanitisation, so encoded script tags became active.

    Seen in 1 report
  24. The application name was rendered without sanitisation on the OAuth authorization page.

    Seen in 1 report
  25. The editor's paste handling accepted a data attribute containing HTML and inserted the embedded markup without sanitising it.

    Seen in 1 report
  26. The top pages visualisation rendered page paths as clickable links without validating the URL scheme.

    Seen in 1 report
  27. The application inserted untrusted SMTP error text into the page using an HTML-rendering method without escaping it.

    Seen in 1 report
  28. Uploaded HTML files were served with a text/html content type without sanitisation or a restrictive Content-Disposition header.

    Seen in 1 report
  29. The sanitiser validated pasted HTML before the browser parser mutated it into a different executable structure.

    Seen in 1 report
  30. The proxy endpoint did not filter the X-Accel-Redirect header, letting Nginx serve uploaded HTML inline.

    Seen in 1 report
  31. Content-type validation only checked headers that were present and did not reject requests with no Content-Type header.

    Seen in 1 report
  32. Text content of a DOM element was assigned to innerHTML without sanitisation.

    Seen in 1 report
  33. Placeholder replacements were not escaped when placed inside a span tag.

    Seen in 1 report
  34. The wiki page title was used as link text without HTML sanitisation.

    Seen in 1 report
  35. The export inserted user-controlled message content and usernames into HTML without escaping and set no Content-Security-Policy.

    Seen in 1 report
  36. The tooltip was built by string concatenation of attribute values and passed to a jQuery method that re-parses the string as markup.

    Seen in 1 report
  37. The event log appended the raw exception message to an HTML string and rendered it with a component that resolves external file and UNC URLs.

    Seen in 1 report
  38. A user-supplied greeting was rendered as markdown without sanitising javascript: URLs and the endpoint lacked CSRF protection.

    Seen in 1 report