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,451 to 1,500 of 2,345
  1. The href value was not encoded, and CSRF protection was implemented by checking only the Referer header rather than a per-request token.

    Seen in 1 report
  2. The HTML export code did not escape the text of inline buttons before inserting it into the page.

    Seen in 1 report
  3. The HTML filter removed the value of boolean attributes but left the equals sign, so browsers parsed the remaining text as new attributes.

    Seen in 1 report
  4. The HTML parser handled nested comment-like sequences incorrectly, closing a comment early and treating later markup as active.

    Seen in 1 report
  5. The HTML parser mishandles a template element inside select when using innerHTML, letting later content parse as if outside the select.

    Seen in 1 report
  6. The HTML preview iframe lacked a sandbox attribute, a restrictive Content-Security-Policy and sanitisation of event-handler attributes.

    Seen in 1 report
  7. The HTML sanitisation function did not properly filter dangerous attributes or tags.

    Seen in 1 report
  8. The HTML sanitizer failed to properly decode and filter CSS url() values containing escaped characters.

    Seen in 1 report
  9. The htmlPrefilter regular expression that expands self-closing tags altered already-sanitised HTML into new tags and attributes.

    Seen in 1 report
  10. The icon property was inserted into HTML without sanitisation while the label property was sanitised.

    Seen in 1 report
  11. The icon-uri endpoint fetched an attacker-chosen URL and returned the response without validating content type or sanitising it.

    Seen in 1 report
  12. The id parameter was not properly validated.

    Seen in 1 report
  13. The id parameter was reflected into the page without output encoding or input validation.

    Seen in 1 report
  14. The IDOR was caused by missing authorisation checks on the appId parameter in the POST endpoint, with the version parameter required to match.

    Seen in 1 report
  15. The IE XSS filter mishandled HZ-GB-2312 escape sequences when no charset was declared.

    Seen in 1 report
  16. The iframe did not validate the origin of postMessage events.

    Seen in 1 report
  17. The iframe's allowed message origin was read from an attacker-controllable query parameter, and the received blob was rendered without validating its content type.

    Seen in 1 report
  18. The image link filter does not sanitise the alt attribute.

    Seen in 1 report
  19. The image optimisation endpoint served uploaded SVG files with a content type that let the browser execute embedded scripts.

    Seen in 1 report
  20. The image processing library output the Exif comment tag into the profile page without sanitising or stripping metadata.

    Seen in 1 report
  21. The image processing library read the EXIF Comment tag and output it into the page without sanitising it or stripping the metadata.

    Seen in 1 report
  22. The image-fetching endpoint did not validate or restrict the content type of the fetched resource.

    Seen in 1 report
  23. The image_url value was inserted into an img tag without proper sanitisation, so an event handler could be injected.

    Seen in 1 report
  24. The import feature trusted repository links from a user-supplied server without sanitising them.

    Seen in 1 report
  25. The incognito window opened by the sign-out options did not inherit the sandbox attribute from the originating iframe.

    Seen in 1 report
  26. The input filter only checked for complete opening and closing brackets, so incomplete tags slipped through.

    Seen in 1 report
  27. The input filter only matched plain-text script patterns and did not account for URL-encoded input being decoded and reflected.

    Seen in 1 report
  28. The input filter or WAF only blocked a specific simple payload pattern and did not sanitise the attribute context.

    Seen in 1 report
  29. The input filter used a greedy regular expression removing text between angle brackets instead of parsing and encoding.

    Seen in 1 report
  30. The input sanitiser was applied inside the template-rendering path, so any code path that skipped a valid template also skipped sanitisation.

    Seen in 1 report
  31. The installation_id parameter was inserted into a JavaScript context without encoding or validation.

    Seen in 1 report
  32. The installation_id parameter was reflected into the page without sanitising or encoding.

    Seen in 1 report
  33. The integration model lacked a validator requiring http or https in URL fields.

    Seen in 1 report
  34. The invitation email template inserted the user-supplied first name into an HTML link without validating or escaping it, so a URL-shaped name became a live hyperlink.

    Seen in 1 report
  35. The invitation form accepted arbitrary text in the First Name field and inserted it into the email template without validation, sanitisation or encoding.

    Seen in 1 report
  36. The invitee name was inserted into the HTML body of the confirmation email without sanitisation, even though the web interface blocked HTML in the same field.

    Seen in 1 report
  37. The iOS app rendered HTML email bodies in a web view without stripping or sanitising script elements.

    Seen in 1 report
  38. The IP address field was not sanitised, and stored data was served with a text/html content type.

    Seen in 1 report
  39. The IP address in the XML asset was inserted into a JavaScript function without sanitisation, and the scheduled task command filter split input on spaces.

    Seen in 1 report
  40. The item identifier parameter was reflected into the HTML response without output encoding.

    Seen in 1 report
  41. The item title was sanitised on the main page but not in the Buy Now frame.

    Seen in 1 report
  42. The iteration reference regex allowed any character except double quotes in multi-word names, enabling HTML injection, and the CSP lacked a base-uri directive.

    Seen in 1 report
  43. The jar protocol parser mishandled null bytes in entry names, causing string truncation and wrong MIME type detection.

    Seen in 1 report
  44. The JavaScript error page assigned the untrusted title parameter to innerHTML without escaping even though the native side had been fixed.

    Seen in 1 report
  45. The JSON gem called to_s on keys, converting escaped strings back to plain strings and bypassing HTML escaping.

    Seen in 1 report
  46. The JSON model binder skipped ASP.NET request validation, and the registration endpoint trusted a client-supplied role identifier.

    Seen in 1 report
  47. The jump parameter is echoed into a JavaScript selector inside a script block.

    Seen in 1 report
  48. The KML description field allowed raw HTML and script to execute without sanitisation.

    Seen in 1 report
  49. The kramed Markdown parser was used with default settings that do not sanitise HTML, and the result was served directly.

    Seen in 1 report
  50. The label was interpolated directly into a Telegram message template with Markdown parsing enabled without escaping metacharacters.

    Seen in 1 report