Skip to content
Back to skills

Csrf

ASecurity

Cross-Site Request Forgery testing — missing/weak/bypassable CSRF tokens, SameSite gaps and bypasses, method and content-type tricks, double-submit flaws, and Referer-based defenses. Generates browser-loadable PoCs. Tier 1. Payloads: payloads/crlf-http.md/client-side.md. Use for cookie-authenticated state-changing requests.

  • 16 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 17, 2026
securityawstestingbackend

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill csrf --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Csrf?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Csrf
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-csrf/badge)](https://www.skillsdirectory.com/skills/anandjogawade-csrf)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: csrf
description: "Cross-Site Request Forgery testing — missing/weak/bypassable CSRF tokens, SameSite gaps and bypasses, method and content-type tricks, double-submit flaws, and Referer-based defenses. Generates browser-loadable PoCs. Tier 1. Payloads: payloads/crlf-http.md/client-side.md. Use for cookie-authenticated state-changing requests."
---

# CSRF

Force a victim's browser to perform authenticated state changes. Test every cookie-authenticated, state-changing action.

## Trigger phrases
`csrf, cross-site request forgery, samesite bypass, csrf token bypass, state-changing request`

## Method
1. **Token checks:** remove token / blank token / drop the param entirely; reuse another session's token; predictable/static token; token leaked in GET/Referer/HTML.
2. **Method bypass:** POST→GET, `X-HTTP-Method-Override`.
3. **Content-type bypass:** required JSON → send `text/plain` or form-encoded (simple request, no preflight); if still parsed, CSRF works.
4. **SameSite reality:** `Lax` still allows top-level GET state-change and has a ~2-minute post-set window; `None` = no protection; check if the session cookie sets it at all. Client-side-redirect to bypass `Strict`. Subdomain cookie-injection + double-submit flaws.
5. **Referer defenses:** omit Referer (`<meta name=referrer>`) or match a weak check.
6. Build an auto-submitting HTML/`fetch` PoC; confirm with a logged-in victim.

## Escalation
CSRF on email/password change → account takeover. Chain with CORS-leaked tokens (→ `cors`).

## Backend & tooling
Preferred Kali path or headless browser for client-side execution/evidence; if a Burp MCP is present, proxy traffic for visibility and send PoCs to Repeater (see `zazy-orchestrator`).

## Verification (background, before reporting)
Reproduce in a real browser / second context and confirm impact before marking CONFIRMED; use OAST for blind cases. Report true positives only.

## Evidence
Working PoC, the accepted forged request, and the impact in a victim session.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.