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 2,001 to 2,050 of 2,345
  1. The time-of-day format preference was inserted into the file overview without escaping.

    Seen in 1 report
  2. The title parameter was reflected into the DOM without sanitisation or output encoding.

    Seen in 1 report
  3. The toDOM function copied a node attribute into output without checking its type, so an array was read as an element specification.

    Seen in 1 report
  4. The token URI contract built an SVG from the ERC20 symbol without sanitisation.

    Seen in 1 report
  5. The token-sending function used a user-supplied targetOrigin parameter without validating it against a whitelist.

    Seen in 1 report
  6. The tooltip was built by concatenating attribute values into HTML and passed to jQuery, which re-parsed it as markup.

    Seen in 1 report
  7. The tracking URL was stored without scheme validation and placed directly into an anchor href.

    Seen in 1 report
  8. The translation feature did not neutralise all payload variants, so a longer polyglot got through.

    Seen in 1 report
  9. The translation view re-rendered stored post content without sanitising event-handler attributes, so a whitelisted tag with an inline handler executed.

    Seen in 1 report
  10. The True-Client-IP header was reflected into the login history page without output encoding, and login/logout lacked CSRF protection.

    Seen in 1 report
  11. The TV device name was stored unsanitised and a session cookie could be set from a URL parameter.

    Seen in 1 report
  12. The unsafe link parameter was reflected into an HTML attribute without encoding.

    Seen in 1 report
  13. The update endpoint identified the target account by a user-supplied email address instead of the authenticated session.

    Seen in 1 report
  14. The upload accepted SVG content without sanitising it and the CDN served it inline, while cookies were scoped to a shared parent domain.

    Seen in 1 report
  15. The upload allowed changing the file extension and content type, enabling an SVG with JavaScript to be stored and executed.

    Seen in 1 report
  16. The upload check trusted the file name and declared content type instead of the actual file contents.

    Seen in 1 report
  17. The upload checked only the extension or declared type, not the content, and served the file as an image type the browser rendered as active SVG.

    Seen in 1 report
  18. The upload endpoint accepted SVG files without sanitisation and served them from the application's own origin, while tokens were stored in JavaScript-accessible LocalStorage.

    Seen in 1 report
  19. The upload endpoint did not restrict file types and served files with an inline content disposition.

    Seen in 1 report
  20. The upload endpoint did not set a content type response header so browsers rendered uploaded HTML as active content.

    Seen in 1 report
  21. The upload endpoint did not validate file type or content so a script-bearing file was served back and executed.

    Seen in 1 report
  22. The upload endpoint required no authentication and did not validate the fileUidList parameter, so the payload was stored and rendered.

    Seen in 1 report
  23. The upload endpoint stored the user-supplied filename and rendered it into the chat page without sanitising or encoding.

    Seen in 1 report
  24. The upload endpoint trusted client-supplied SVG and JSON, stored them under a predictable hash-based path and served them from a CDN without validation.

    Seen in 1 report
  25. The upload endpoint trusted the client content type and served stored files as HTML without sanitising metadata.

    Seen in 1 report
  26. The upload endpoint trusted the client-supplied filename extension and content type instead of validating the actual file content and serving uploads with a safe content type.

    Seen in 1 report
  27. The upload feature accepted SVG files and served them inline with a content type that lets the browser execute embedded script, instead of forcing a download or sanitising the file.

    Seen in 1 report
  28. The upload feature allowed JavaScript content types and the message filter did not block iframe srcdoc.

    Seen in 1 report
  29. The upload feature did not validate file types strictly and served user-supplied HTML with a text/html content type.

    Seen in 1 report
  30. The upload feature trusted the file extension and client-supplied Content-Type instead of validating the actual content, and served the file in a way the browser rendered as HTML.

    Seen in 1 report
  31. The upload feature trusted the file extension and did not validate the actual file content.

    Seen in 1 report
  32. The upload feature trusted the file extension instead of validating content, and plan limits were enforced only in the browser or without atomic checks.

    Seen in 1 report
  33. The upload feature validated only the file extension and did not restrict or sanitise HTML content, and the uploaded files were served from a directory that executes HTML.

    Seen in 1 report
  34. The upload field allowed a URL value and the checkout page rendered it without restricting the scheme.

    Seen in 1 report
  35. The upload handler did not check the file's real type or content and stored it where it was later rendered.

    Seen in 1 report
  36. The upload handler preserved the SVG content type instead of forcing a safe type.

    Seen in 1 report
  37. The upload handler stored any file type and the logo endpoint served it so browsers rendered it as HTML.

    Seen in 1 report
  38. The upload only checked the file extension and not the actual content, and the OAuth redirect_uri was not validated against a whitelist.

    Seen in 1 report
  39. The upload only checked the file extension and the page parameter was printed into HTML without encoding.

    Seen in 1 report
  40. The upload only checked the file extension or declared type and served the file inline, so SVG script was rendered by the browser.

    Seen in 1 report
  41. The upload only validated the file extension and did not restrict active content types, so an xhtml file was served as executable markup.

    Seen in 1 report
  42. The upload plugin used jQuery's .html() method to insert the unsanitised filename.

    Seen in 1 report
  43. The upload service did not validate file types and the image proxy trusted content from the storage bucket without checking it was an image.

    Seen in 1 report
  44. The upload trusted the client content type and did not re-encode image metadata, so the file was served as text/html.

    Seen in 1 report
  45. The upload validation only checked the file extension and the server served uploaded files with a content type that allowed script execution.

    Seen in 1 report
  46. The uploaded CSV filename was not sanitised or encoded before being displayed in the admin interface.

    Seen in 1 report
  47. The uploaded file name is inserted into HTML without encoding.

    Seen in 1 report
  48. The uploaded file name was reflected into the page without proper output encoding, allowing script execution.

    Seen in 1 report
  49. The uploaded file was named using the client-supplied extension and validation only checked magic bytes, not actual content.

    Seen in 1 report
  50. The uploaded filename was inserted into an error message without HTML encoding and the endpoint accepted cross-site multipart POSTs.

    Seen in 1 report