
Csrf Cross Site Request Forgery
Loads expert CSRF attack patterns with a focus on modern bypass techniques that base models typically miss. Covers the full range from basic token validation flaws (token not validated server-side being the most common) to SameSite cookie edge cases, JSON CSRF via content-type tricks, and OAuth state parameter attacks. Especially strong on the double-submit cookie pattern vulnerabilities and the two-minute Lax cookie exemption in Chrome. Includes ready-to-use HTML proof-of-concept templates for different attack vectors. Best deployed when auditing state-changing endpoints like password resets, email changes, or admin role assignments where you need to systematically check token implementation and cookie behavior rather than just surface-level CSRF presence.
- skills.sh installs
- 3.9K
- GitHub stars
- 2.6K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add yaklang/hack-skills --skill csrf-cross-site-request-forgery --agent claude-codeInstalls into .claude/skills of the current project.
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:
- cors cross origin misconfiguration when JSON endpoints become readable cross-origin
- oauth oidc misconfiguration 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:
- Victim is authenticated (active session cookie)
- Server identifies session via cookie only (no secondary check)
- Attacker can predict/construct the valid request
- Cookie is sent cross-origin (SameSite=None or legacy behavior)
2. FINDING CSRF TARGETS
Sponsors
Details
- Repository
- github.com/yaklang/hack-skills
- Categories
- Testing & QA, Security
- First seen
- May 16, 2026
More from yaklang/hack-skills
All 102- Business Logic Vuln3.9K
- Traffic Analysis Pcap3.9K
- Oauth Oidc Misconfiguration3.9K
- Anti Debugging Techniques3.9K
- Binary Protection Bypass3.9K
- Cmdi Command Injection3.9K
- Path Traversal Lfi3.9K
- Ssti Server Side Template Injection3.8K
- Graphql And Hidden Parameters3.8K
- Kernel Exploitation3.8K
- Race Condition3.8K
- Xxe Xml External Entity3.8K
- Deserialization Insecure3.8K
- Request Smuggling3.8K
- File Access Vuln3.8K
- Format String Exploitation3.8K
- Http Parameter Pollution3.8K
- Csp Bypass Advanced3.8K
- Browser Exploitation V83.8K
- Open Redirect3.8K
- Symbolic Execution Tools3.8K
- Crlf Injection3.8K
- Insecure Source Code Management3.8K
- Mobile Ssl Pinning Bypass3.8K