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,301 to 1,350 of 2,345
  1. The embed feature trusted Open Graph video metadata from any domain without validating the source against a whitelist.

    Seen in 1 report
  2. The embed HTML feature did not sanitise user HTML, and a JWT was kept in localStorage.

    Seen in 1 report
  3. The Embedded App SDK did not sanitise the href parameter of button objects.

    Seen in 1 report
  4. The emoji field of a custom emoji was inserted directly into an img tag without escaping.

    Seen in 1 report
  5. The emoji picker read a local storage object and inserted its values into the page without sanitisation.

    Seen in 1 report
  6. The emoticon report URL was not validated, jQuery AJAX evaluated JavaScript responses, and the topic link filter could be bypassed by doubling characters.

    Seen in 1 report
  7. The employee name was validated only on the frontend.

    Seen in 1 report
  8. The endpoint accepted cross-origin requests with credentials and reflected user-controlled data in a response served as text/html without sanitisation.

    Seen in 1 report
  9. The endpoint combined JSON encoding, a filter, a WAF and CSP in ways that could each be bypassed.

    Seen in 1 report
  10. The endpoint inserted the client_id value directly into the HTML response without output encoding.

    Seen in 1 report
  11. The endpoint inserted URL parameters into the DOM without sanitisation, and its protocol validation could be bypassed.

    Seen in 1 report
  12. The endpoint lacked authentication and input sanitisation, and its response differed for valid versus invalid users.

    Seen in 1 report
  13. The endpoint parameter was passed to a redirect or navigation sink without validating its scheme or destination.

    Seen in 1 report
  14. The endpoint reflected the error parameter into the HTML response without output encoding or input validation.

    Seen in 1 report
  15. The endpoint trusted a client-supplied encoded email parameter for both the action and the page output, with no ownership check and no output encoding.

    Seen in 1 report
  16. The endpoint trusts any user-supplied container ID without validating ownership.

    Seen in 1 report
  17. The entity_type parameter was embedded into the page without encoding.

    Seen in 1 report
  18. The error description parameter was inserted into the HTML error message without encoding.

    Seen in 1 report
  19. The error description parameter was reflected without encoding or validation.

    Seen in 1 report
  20. The error description parameter was reflected without sanitisation, and one callback URL served both OAuth responses and error messages.

    Seen in 1 report
  21. The error handler reflected the raw HTTP method value into the response without HTML-encoding it.

    Seen in 1 report
  22. The error message parameter is echoed directly into the HTML response.

    Seen in 1 report
  23. The error page echoed user-controlled path content without encoding.

    Seen in 1 report
  24. The error page handler reflected a message variable without HTML encoding.

    Seen in 1 report
  25. The error page inserted the request path into an inline script without escaping it for a JavaScript context.

    Seen in 1 report
  26. The error page reflected query string input into innerHTML.

    Seen in 1 report
  27. The error page reflected user-supplied input without proper output encoding, and the admin's filter only blocked complete tags, allowing partial tags to be closed by the page itself.

    Seen in 1 report
  28. The error parameter was reflected into the page without output encoding or sanitisation.

    Seen in 1 report
  29. The error parameter was reflected into the page without validation or encoding.

    Seen in 1 report
  30. The error parameter was reflected without handling.

    Seen in 1 report
  31. The error parameter was reflected without output encoding.

    Seen in 1 report
  32. The error query parameter was reflected without validation or encoding.

    Seen in 1 report
  33. The error query parameter was reflected without validation or encoding.

    Seen in 1 report
  34. The error response from the pattern check endpoint was inserted into the DOM with innerHTML without sanitising.

    Seen in 1 report
  35. The error response rendered the request body as HTML without encoding.

    Seen in 1 report
  36. The error-rendering path echoed the submitted first and last name values into the page without HTML-encoding them, and the form lacked CSRF protection.

    Seen in 1 report
  37. The escape function used a string pattern with replace, which replaces only the first match.

    Seen in 1 report
  38. The escapeHtml function did not encode double quotes, allowing breakout from the href attribute in the linkify function.

    Seen in 1 report
  39. The escaping function did not escape backticks or dollar signs, allowing breakout from template literals.

    Seen in 1 report
  40. The escaping function did not escape properties that are not own properties, such as the read-only name property of a File object.

    Seen in 1 report
  41. The escaping helper handled quotes but not backticks or the dollar-brace sequence used by template literals.

    Seen in 1 report
  42. The escaping routine for the JavaScript context only handled JavaScript string characters and did not encode angle brackets.

    Seen in 1 report
  43. The event type from an SNMP trap was inserted into the eventlog page without encoding.

    Seen in 1 report
  44. The exception parameter was reflected into an HTML attribute without output encoding.

    Seen in 1 report
  45. The export function inserted user-controlled message content and usernames into HTML without escaping, and the generated file had no Content-Security-Policy.

    Seen in 1 report
  46. The export template inserts Mermaid output into the HTML without escaping.

    Seen in 1 report
  47. The export wrapped user input in a CDATA section without stripping the closing sequence.

    Seen in 1 report
  48. The expression sandbox relied on a character-by-character parser that could be subverted by overriding String.prototype.charAt.

    Seen in 1 report
  49. The extension concatenated an attacker-controlled video URL into an HTML string appended to the popup DOM, and the popup was web-accessible so any site could frame it.

    Seen in 1 report
  50. The extension CSP validator's whitespace list excluded the form-feed character while the network service parser included it.

    Seen in 1 report