webapp-auth-csrf
Webapp Auth Csrf.
Files2
View on GitHubSKILL.mdskills/webapp-auth-csrf/SKILL.md
GitHub-| | CSRF Token | No | N/A | | SameSite Cookie | Lax | Partial (GET bypass) | | Origin Validation | No | N/A | | Referer Validation | No | N/A | | Custom Header Required | No | N/A |
Impact
- Account takeover via email change + password reset chain
- Unauthorized fund transfers
- Settings modification (2FA disable, notification change)
Recommendation
- Implement synchronizer token pattern (anti-CSRF tokens) for all state-changing requests
- Set SameSite=Strict on session cookies where possible
- Validate Origin and Referer headers as defense-in-depth
- Require re-authentication for sensitive operations (password change, fund transfer)
- Use custom request headers (X-Requested-With) for AJAX endpoints