Skip to content

In-depth lesson · XSS

Typical fixes

Every point the XSS reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 451 to 476 of 476
  1. Validate that the assertion consumer service location conforms to the declared binding syntax before inserting it into a form action.

    Seen in 1 report
  2. Validate that the callback URL points to a safe internal location and reject javascript: URLs.

    Seen in 1 report
  3. Validate that the container ID belongs to the site.

    Seen in 1 report
  4. Validate that the redirect parameter contains only a safe URL.

    Seen in 1 report
  5. Validate the caller and content of exported activities before loading them in a WebView.

    Seen in 1 report
  6. Validate the continue parameter as a safe URL and reject javascript schemes.

    Seen in 1 report
  7. Validate the elements URL parameter against an allowlist of hosts.

    Seen in 1 report
  8. Validate the employee name on the server, not only on the frontend.

    Seen in 1 report
  9. Validate the message origin and never pass message data to eval.

    Seen in 1 report
  10. Validate the OAuth redirect_uri against a whitelist.

    Seen in 1 report
  11. Validate the origin of every postMessage, not just the first.

    Seen in 1 report
  12. Validate the pack parameter before passing it to a file function and HTML-escape smiley image values.

    Seen in 1 report
  13. Validate the real sender origin rather than a value taken from the URL.

    Seen in 1 report
  14. Validate the sender of external extension messages before passing data to script execution.

    Seen in 1 report
  15. Validate the sender's origin exactly before inserting message data into the DOM.

    Seen in 1 report
  16. Validate the tracking URL scheme and restrict it to http or https.

    Seen in 1 report
  17. Validate the uploaded file's real type and content rather than the extension or client-side checks.

    Seen in 1 report
  18. Validate the URL scheme and sanitise the parameter before reflecting it into an anchor.

    Seen in 1 report
  19. Validate the URL scheme in the external link helper.

    Seen in 1 report
  20. Validate the URL scheme of cookie values before inserting them into links.

    Seen in 1 report
  21. Validate the URL scheme of the dashboard URL setting.

    Seen in 1 report
  22. Validate the URL scheme of the parameter before reflecting it into an href.

    Seen in 1 report
  23. Validate user-supplied data in policy management.

    Seen in 1 report
  24. Validate, output-encode and allow-list schemes and domains for input placed into HTML meta tags.

    Seen in 1 report
  25. Verify ownership of a resource on delete endpoints rather than authorising by session and XSRF token only.

    Seen in 1 report
  26. Verify the whole file and serve uploads with a safe content type.

    Seen in 1 report