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.
-
Do not perform state-changing actions on GET requests and require CSRF protection.
Seen in 1 report
-
Use a POST request with a CSRF token for account connection callbacks.
Seen in 1 report
-
Enforce CSRF protection on all HTTP methods, including GET.
Seen in 1 report
-
Do not perform state-changing actions via GET and validate a CSRF token.
Seen in 1 report
-
$250 Low
-
-
Do not implement state-changing actions as GET requests and require a CSRF token or origin check.
Seen in 1 report
-
Require a CSRF token for image upload endpoints.
Seen in 1 report
-
Do not derive the CSRF token from the group identifier; use a per-user token.
Seen in 1 report
-
Verify a CSRF token and confirm the request originated from the user before posting to Twitter.
Seen in 1 report
-
Set the HttpOnly flag on CSRF token cookies.
Seen in 1 report
-
Tie the CSRF token to the user session and rotate it.
Seen in 1 report
-
Add anti-CSRF protection to the login form.
Seen in 1 report
-
$100
-
-
Add CSRF protection to the registration form.
Seen in 1 report
-
$100
-
-
Verify the session token when changing account settings.
-
Do not accept a CSRF token from another user session.
Seen in 1 report
-
Generate a random authenticity token for each page load.
Seen in 1 report
-
Use strict comparison when validating CSRF tokens to prevent type juggling.
-
Validate the CSRF token server-side and do not accept arbitrary values.
Seen in 1 report
-
Validate the CSRF middleware token server-side in password change requests.
-
Implement CSRF token validation.
Seen in 1 report
-
Add server-side validation of the CSRF token.
-
Require the existing password or a CSRF token before setting a password on a social-login account.
Seen in 1 report
-
Require a CSRF token on the API key regeneration endpoint.
Seen in 1 report
-
$500 Medium
-
-
Use a POST request with a fresh, unpredictable, single-use anti-CSRF value instead of a static per-store identifier.
Seen in 1 report
-
Add CSRF protection to the domain transfer endpoint.
Seen in 1 report
-
Verify the authenticity token against the session instead of comparing it loosely.
Seen in 1 report
-
Validate client-supplied element selectors and values in collaboration events.
Seen in 1 report
-
Use POST instead of GET for the hook test API endpoint.
Seen in 1 report
-
Add CSRF protection to the feedback endpoint.
Seen in 1 report
-
Add CSRF protection to the forwarding test endpoint.
Seen in 1 report
-
Add CSRF protection to the newsletter form.
Seen in 1 report
-
Add a CSRF token to the friend request deletion endpoint.
Seen in 1 report
-
Add CSRF protection to the encryption settings endpoint.
Seen in 1 report
-
Add CSRF protection to the bank account addition form.
Seen in 1 report
-
Add CSRF protection to the donation settings endpoint.
-
Add CSRF protection to the support ticket endpoint.
Seen in 1 report
-
Add CSRF protection to the SMS captcha step.
Seen in 1 report
-
Add CSRF protection to the security question change flow.
-
Require the existing password and a CSRF token before setting a password.
Seen in 1 report
-
Add CSRF protection and authorisation checks to the deletion endpoint.
-
Check ownership of the object identifier and add CSRF protection.
Seen in 1 report
-
Fix the Referer validation regex to match the exact origin.
Seen in 1 report
-
Expire the authenticity token after a single use.
Seen in 1 report
-
Do not include the expected state value in error responses.
Seen in 1 report
-
$500 Medium
-
-
Properly validate the CSRF token on the OAuth2 authorisation endpoint.
-
Parse the content type consistently with the underlying HTTP parser and use an allowlist instead of a blacklist.
Seen in 1 report
-
Validate the sender of postMessage commands and restrict which methods the background page executes.
-
Apply the browser-level CSRF bypass fix.
Seen in 1 report
-
$500 Medium
-
-
Require a valid CSRF token on the logout endpoint.
-
Require confirmation for state-changing links in the desktop client.
Seen in 1 report
-
Restrict the debug adapter protocol to trusted origins.
Seen in 1 report