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,901 to 1,950 of 2,345
  1. The server stored unsanitised HTML in the key name without enforcing the client-side length limit.

    Seen in 1 report
  2. The server stored user-supplied HTML without output encoding, and the KML import endpoint lacked an egress allow-list.

    Seen in 1 report
  3. The server trusted a client-side file type check and served uploads with a user-controlled content type.

    Seen in 1 report
  4. The server trusted a client-side response parameter for verification and did not sanitise partner form input.

    Seen in 1 report
  5. The server trusted client-side link validation and stored the rich text without re-checking the link scheme.

    Seen in 1 report
  6. The server trusted client-side restrictions and inserted user-controlled profile fields into HTML attributes without sanitisation, while an API endpoint lacked authorisation checks on the badge identifier.

    Seen in 1 report
  7. The server trusted client-supplied attachment content, a legacy path inserted it via innerHTML, the sanitiser allowed dangerous data attributes, and a framework copied the page's CSP nonce to an injected element.

    Seen in 1 report
  8. The server trusted client-supplied metadata such as declared file size and filename without validating the actual bytes or sanitising output in the admin review screen.

    Seen in 1 report
  9. The server trusted the client-supplied Content-Type when storing and serving the file instead of choosing a safe type.

    Seen in 1 report
  10. The server trusted the client-supplied file type and served the uploaded file as a web page.

    Seen in 1 report
  11. The server trusted the declared content-type of uploaded attachments instead of validating the file content.

    Seen in 1 report
  12. The server trusted the file extension or client-side checks instead of validating the real type and content, then served the file so embedded script ran.

    Seen in 1 report
  13. The server trusted the link type and URL fields without re-validating that an anchor link's URL still began with the expected prefix.

    Seen in 1 report
  14. The server trusted the client-supplied extension and Content-Type.

    Seen in 1 report
  15. The server was not configured to send X-XSS-Protection or set HttpOnly and Secure cookie flags.

    Seen in 1 report
  16. The server wrote filenames directly into HTML without escaping special characters.

    Seen in 1 report
  17. The server-side autocomplete endpoint echoed the search term into its response without HTML encoding.

    Seen in 1 report
  18. The server-side PDF renderer executed untrusted JavaScript from user input without sandboxing or proper permissions.

    Seen in 1 report
  19. The service worker imports additional scripts and reads URL search parameters as configuration, then passes those untrusted values into sensitive functions without sanitisation.

    Seen in 1 report
  20. The service worker passed the URL fragment through decoding into a document write without sanitisation or a Content-Security-Policy.

    Seen in 1 report
  21. The service worker script loader did not check the worker-src directive when resolving static import declarations.

    Seen in 1 report
  22. The session cookie and a password-reset secret were embedded in HTML and API responses.

    Seen in 1 report
  23. The session cookie lacked the HttpOnly flag, so injected script could read and exfiltrate it.

    Seen in 1 report
  24. The session cookie value was embedded in a JSON object in the page HTML, making it readable by script despite the HttpOnly flag.

    Seen in 1 report
  25. The session cookie value was reflected into a hidden field, defeating the HttpOnly protection.

    Seen in 1 report
  26. The session cookie was issued without the Secure flag, so it could be stolen and reused.

    Seen in 1 report
  27. The session ID was placed into an inline JavaScript error handler without encoding and the page lacked a strict Content Security Policy.

    Seen in 1 report
  28. The settings page echoed user-supplied input into the response without properly encoding it, so script was stored and executed.

    Seen in 1 report
  29. The setup page did not escape dangerous characters in the MySQL username field before displaying it.

    Seen in 1 report
  30. The setup page failed to sanitise the SSID and password fields before reflecting them into HTML.

    Seen in 1 report
  31. The shared template inserted the search parameter into a JavaScript template literal without escaping backticks.

    Seen in 1 report
  32. The shared-code feature trusted the URL fragment, decoding and executing it in an unsandboxed same-origin iframe without validation.

    Seen in 1 report
  33. The shared_runners_text setting was rendered through a markdown helper that did not sanitise HTML.

    Seen in 1 report
  34. The sharing plugin rendered the album name without encoding.

    Seen in 1 report
  35. The shortcode error preview decoded HTML entities and rendered the result without the usual sanitisation.

    Seen in 1 report
  36. The Signature field was stored and later rendered without output encoding or sanitisation.

    Seen in 1 report
  37. The single sign-on page did not validate or encode user-supplied data before including it in the response.

    Seen in 1 report
  38. The SIP User-Agent value was inserted into the web page without HTML encoding.

    Seen in 1 report
  39. The site allowed user-supplied SWF files to be served from its own origin, and Flash's ExternalInterface.call() could be abused to execute JavaScript.

    Seen in 1 report
  40. The site embedded the Google Sheet without sanitising or isolating the HTML it contained.

    Seen in 1 report
  41. The site inserted cookie data into the DOM without sanitisation and lacked CSRF and clickjacking protections.

    Seen in 1 report
  42. The site loaded an outdated bootstrap.min.js affected by known cross-site scripting issues.

    Seen in 1 report
  43. The site reflected a URL parameter into the page without properly encoding or validating it.

    Seen in 1 report
  44. The site relied on a blacklist of HTML tags instead of encoding user input on output, so deprecated tags slipped through.

    Seen in 1 report
  45. The site_index configuration value was saved and echoed into admin pages without encoding.

    Seen in 1 report
  46. The SiteName parameter was inserted into a single-quoted JavaScript string without encoding single quotes, angle brackets or slashes.

    Seen in 1 report
  47. The SiteName parameter was reflected into an inline JavaScript string without encoding.

    Seen in 1 report
  48. The slug sanitiser preserved URL-encoded characters and a later truncation step decoded them but only re-encoded Unicode, leaving decoded markup stored.

    Seen in 1 report
  49. The snapshot controller accepted originalUrl from the request body and the view rendered it unsanitised.

    Seen in 1 report
  50. The SNMP location value was not sanitised or encoded before rendering in a script-executing context.

    Seen in 1 report