Skip to content

In-depth lesson · CSRF

Typical fixes

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

Back to the lesson 1 to 50 of 129
  1. Require a CSRF token and origin check on settings endpoints.

    Seen in 8 reports
  2. Require a CSRF token on the deletion endpoint.

    Seen in 7 reports
  3. Require a CSRF token on the logout endpoint.

    Seen in 7 reports
  4. Require user confirmation for state-changing deep links.

    Seen in 5 reports
  5. Add CSRF protection to the plugin endpoints.

    Seen in 5 reports
  6. Require a fresh CSRF token and origin check on the email change endpoint.

    Seen in 4 reports
  7. Require a CSRF token and explicit user confirmation on account-linking endpoints.

    Seen in 4 reports
  8. Reject form-encoded input on JSON-only endpoints and require a CSRF token.

    Seen in 4 reports
  9. Add CSRF protection to upload endpoints.

    Seen in 4 reports
  10. Fix the open redirect and add CSRF protection to the flow.

    Seen in 3 reports
  11. Apply the CSRF token check to GET requests as well as POST requests on the GraphQL endpoint.

    Seen in 3 reports
  12. Require a CSRF token at the start of the OAuth flow, not only on the callback.

    Seen in 3 reports
  13. Enforce validation of the authenticity token on the login endpoint.

    Seen in 3 reports
  14. Validate the Origin header during the WebSocket handshake and require a per-message CSRF token.

    Seen in 3 reports
  15. Exclude form tags from the sanitiser and do not trust CSS classes or href attributes in click handlers.

    Seen in 3 reports
  16. Require a per-request anti-CSRF token on admin actions and use POST instead of GET.

    Seen in 3 reports
  17. Require a CSRF token on the comment endpoint.

    Seen in 3 reports
  18. Require a CSRF token and origin check on creation endpoints.

    Seen in 3 reports
  19. Add CSRF protection to invitation endpoints.

    Seen in 3 reports
  20. Add CSRF protection to business information endpoints.

    Seen in 3 reports
  21. Restrict CORS rules to trusted origins.

    Seen in 2 reports
  22. Set frame-ancestors and require a CSRF token on the state-changing action.

    Seen in 2 reports
  23. Add CSRF protection to deletion endpoints.

    Seen in 2 reports
  24. Require confirmation for follow deep links.

    Seen in 2 reports
  25. Add a CSRF key to the privacy setting endpoint.

    Seen in 2 reports
  26. Add CSRF protection to firmware and configuration endpoints.

    Seen in 2 reports
  27. Add CSRF protection to the password change after reset.

    Seen in 2 reports
  28. Use unpredictable, session-bound CSRF tokens.

    Seen in 2 reports
  29. Validate user-controlled URL parameters against a trusted list.

    Seen in 2 reports
  30. Add CSRF protection to the leanback API.

    Seen in 2 reports
  31. Fix the cross-origin request forgery flaw in Grafana.

    Seen in 2 reports
  32. Fix the wide CSRF flaws in the Node.js modules.

    Seen in 2 reports
  33. Require a CSRF token for logout.

    Seen in 2 reports
  34. Set SameSite=Strict and add a CSRF token to state-changing requests.

    Seen in 1 report
  35. Add CSRF protection to the single sign-on flow and fix the open redirect.

    Seen in 1 report
  36. Validate the authenticity token on the server side for password reset requests.

    Seen in 1 report
  37. Require a CSRF token for state-changing actions and avoid using GET requests for them.

    Seen in 1 report
  38. Check that the link's target is on the same origin before attaching the CSRF token.

    Seen in 1 report
  39. Use a fresh random OAuth state parameter per session.

    Seen in 1 report
  40. Tie the CSRF token to the authenticated session and rotate it at login.

    Seen in 1 report
  41. Bind the CSRF token to a specific action and do not embed it in HTML where it can be read.

    Seen in 1 report
  42. Validate that the destination of a telemetry or ping request stays on the same origin.

    Seen in 1 report
  43. Bind the authenticity token to the specific user session and account.

    Seen in 1 report
  44. Require a CSRF token for state-changing requests in the integration endpoint.

    Seen in 1 report
  45. Require a CSRF token for state-changing POST requests.

    Seen in 1 report
  46. Require the user to confirm the specific JIRA project before changing the connection and do not trust a JWT token supplied in a link.

    Seen in 1 report
  47. Do not accept GET requests for state-changing actions and require CSRF protection.

    Seen in 1 report
  48. Validate the CSRF token and do not set it to a literal string like 'Undefined'.

    Seen in 1 report