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 1 to 50 of 88
  1. Stored input was inserted into the page without output encoding or sanitisation.

    Seen in 3 reports
  2. A currency formatting value was stored and rendered into admin pages without output encoding.

    Seen in 2 reports
  3. The question edit view rendered the stored product name as raw HTML without sanitising or escaping it.

    Seen in 2 reports
  4. The label colour value from imported data was inserted into the page without sanitisation.

    Seen in 2 reports
  5. SVG uploads were accepted and rendered without sanitising or blocking embedded script.

    Seen in 2 reports
  6. The scheme check compared against a literal string without normalising or stripping whitespace and control characters first.

    Seen in 1 report
  7. User-supplied topic titles were not encoded or sanitised before being rendered in the page.

    Seen in 1 report
  8. A cart property value was stored and inserted into the page without output encoding, letting quote characters break out of the surrounding script context.

    Seen in 1 report
  9. An upload field accepted a URL value and the checkout page rendered it as a link without restricting the scheme to http or https.

    Seen in 1 report
  10. The map attribution control rendered user-provided attribution as HTML without sanitisation.

    Seen in 1 report
  11. The map title was inserted into the share control's HTML without proper encoding.

    Seen in 1 report
  12. The plugin did not filter special HTML characters when generating error messages, so attacker-controlled input was stored and rendered in the admin dashboard.

    Seen in 1 report
  13. User-supplied content in suggested edits was not sanitised before rendering in the administrator dashboard, allowing template injection.

    Seen in 1 report
  14. The ticket subject was output into an HTML attribute without attribute escaping.

    Seen in 1 report
  15. A plugin logged a redirect URL query parameter without HTML sanitisation before displaying it in the admin panel.

    Seen in 1 report
  16. The editor's link handling did not validate javascript URIs when links were inserted via the WebSocket editing protocol, unlike the public preview.

    Seen in 1 report
  17. The group name was inserted into a social description meta tag without output encoding.

    Seen in 1 report
  18. The app name was stored and rendered into the app page without HTML encoding.

    Seen in 1 report
  19. The variant option name was not encoded or validated before being rendered in the variant title element.

    Seen in 1 report
  20. Avatar property values were stored without sanitisation and the render error response was returned as HTML instead of a safe content type.

    Seen in 1 report
  21. The feedback endpoint stored fields without sanitising them and the internal review panel rendered the stored content as HTML.

    Seen in 1 report
  22. The search group name was stored and rendered into the discount page without output encoding, and the discount target fields were trusted from the request.

    Seen in 1 report
  23. The image host failed to sanitise newlines in the request path before writing it into response headers and served files based on a user-controlled extension.

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

    Seen in 1 report
  25. The name value was stored as-is and rendered into the admin page without output encoding.

    Seen in 1 report
  26. The admin panel rendered the merchant-supplied details value without HTML encoding and the site's content security policy allowed inline script.

    Seen in 1 report
  27. A user-controlled value was placed into an inline onclick JavaScript string without escaping quotes or special characters.

    Seen in 1 report
  28. A username was inserted into the DOM by a JavaScript component without proper escaping or sanitisation.

    Seen in 1 report
  29. A member name was stored without sanitisation and later inserted into the activity feed HTML without output encoding.

    Seen in 1 report
  30. A report URL field in an emoticon string was not validated, and jQuery AJAX handling evaluated JavaScript responses.

    Seen in 1 report
  31. The application reflected an untrusted X-Forwarded-Host header into page attributes that drive a client-side fetch, and the fetched JSON was written into the DOM without escaping.

    Seen in 1 report
  32. A username value was rendered in an AngularJS context without sanitisation, so template expressions were evaluated as code.

    Seen in 1 report
  33. A missing authorisation check when creating a tag allowed a user to add tags to an account they did not control.

    Seen in 1 report
  34. An SVG sanitiser's whitelist was bypassed because an XML entity caused the parser to skip validation of elements and attributes.

    Seen in 1 report
  35. A license report's URL field was rendered as a clickable link without validating or escaping the URL scheme.

    Seen in 1 report
  36. Upload validation only blocked known dangerous extensions instead of allowing only safe types, and the response omitted a Content-Type header, enabling MIME sniffing.

    Seen in 1 report
  37. A parameter was not sanitised before being stored and later rendered, and login and logout endpoints lacked CSRF protection.

    Seen in 1 report
  38. A delete button was built by concatenating unescaped user input into HTML instead of using a safe method to set attributes.

    Seen in 1 report
  39. Cache invalidation logic failed to detect changes to the note_html field because author and project associations were not tracked as changed attributes.

    Seen in 1 report
  40. A folder name was stored and rendered without output encoding, and the folder-creation endpoint accepted cross-site requests without a CSRF token.

    Seen in 1 report
  41. A torrent filename was written into the local download page without sanitisation.

    Seen in 1 report
  42. Input normalisation converted a fullwidth less-than character into a regular less-than sign after, or without, proper HTML escaping.

    Seen in 1 report
  43. A regular expression used to auto-link URLs in code blocks matched any word characters before a scheme separator, allowing dangerous protocols.

    Seen in 1 report
  44. A cookie-setting endpoint lacked origin checks and the site reflected a cookie value into a noscript tag without encoding.

    Seen in 1 report
  45. A forum's link-embedding iframe trusted a URL that could be redirected to a malicious address.

    Seen in 1 report
  46. An iOS app loaded user-supplied HTML in a WebView without sanitising it and with JavaScript enabled.

    Seen in 1 report
  47. The application rendered user-controlled data from location.hash and XHR responses without escaping, and served user-uploaded images from the same origin.

    Seen in 1 report
  48. Post titles were inserted into the mod notes page without output encoding, so markup in the title was treated as code.

    Seen in 1 report
  49. A third-party dependency in the PDF viewer failed to HTML-encode special characters in PDF content.

    Seen in 1 report
  50. The regular expression extracting multi-word milestone references from Markdown was too permissive and allowed angle brackets.

    Seen in 1 report