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,351 to 1,400 of 2,345
  1. The extension details page rendered attacker-influenced content without proper neutralisation.

    Seen in 1 report
  2. The extension failed to sanitise the URL before inserting it into HTML.

    Seen in 1 report
  3. The extension manifest lists a whole domain as externally connectable, exposing privileged messages to any page on it.

    Seen in 1 report
  4. The extension relied on its own URL parsing and on postMessage without proper origin checks, and allowed websites to load extension pages that had unsafe message handlers.

    Seen in 1 report
  5. The extension rendered search-result data as raw HTML in the page DOM without escaping.

    Seen in 1 report
  6. The extension treated server-supplied tag strings as HTML and inserted them without sanitising or escaping them.

    Seen in 1 report
  7. The extension trusted messages from any origin and inserted unescaped remote data into executed JavaScript.

    Seen in 1 report
  8. The extension trusted the URL fragment for navigation and display without validation.

    Seen in 1 report
  9. The external link helper does not validate the URL scheme.

    Seen in 1 report
  10. The failure_message field was treated as safe and rendered without sanitisation.

    Seen in 1 report
  11. The favourites request lacked a CSRF token and the X-Requested-With header.

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

    Seen in 1 report
  13. The feedback message was stored and rendered in an internal dashboard without sanitisation or a restrictive CSP.

    Seen in 1 report
  14. The fetcher trusted the content type and extension from the remote page and stored the resource without validation.

    Seen in 1 report
  15. The file location parameter was passed to a redirect without validating the destination.

    Seen in 1 report
  16. The file name parameter was reflected without neutralising carriage-return and line-feed characters or HTML escaping.

    Seen in 1 report
  17. The file title was not sanitised, and the export endpoint served JSON as text/html.

    Seen in 1 report
  18. The file was opened with create-and-write flags rather than append-only, and duplicated descriptors shared one kernel file offset.

    Seen in 1 report
  19. The file_create_filename function did not sanitise or validate user-supplied filename input.

    Seen in 1 report
  20. The filename preview was inserted using innerHTML instead of textContent.

    Seen in 1 report
  21. The filename sanitiser returned a numeric value instead of a string for Unicode input, and the result was not HTML-escaped.

    Seen in 1 report
  22. The filename was interpolated into a localised string before the bold markers were parsed, and the marker tokens are legal filename characters the sanitiser did not remove.

    Seen in 1 report
  23. The filename was not encoded when displayed in a rename error message.

    Seen in 1 report
  24. The fileset creation endpoint lacked a CSRF token check, and the name was rendered without output encoding.

    Seen in 1 report
  25. The filter blacklisted standard tags but did not sanitise event handler attributes and allowed custom tags.

    Seen in 1 report
  26. The filter blocked common script tags but did not sanitise iframe elements with data: URIs.

    Seen in 1 report
  27. The filter blocked only complete unencoded tags and did not sanitise HTML-encoded characters.

    Seen in 1 report
  28. The filter removed raw parenthesis characters before the browser decoded HTML entities, and the input was then written to innerHTML.

    Seen in 1 report
  29. The filter removed script tags and event handlers but did not account for a script tag placed inside an event handler name.

    Seen in 1 report
  30. The filter searched for literal scheme strings instead of parsing and sanitising links.

    Seen in 1 report
  31. The filter used the pre element's lang attribute without validation and concatenated it into an image tag string.

    Seen in 1 report
  32. The filter value taken from the query string was written into the generated page without output encoding.

    Seen in 1 report
  33. The finalize endpoint stored the attacker-supplied sub-size filename verbatim, and the legacy media popup echoed the URL into an HTML attribute without escaping.

    Seen in 1 report
  34. The First Name value was inserted into the email body without HTML encoding.

    Seen in 1 report
  35. The first name value was interpolated into the HTML email body without entity encoding or validation.

    Seen in 1 report
  36. The first name was inserted into an HTML attribute without encoding quotes or angle brackets.

    Seen in 1 report
  37. The first name was inserted into the email body without escaping, so mail clients rendered URLs as live links.

    Seen in 1 report
  38. The first name was stored unsanitised and inserted into email bodies without HTML encoding.

    Seen in 1 report
  39. The fix only restricted the first parameter's length and did not handle duplicate parameters.

    Seen in 1 report
  40. The fix used a naive substring check on the URL instead of parsing and validating the parentOrigin parameter.

    Seen in 1 report
  41. The Flash file compared raw URL parameter names against actual parameters, but Flash strips invalid escapes so the names did not match.

    Seen in 1 report
  42. The Flash file passed a URL fragment into document.write without sanitisation.

    Seen in 1 report
  43. The Flash file rendered its text parameter as HTML without sanitising it.

    Seen in 1 report
  44. The Flash file took a JavaScript init function name from the URL and called it without validation.

    Seen in 1 report
  45. The Flash player searched for its MIME string anywhere in the Content-Type header.

    Seen in 1 report
  46. The folder name was inserted into the page as raw HTML instead of being escaped or treated as text, so markup in the name became live elements.

    Seen in 1 report
  47. The folder name was rendered without encoding, and the endpoint trusted a client-supplied company identifier.

    Seen in 1 report
  48. The folder-view endpoint inserted the stored folder name into the page without the sanitisation applied by the folder-creation endpoint.

    Seen in 1 report
  49. The font matrix array elements were not type-checked, allowing strings to be interpolated into generated JavaScript.

    Seen in 1 report
  50. The FontMatrix array from the PDF was interpolated directly into a generated JavaScript string without validating that each element was numeric.

    Seen in 1 report