Cross-Site Request Forgery (CSRF)
SkillWeb & browsingCross-Site Request Forgery, force a victim's browser to perform state-changing actions. Load on state-changing requests (POST/PUT/DELETE) that rely only on cookies, missing/weak CSRF tokens, `SameSite=None`, or forms/JSON without anti-CSRF. Signals: cookie-only auth, no token, token not validated.
Use Cross-Site Request Forgery (CSRF) in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Cross-Site Request Forgery (CSRF) and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Cross-Site Request Forgery (CSRF) skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
What this skill tells your AI
The instructions your AI receives, as published by noorqureshi/sploitagent in skills/web/web-csrf/SKILL.md and read by Ahel’s review.
When it applies
A state-changing action authenticated purely by an ambiently-sent credential (cookie) with no unpredictable token the attacker's site can't know/replay.
Why it works
Browsers attach cookies to cross-site requests automatically. If the server accepts the action
on cookie alone, an attacker page can submit it on the victim's behalf. Anti-CSRF tokens /
SameSite cookies break this by requiring something cross-site JS can't supply.
Method
- Find a candidate: a sensitive action (change email/password, transfer, role) that changes state.
- Check the defenses: is there a CSRF token? Is it validated (remove it / reuse another
user's / swap value)? Is the cookie
SameSite=Lax/Strict? Is it a simple request (no preflight)? - Build the PoC: auto-submitting HTML form (or
fetchfor simple requests) that fires the action; host it and load it as the victim. - Bypass weak tokens: token not tied to session, predictable, accepted when blank, only checked if present, or leaked via GET/referer.
- JSON endpoints: try
Content-Type: text/plain/form-encoding to avoid preflight; if the API accepts it, CSRF applies.
Gotchas
SameSite=Lax(now default in Chrome) blocks most cross-site POST CSRF — look forNone, GET-based actions, or method override.- Token present ≠ safe — always test that it's actually validated and bound to the session.
- Login CSRF and CSRF chained with self-XSS are often the real impact.
Verify success
Loading your PoC while authenticated as the victim performs the action (email changed, etc.) with no interaction beyond visiting the page.
References
PortSwigger CSRF labs; OWASP CSRF Prevention Cheat Sheet.
Signals
- GitHub stars
- 20
- Forks
- 7
- Last commit
- Sep 2026
Advanced
- Item type
- skill
- Key
web-csrf- Source
- github.com/noorqureshi/sploitagent
github.com/noorqureshi/sploitagent
Related picks
Skill · jeremylongshore
The pick for Web (OWASP)owasp-security
Skill · davila7
The pick for Web (OWASP)browser-use
Skill · browser-use
More in Web & browsingwebapp-testing
Skill · anthropics
More in Web & browsingplaywright-cli
Skill · microsoft
More in Web & browsingbenchmark
Skill · affaan-m
More in Web & browsing