dragonked2/alphacode/hunt-csrf
Claude Code and agent skill by dragonked2/alphacode
- community
Checking that the SKILL.md file is still in the repository.
CSRF — state-changing actions without CSRF tokens, SameSite bypass, subdomain CSRF, double-submit cookie, token prediction. Chains to ATO, RCE, privilege escalation.
Install
npx vskill@latest install dragonked2/alphacode/hunt-csrfSKILL.md
CSRF HUNTING — Advanced Guide
Core: Attacker triggers state-changing actions as authenticated user via cross-origin requests.
DETECTION METHODOLOGY
CSRF TOKEN BYPASS
Bypass 1: Token Copy from GET to POST
Bypass 2: Double-Submit Cookie
Bypass 3: Subdomain Token Leak
SameSite BYPASS
Top-Level Navigation
Subdomain Trick
Skewer Attack
IMPACT — WHAT TO PROVE, AND WHERE TO STOP
Prove the missing control against your own account with a reversible state change, then stop. That is the complete finding.
The distinction matters: demonstrating that a token check is absent is review work; performing the privileged action is the attack. Do not send requests to admin routes, do not trigger command-execution endpoints, and do not complete an OAuth authorization for someone else's account.
When a tokenless endpoint reaches a sensitive capability, that is a real and serious CSRF — report it as such, describing the worst case rather than demonstrating it. Reject at Gate 6: state-changing GETs with no meaningful consequence, and CSRF that only affects the attacker's own session.
HTML/JS PoC templates
Point these at your own account's harmless action.
Auto-Submit Form
Fetch API CSRF
Hidden Iframe
JSONP CSRF
CORS + CSRF COMBO
Data Theft via CORS
Token Extraction + CSRF
Null Origin Bypass
HACKERONE CSRF BOUNTIES
| Report | Endpoint | Impact | Bounty | |
|---|---|---|---|---|
| Email Change | /api/user/email | ATO via password reset | $7,500 | |
| Password Reset | /api/user/password/reset | Account enumeration | $5,000 | |
| Admin Panel | /admin/api/exec | Command execution | $25,000 | |
| OAuth Auth | /oauth/authorize | Force attacker app | $15,000 | |
| Webhook | /api/webhooks | Data exfiltration | $8,000 |
TESTING CHECKLIST
- [ ] Identify all state-changing endpoints (POST, PUT, DELETE, PATCH)
- [ ] Test token removal, empty token, wrong token, cross-session token
- [ ] Check SameSite cookie attributes
- [ ] Test SameSite=Lax bypass via top-level GET navigation
- [ ] Test subdomain CSRF via XSS on any subdomain
- [ ] Check CORS configuration (Allow-Origin, Allow-Credentials)
- [ ] Test JSONP endpoints that accept callbacks
- [ ] Test OAuth flow for CSRF on authorization endpoint
- [ ] Test webhook/invitation endpoints for CSRF
- [ ] Chain CSRF with open redirect for OAuth code theft
- [ ] Check admin endpoints for CSRF protection
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/alphacode_base/bundled_skills/bugbounty/hunt-csrf/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dragonked2/alphacode/hunt-csrf)