Skip to content

Conversation

@0xgaurav
Copy link

@0xgaurav 0xgaurav commented Nov 9, 2025

You're A Rockstar

Thank you for submitting a Pull Request (PR) to the Cheat Sheet Series.

This PR corrects a misleading comment in the Cross-Site Request Forgery Prevention Cheat Sheet.
The current comment suggests the CSRF token can be read from "form field, cookie, or header".
This is incorrect for the double-submit-cookie pattern, since trusting the cookie directly breaks the intended security model.

The updated comment clarifies that the token should be read from a header or form parameter — not directly from the cookie.

This PR fixes issue #<ISSUE_NUMBER>.

AI Tool Usage Disclosure (required for all PRs)

  • I have NOT used any AI tool to generate the contents of this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants