New advertisers: 50% off your first month with code FIRSTMONTHSee slots
yaklang avatar

Csrf Cross Site Request Forgery

Expert CSRF playbook covering token bypasses, SameSite edge cases, JSON and multipart CSRF, and OAuth state handling.

skills.sh installs
4K
GitHub stars
2.7K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers token bypass patterns, SameSite=Lax gaps, JSON and multipart CSRF, CSRF chained with XSS, and OAuth CSRF
  • Includes proof-of-concept templates for form POST, auto-submit, GET-based img triggers, and text/plain content-type downgrade
  • Details checks such as removing or randomizing the token, cross-user token reuse, and the Chrome two-minute Lax exception
  • Designed for reviewing state-changing web flows; links to CORS and OAuth/OIDC skills when cross-origin reads or OAuth state are involved

Install

$ npx -y skills add yaklang/hack-skills --skill csrf-cross-site-request-forgery -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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:


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

Details

Repository
github.com/yaklang/hack-skills
Category
Security
First seen
May 16, 2026

More from yaklang/hack-skills

All 102

Similar to Csrf Cross Site Request Forgery

More Security