
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
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 -yInstalls 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:
- 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
Details
- Repository
- github.com/yaklang/hack-skills
- Category
- Security
- First seen
- May 16, 2026
More from yaklang/hack-skills
All 102- Heap Exploitation4K
- Business Logic Vuln4K
- Traffic Analysis Pcap4K
- Oauth Oidc Misconfiguration4K
- Anti Debugging Techniques4K
- Binary Protection Bypass4K
- Cmdi Command Injection4K
- Ssti Server Side Template Injection3.9K
- Kernel Exploitation3.9K
- Path Traversal Lfi3.9K
- Race Condition3.9K
- Graphql And Hidden Parameters3.9K
- Deserialization Insecure3.9K
- Xxe Xml External Entity3.9K
- Request Smuggling3.9K
- Format String Exploitation3.9K
- File Access Vuln3.9K
- Http Parameter Pollution3.9K
- Csp Bypass Advanced3.9K
- Browser Exploitation V83.9K
- Open Redirect3.9K
- Symbolic Execution Tools3.9K
- Crlf Injection3.9K
- Insecure Source Code Management3.9K
Similar to Csrf Cross Site Request Forgery
More Security
xss-cross-site-scriptingyaklang/hack-skills4.3K installsXSS playbook covering injection contexts, multi-reflection, CSP and WAF bypasses, and upload vectors.
csrf-protectionaj-geddes/useful-ai-prompts479 installsPractical CSRF defense using synchronizer tokens, SameSite cookies, and origin checks for forms and state changes.
oauth-oidc-misconfigurationyaklang/hack-skills4K installsPlaybook of OAuth and OIDC misconfiguration checks covering redirects, state, nonce, PKCE, and token binding.
wordpress-security-validationbobmatnyc/claude-mpm-skills632 installsSecurity-first WordPress guide covering nonces, sanitization, validation, and escaping against XSS, CSRF, and SQL injection.
session-managementaj-geddes/useful-ai-prompts469 installsSecure session management with JWT tokens, refresh cycles, session storage, logout handling, and CSRF protection.