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 501 to 550 of 2,345
  1. Duplicate Content-Disposition headers coalesced with a comma, failing token validation and defaulting to inline.

    Seen in 1 report
  2. Dynamic import from an isolated content script resolved through the page service worker.

    Seen in 1 report
  3. Echoing user-supplied name fields into the page without sanitising or encoding special characters.

    Seen in 1 report
  4. Echoing user-supplied parameter values into HTML without output encoding.

    Seen in 1 report
  5. Email clients mishandled malformed or specially encoded sender headers so the displayed address differed from the checked one.

    Seen in 1 report
  6. Email content was insufficiently validated, allowing CSS injection that affected signed message display.

    Seen in 1 report
  7. Email template auto-links text that looks like a domain without encoding or validation.

    Seen in 1 report
  8. Embedding the user-creation nonce in the page DOM so any XSS can read it.

    Seen in 1 report
  9. Encoding angle brackets but failing to escape quotes or apply attribute-context encoding.

    Seen in 1 report
  10. Encoding conversions applied after filtering turn benign Unicode into dangerous characters.

    Seen in 1 report
  11. Enforcing upload validation only client-side or on the original request, with no server-side check of extension, MIME type or content.

    Seen in 1 report
  12. Error handler passed untrusted server response text straight into eval instead of parsing it as JSON.

    Seen in 1 report
  13. Error or blank pages returned for malformed URLs were served without the Content Security Policy header that normal pages include.

    Seen in 1 report
  14. Error pages reflected user input without HTML escaping and a redirect parameter was not validated.

    Seen in 1 report
  15. Error-handling code inserted iframe messages into the page as HTML without sanitising.

    Seen in 1 report
  16. Escaping function only escaped single quotes and newlines, so a backslash bypassed it.

    Seen in 1 report
  17. Example code snippets from scanned files were rendered as active markup in the report.

    Seen in 1 report
  18. EXIF metadata not stripped or sanitised before serving images.

    Seen in 1 report
  19. EXIF metadata values inserted into the page without escaping.

    Seen in 1 report
  20. Exported activities accepted attacker-controlled intents and passed data to WebView or file operations without proper validation.

    Seen in 1 report
  21. Exported activities passed an attacker-controlled html extra into a WebView bound to the site origin with a JavaScript bridge.

    Seen in 1 report
  22. Exported activities process deep links without validating scheme, host or path.

    Seen in 1 report
  23. Extension did not validate the sender of external messages and passed data to a script execution API.

    Seen in 1 report
  24. Extension-based filtering was relied on and SVG content was not sanitised.

    Seen in 1 report
  25. Extensions embedded attacker-controlled data in Markdown strings marked as trusted, allowing command links.

    Seen in 1 report
  26. Externally supplied URL loaded into a JavaScript-enabled WebView with native interfaces exposed to any page.

    Seen in 1 report
  27. Failing to encode user input before inserting it into the HTML response.

    Seen in 1 report
  28. Failing to keep JavaScript libraries up to date, leaving known vulnerabilities unpatched.

    Seen in 1 report
  29. Failing to sanitise a components parameter before rendering it into HTML attributes.

    Seen in 1 report
  30. Failing to sanitise PDF content before inserting it into the DOM during re-render.

    Seen in 1 report
  31. Failing to sanitise user-supplied data before including it in database event logs.

    Seen in 1 report
  32. Feedback form lacked input validation and output encoding.

    Seen in 1 report
  33. Feedback message inserted into outgoing email without sanitising.

    Seen in 1 report
  34. Feedback stored as raw HTML and rendered in a staff-facing tool on another server.

    Seen in 1 report
  35. Fields allowed javascript: pseudoprotocols instead of only alphanumeric characters and dots.

    Seen in 1 report
  36. File and directory names from stats files were not sanitised.

    Seen in 1 report
  37. File and directory names were inserted into HTML anchor elements without sanitisation or escaping.

    Seen in 1 report
  38. File content and extension were validated but the raw filename was stored and rendered into HTML without encoding.

    Seen in 1 report
  39. File content inserted directly into an HTML string without escaping, and the sanitiser allowed form tags.

    Seen in 1 report
  40. File extensions were checked only on the client side and file content and names were not validated on the server, and anonymous users could submit tickets to any address.

    Seen in 1 report
  41. File name substituted into a localisation string and appended to the DOM as HTML without escaping.

    Seen in 1 report
  42. File names and titles were saved and rendered into file manager pages without HTML encoding.

    Seen in 1 report
  43. File names extracted from uploaded archives were not sanitised before display.

    Seen in 1 report
  44. File paths in script creation were not sanitised, allowing traversal and network share resolution.

    Seen in 1 report
  45. File-type restrictions were enforced on one upload endpoint only while sibling endpoints did no validation.

    Seen in 1 report
  46. Filename randomisation used a predictable pseudo-random generator.

    Seen in 1 report
  47. Filenames were not sanitised when rendering notes, and Present mode used a desktop runtime with Node.js integration enabled.

    Seen in 1 report
  48. Filter blocked literal javascript: links but did not decode HTML entities before checking.

    Seen in 1 report
  49. Filter decodes CSS escape sequences inside selectors.

    Seen in 1 report
  50. Filter input inserted into the DOM without sanitising or encoding.

    Seen in 1 report