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.
-
Require a CSRF token and origin check on settings endpoints.
Seen in 8 reports
-
Require a CSRF token on the deletion endpoint.
Seen in 7 reports
-
Require a CSRF token on the logout endpoint.
Seen in 7 reports
-
Require user confirmation for state-changing deep links.
Seen in 5 reports
-
Add CSRF protection to the plugin endpoints.
Seen in 5 reports
-
Require a fresh CSRF token and origin check on the email change endpoint.
Seen in 4 reports
-
Require a CSRF token and explicit user confirmation on account-linking endpoints.
Seen in 4 reports
-
Reject form-encoded input on JSON-only endpoints and require a CSRF token.
Seen in 4 reports
-
Add CSRF protection to upload endpoints.
Seen in 4 reports
-
Fix the open redirect and add CSRF protection to the flow.
Seen in 3 reports
-
Apply the CSRF token check to GET requests as well as POST requests on the GraphQL endpoint.
Seen in 3 reports
-
Require a CSRF token at the start of the OAuth flow, not only on the callback.
Seen in 3 reports
-
Enforce validation of the authenticity token on the login endpoint.
Seen in 3 reports
-
Validate the Origin header during the WebSocket handshake and require a per-message CSRF token.
Seen in 3 reports
-
Exclude form tags from the sanitiser and do not trust CSS classes or href attributes in click handlers.
Seen in 3 reports
-
Require a per-request anti-CSRF token on admin actions and use POST instead of GET.
Seen in 3 reports
-
Require a CSRF token on the comment endpoint.
Seen in 3 reports
-
Require a CSRF token and origin check on creation endpoints.
Seen in 3 reports
-
Add CSRF protection to invitation endpoints.
Seen in 3 reports
-
Add CSRF protection to business information endpoints.
Seen in 3 reports
-
Restrict CORS rules to trusted origins.
Seen in 2 reports
-
Set frame-ancestors and require a CSRF token on the state-changing action.
Seen in 2 reports
-
Add CSRF protection to the resend confirmation endpoint.
-
Add CSRF protection to deletion endpoints.
Seen in 2 reports
-
$3,000 -
Medium
-
-
Require confirmation for follow deep links.
Seen in 2 reports
-
Add a CSRF key to the privacy setting endpoint.
Seen in 2 reports
-
Add CSRF protection to firmware and configuration endpoints.
-
Add CSRF protection to the password change after reset.
-
Use unpredictable, session-bound CSRF tokens.
-
Validate user-controlled URL parameters against a trusted list.
Seen in 2 reports
-
Validate the XSRF token when sending test emails.
-
Add CSRF protection to the leanback API.
Seen in 2 reports
-
Fix the cross-origin request forgery flaw in Grafana.
Seen in 2 reports
-
Fix the wide CSRF flaws in the Node.js modules.
Seen in 2 reports
-
Require a CSRF token for logout.
-
Set SameSite=Strict and add a CSRF token to state-changing requests.
-
Add CSRF protection to the single sign-on flow and fix the open redirect.
Seen in 1 report
-
Validate the authenticity token on the server side for password reset requests.
-
Require a CSRF token for state-changing actions and avoid using GET requests for them.
Seen in 1 report
-
Check that the link's target is on the same origin before attaching the CSRF token.
-
Use a fresh random OAuth state parameter per session.
-
Tie the CSRF token to the authenticated session and rotate it at login.
Seen in 1 report
-
Bind the CSRF token to a specific action and do not embed it in HTML where it can be read.
Seen in 1 report
-
Validate that the destination of a telemetry or ping request stays on the same origin.
Seen in 1 report
-
Bind the authenticity token to the specific user session and account.
Seen in 1 report
-
Require a CSRF token for state-changing requests in the integration endpoint.
Seen in 1 report
-
$500 Medium
-
-
Require a CSRF token for state-changing POST requests.
Seen in 1 report
-
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
-
Do not accept GET requests for state-changing actions and require CSRF protection.
Seen in 1 report
-
Validate the CSRF token and do not set it to a literal string like 'Undefined'.
Seen in 1 report