Skills for Real Engineers. Straight from my .agents directory.
csrf-cross-site-request-forgery
Agent skill fromyaklang/hack-skills
CSRF testing playbook. Use when reviewing state-changing web flows, anti-CSRF defenses, SameSite behavior, JSON CSRF, login CSRF, and OAuth state handling.
How to install csrf-cross-site-request-forgery
npx skills add yaklang/hack-skills# or add only this skill to Claude Code: copy the folder
skills/csrf-cross-site-request-forgery/
# into
~/.claude/skills/csrf-cross-site-request-forgery/ (all projects)
.claude/skills/csrf-cross-site-request-forgery/ (one project)
1# SKILL: CSRF — Cross-Site Request Forgery — Expert Attack Playbook23> **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.45## 0. RELATED ROUTING67Also load:89- [cors cross origin misconfiguration](../cors-cross-origin-misconfiguration/SKILL.md) when JSON endpoints become readable cross-origin10- [oauth oidc misconfiguration](../oauth-oidc-misconfiguration/SKILL.md) when login, account linking, or callback binding relies on OAuth state1112---1314## 1. CORE CONCEPT1516CSRF exploits a victim's active session to perform state-changing requests **from the attacker's origin**.1718**Required conditions**:191. Victim is authenticated (active session cookie)202. Server identifies session via cookie only (no secondary check)213. Attacker can predict/construct the valid request224. Cookie is sent cross-origin (SameSite=None or legacy behavior)2324---2526## 2. FINDING CSRF TARGETS2728**High-value state-changing endpoints**:29```30- Password change ← account takeover31- Email change ← account takeover32- Add admin / change role ← privilege escalation33- Bank/payment transfer ← financial impact34- OAuth app authorization ← hijack oauth flow35- Account deletion36- Two-factor auth disable37- SSH key / API key addition38- Webhook configuration39…
Excerpt shown under the repository's MIT license.
More skills in hack-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Production-grade engineering skills for AI coding agents.
The open-source app everyone uses to manage agents at work
