Skills for Real Engineers. Straight from my .agents directory.
hunt-csrf
Agent skill fromelementalsouls/Claude-BugHunter
Hunting skill for csrf vulnerabilities. Built from 15 public bug bounty reports including modern variants — SameSite=Lax sibling-subdomain bypass (Argo CD CVE-2024-22424), GraphQL mutations-via-GET (GitLab $3,370), framework-wide CSRF middleware disabled (Stripe Dashboard $5,000), path-traversal CSRF-token bypass (GitHub Enterprise CVE-2022-23732 $10k), Origin-omission bypass (TikTok $2,500), OAuth-state null-byte (Streamlabs), WebSocket CSRF / CSWSH (Coda), default-SameSite email-change → ATO (YoYo Games $400), social-account-link CSRF (HackerOne), JSON-CSRF via text/plain on email-change (TikTok $500). Use when hunting modern CSRF — heavy emphasis on chain-to-ATO patterns.
How to install hunt-csrf
npx skills add elementalsouls/Claude-BugHunter# or add only this skill to Claude Code: copy the folder
skills/hunt-csrf/
# into
~/.claude/skills/hunt-csrf/ (all projects)
.claude/skills/hunt-csrf/ (one project)
1## Shortcut: a raw HTTP client beats a real cross-origin page for header-check CSRF23A raw HTTP client (curl, Burp Repeater, any scripting client) is not a browser: it will send4whatever `Origin`/`Referer` header VALUE you set, from any path, on the same connection as your5authenticated cookie. Many apps that claim to defend against CSRF only do a naive **string check**6on the incoming `Origin`/`Referer` header (does it contain/equal some expected value?) rather than7real same-origin enforcement — you can satisfy that check directly by setting the header, with no8actual cross-site delivery (hosting an HTML page, a headless browser) required. This is faster and9more reliable than building a real attacker page for this exact pattern:10```11POST /profile HTTP/1.112Content-Type: application/x-www-form-urlencoded13Origin: https://a-domain-the-app-treats-as-trusted-or-attacker-controlled.example14Cookie: <authenticated session>1516username=csrf_poc17```18If some text names a SPECIFIC origin/domain as the "expected" attacker page, that literal value is19often exactly what the server's check is looking for — try it verbatim in `Origin` (fall back to20`Referer` if `Origin` alone doesn't flip it). Only build a real cross-origin page (actual browser21delivery) when the target does genuine SameSite/fetch-based origin enforcement that a spoofed header22can't satisfy.2324## Autonomous Testing Priority25…
Excerpt shown under the repository's MIT license.
More skills in Claude-BugHunter
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
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.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
