Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Csrf?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-csrf)
---
name: csrf
description: "Cross-Site Request Forgery testing — missing/weak/bypassable CSRF tokens, SameSite gaps and bypasses, method and content-type tricks, double-submit flaws, and Referer-based defenses. Generates browser-loadable PoCs. Tier 1. Payloads: payloads/crlf-http.md/client-side.md. Use for cookie-authenticated state-changing requests."
---
# CSRF
Force a victim's browser to perform authenticated state changes. Test every cookie-authenticated, state-changing action.
## Trigger phrases
`csrf, cross-site request forgery, samesite bypass, csrf token bypass, state-changing request`
## Method
1. **Token checks:** remove token / blank token / drop the param entirely; reuse another session's token; predictable/static token; token leaked in GET/Referer/HTML.
2. **Method bypass:** POST→GET, `X-HTTP-Method-Override`.
3. **Content-type bypass:** required JSON → send `text/plain` or form-encoded (simple request, no preflight); if still parsed, CSRF works.
4. **SameSite reality:** `Lax` still allows top-level GET state-change and has a ~2-minute post-set window; `None` = no protection; check if the session cookie sets it at all. Client-side-redirect to bypass `Strict`. Subdomain cookie-injection + double-submit flaws.
5. **Referer defenses:** omit Referer (`<meta name=referrer>`) or match a weak check.
6. Build an auto-submitting HTML/`fetch` PoC; confirm with a logged-in victim.
## Escalation
CSRF on email/password change → account takeover. Chain with CORS-leaked tokens (→ `cors`).
## Backend & tooling
Preferred Kali path or headless browser for client-side execution/evidence; if a Burp MCP is present, proxy traffic for visibility and send PoCs to Repeater (see `zazy-orchestrator`).
## Verification (background, before reporting)
Reproduce in a real browser / second context and confirm impact before marking CONFIRMED; use OAST for blind cases. Report true positives only.
## Evidence
Working PoC, the accepted forged request, and the impact in a victim session.