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 201 to 250 of 2,345
  1. A locale parameter was written into the page inside a script context without encoding, so a closing script tag could break out.

    Seen in 1 report
  2. A location hash value was passed to a third-party script without sanitisation and used to build evaluated JavaScript.

    Seen in 1 report
  3. A lodash template did not escape the value parameter for the data-define attribute context, allowing template injection.

    Seen in 1 report
  4. A logic error in origin checks let script cross a site boundary.

    Seen in 1 report
  5. A logic error in WebKit's state management when loading webarchive content allowed scripts to escape their intended origin.

    Seen in 1 report
  6. A login form without CSRF protection combined with PHP using the first duplicate cookie in the header allowed a session cookie with a restricted path to be set.

    Seen in 1 report
  7. A login form without CSRF protection, PHP using only the first cookie when duplicate session cookies are sent, and browsers sending more specific paths first allowed an attacker's session to be forced on a victim.

    Seen in 1 report
  8. A mail client extension rendered user-supplied form data without sanitising it.

    Seen in 1 report
  9. A malformed URL decoder accepted out-of-range hex digits and produced unintended characters.

    Seen in 1 report
  10. A manifest version value was copied into a field without validation and rendered unescaped in a template.

    Seen in 1 report
  11. A map place name was rendered in the profile page without sanitising or encoding.

    Seen in 1 report
  12. A markdown component was given input that was assumed to be already-safe HTML.

    Seen in 1 report
  13. A markdown filter allows HTML injection including a base tag.

    Seen in 1 report
  14. A media identifier parameter was inserted into the page without output encoding and persisted without numeric validation.

    Seen in 1 report
  15. A missing authorisation check when creating a tag allowed a user to add tags to an account they did not control.

    Seen in 1 report
  16. A new byline placeholder was not given the HTML escaping applied to the previous credits placeholder.

    Seen in 1 report
  17. A non-cryptographic PRNG generated a security-sensitive callback identifier whose outputs leaked through iframe names, and an icon field was unsanitised.

    Seen in 1 report
  18. A parameter was inserted into a JavaScript string without escaping.

    Seen in 1 report
  19. A parameter used as a link target was not restricted to safe URL schemes.

    Seen in 1 report
  20. A parameter was converted to an integer for lookup but also inserted into a header without stripping CRLF and null bytes.

    Seen in 1 report
  21. A parameter was embedded in a JavaScript response without escaping and the edit method did not check channel ownership.

    Seen in 1 report
  22. A parameter was validated with a contains check instead of a starts-with check, so a crafted URL passed validation.

    Seen in 1 report
  23. A parameter was written into a textarea without encoding, allowing the textarea to be closed.

    Seen in 1 report
  24. A parser difference between implementations causes the sanitiser to mishandle nested tags.

    Seen in 1 report
  25. A path segment was concatenated into a translation key and a class attribute without escaping.

    Seen in 1 report
  26. A period preset from the request was stored in the session and written into a JavaScript context without context-appropriate encoding.

    Seen in 1 report
  27. A permissions/ownership mistake in how WebKit handled the location variable caused relative JavaScript navigations in a modal dialog to be resolved against the parent window's base URL rather than the dialog's URL.

    Seen in 1 report
  28. A perspective parameter was reflected into the HTML without output encoding.

    Seen in 1 report
  29. A position-based string check allowed HTML tags at the beginning to bypass sanitisation.

    Seen in 1 report
  30. A preview page inserted a URL parameter into the DOM without encoding, and a listener trusted messages from that origin but wrote the value into innerHTML.

    Seen in 1 report
  31. A privileged internal page reflected a javascript: URL supplied in the query string.

    Seen in 1 report
  32. A proxy endpoint fetched and executed attacker-supplied JavaScript in the victim's origin.

    Seen in 1 report
  33. A query parameter was placed straight into a link href without checking its scheme.

    Seen in 1 report
  34. A query parameter was reflected directly into a JavaScript eval call without encoding or validation.

    Seen in 1 report
  35. A query parameter was reflected directly into a JavaScript string context without proper output encoding, relying on a WAF as a compensating control.

    Seen in 1 report
  36. A query parameter was reflected into an anchor href without encoding.

    Seen in 1 report
  37. A query parameter was written unvalidated into a script tag without restricting it to trusted domains.

    Seen in 1 report
  38. A race between loading a local file in a named window and navigating that window to a javascript: URL let the script run in the wrong origin and the address bar was not updated in time.

    Seen in 1 report
  39. A reader mode URL parameter accepted a javascript: scheme.

    Seen in 1 report
  40. A recursive processing function used the URL constructor in a way that let a javascript: scheme survive validation rounds.

    Seen in 1 report
  41. A redirect cookie value was written directly into an inline script string without escaping.

    Seen in 1 report
  42. A redirect handler did not check that the target was a safe http(s) URL.

    Seen in 1 report
  43. A redirect parameter was not restricted to safe URLs.

    Seen in 1 report
  44. A redirect_uri was stored without checking it is an HTTP(S) URL.

    Seen in 1 report
  45. A regular expression replacement in the reference filter could be tricked into expanding references inside HTML attributes.

    Seen in 1 report
  46. A regular expression that expands self-closing tags altered sanitised HTML and reintroduced executable code.

    Seen in 1 report
  47. A remote server could disable HTML escaping by setting a stripping property in the JSON response.

    Seen in 1 report
  48. A request parameter was reflected into HTML without encoding.

    Seen in 1 report
  49. A request parameter was inserted into the HTML email without encoding.

    Seen in 1 report
  50. A request parameter was placed into a link or redirect without checking that it used a safe scheme.

    Seen in 1 report