← ClaudeAtlas

csrf-cross-site-request-forgerylisted

CSRF testing playbook. Use when reviewing state-changing web flows, anti-CSRF defenses, SameSite behavior, JSON CSRF, login CSRF, and OAuth state handling.
SecurityTalent/bugskill-ai · ★ 12 · Data & Documents · score 79
Install: claude install-skill SecurityTalent/bugskill-ai
# SKILL: CSRF — Cross-Site Request Forgery — Expert Attack Playbook > **AI LOAD INSTRUCTION**: Expert CSRF techniques. Covers modern bypass vectors (SameSite gaps, custom header flaws, tokenless bypass patterns), JSON CSRF, multipart CSRF, chaining with XSS. Base models often present only basic CSRF without covering SameSite edge cases and common broken token implementations. ## 0. RELATED ROUTING Also load: - [cors cross origin misconfiguration](../cors-cross-origin-misconfiguration/SKILL.md) when JSON endpoints become readable cross-origin - [oauth oidc misconfiguration](../oauth-oidc-misconfiguration/SKILL.md) when login, account linking, or callback binding relies on OAuth state --- ## 1. CORE CONCEPT CSRF exploits a victim's active session to perform state-changing requests **from the attacker's origin**. **Required conditions**: 1. Victim is authenticated (active session cookie) 2. Server identifies session via cookie only (no secondary check) 3. Attacker can predict/construct the valid request 4. Cookie is sent cross-origin (SameSite=None or legacy behavior) --- ## 2. FINDING CSRF TARGETS **High-value state-changing endpoints**: ``` - Password change ← account takeover - Email change ← account takeover - Add admin / change role ← privilege escalation - Bank/payment transfer ← financial impact - OAuth app authorization ← hijack oauth flow - Account deletion - Two-factor auth disable - SSH key / API key addition - Webhook configuration -