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 551 to 600 of 2,345
  1. Filter rule validation was insufficient, allowing CSS injection through malformed selectors and alternative CSS functions.

    Seen in 1 report
  2. Filtering of javascript: URIs did not account for control characters inserted into the scheme.

    Seen in 1 report
  3. Firefox did not properly isolate the principal of a data: URI loaded via redirect from an img tag, allowing the SVG to inherit the original domain's origin and set cookies.

    Seen in 1 report
  4. First and last name fields are not sanitised before storage and rendering.

    Seen in 1 report
  5. First and last name fields were not sanitised for quotation marks inside an iframe tag.

    Seen in 1 report
  6. First and last names were not sanitised or encoded before rendering in the connection view.

    Seen in 1 report
  7. First name not sanitised before embedding in the HTML body of a verification email.

    Seen in 1 report
  8. Flash's URL handling treated the jar: prefix as transparent and did not re-check the inner scheme against its protocol restrictions.

    Seen in 1 report
  9. Form fields stored unsanitised and admin panel relying on hidden URLs rather than authentication.

    Seen in 1 report
  10. Form input stored and rendered back to other users without validation or sanitisation.

    Seen in 1 report
  11. Form input was not sanitised or escaped before being stored and rendered on the confirmation page.

    Seen in 1 report
  12. Form input was stored and inserted into a confirmation email without HTML encoding.

    Seen in 1 report
  13. Forum content was saved and output on the admin forum listing without sanitisation or escaping.

    Seen in 1 report
  14. Frame size values were placed into HTML attributes without HTML encoding.

    Seen in 1 report
  15. Front-end proxy trusts the client-supplied forwarded-host header to locate the CDN host.

    Seen in 1 report
  16. Frontend JavaScript concatenated a user-controlled URL parameter into a fetch path without validating traversal sequences.

    Seen in 1 report
  17. Function descriptions were inserted into the DOM without sanitisation.

    Seen in 1 report
  18. GET parameters were echoed directly into an HTML attribute without encoding or validation.

    Seen in 1 report
  19. Group names and full names were not escaped before rendering in issue activity comments.

    Seen in 1 report
  20. Group names were inserted into the page without output encoding.

    Seen in 1 report
  21. Header value inserted into an HTML template without encoding, and the renderer ran from a file origin with local file access.

    Seen in 1 report
  22. Helpers escaped attribute values but did not validate or escape attribute names or tag names.

    Seen in 1 report
  23. Hidden code parameter reflected into the HTML response without output encoding.

    Seen in 1 report
  24. Hidden form fields echoed query-string values into HTML without encoding or validation.

    Seen in 1 report
  25. HTML entity encoding and semicolon removal were used instead of context-aware output encoding.

    Seen in 1 report
  26. HTML file uploads were allowed without sanitising or restricting their content.

    Seen in 1 report
  27. HTML files were accepted and served back with an HTML content type instead of being restricted or forced to download.

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

    Seen in 1 report
  29. HTML special characters were escaped but the URL scheme was not validated before placing input into an href.

    Seen in 1 report
  30. HTML strings were built by concatenating unescaped values and assigned to innerHTML in privileged pages.

    Seen in 1 report
  31. HTML was built by concatenating the API title and description into template strings without escaping.

    Seen in 1 report
  32. HTML was built with Python f-strings before being passed to Markup, so escaping never applied to the user-supplied name.

    Seen in 1 report
  33. HTML was modified after sanitisation by a different parser that interpreted the markup differently, reintroducing script.

    Seen in 1 report
  34. Iframe elements were rendered without the sandbox attribute.

    Seen in 1 report
  35. Iframe lacked origin validation on postMessage and passed attacker-controlled ajax parameters straight to the ajax function.

    Seen in 1 report
  36. Ignoring nosniff for resources embedded in object tags, allowing content sniffing.

    Seen in 1 report
  37. Image attribute values were not escaped or validated, producing malformed HTML.

    Seen in 1 report
  38. Imported page title inserted without sanitisation and the event-handler filter can be bypassed with a malformed tag.

    Seen in 1 report
  39. Importing and phishing systems rendered stored user text without sanitising it.

    Seen in 1 report
  40. Improper input validation and output encoding allowed URL-supplied input to be reflected and executed as script.

    Seen in 1 report
  41. Incoming messages were parsed as JSON without checking the sender origin and the URL was not sanitised before use as an iframe source.

    Seen in 1 report
  42. Inconsistent attribute whitelists between the editor's general sanitisation and a widget's internal sanitisation, plus missing sanitisation in preview mode.

    Seen in 1 report
  43. Inconsistent cookie scope and lifetime handling across multiple authentication cookies.

    Seen in 1 report
  44. Inconsistent input sanitisation across API routes and templates, where some paths encoded user input and others did not.

    Seen in 1 report
  45. Inconsistent input sanitisation and WAF canonicalisation gaps allowing HTML injection.

    Seen in 1 report
  46. Inline content disposition with an XHTML filename caused iOS WebKit to sniff and render as HTML.

    Seen in 1 report
  47. Input echoed without encoding and a return URL trusted without scheme validation.

    Seen in 1 report
  48. Input filters compared the protocol against a lowercase pattern without normalising case.

    Seen in 1 report
  49. Input from location.search assigned to innerHTML without sanitisation.

    Seen in 1 report
  50. Input inserted into a script context without encoding and protected only by a weak blacklist.

    Seen in 1 report