hunt-csrf

Analyze state-changing endpoints and authentication flows for CSRF vulnerabilities.

13|2|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/pdparchitect/rook --skill hunt-csrf-pdparchitect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hunt-csrf
Source: https://github.com/pdparchitect/rook/tree/main/skills/hunt-csrf
Command: npx skills add https://github.com/pdparchitect/rook --skill hunt-csrf-pdparchitect

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the difficulty of identifying complex, modern Cross-Site Request Forgery (CSRF) vulnerabilities that bypass traditional defenses like SameSite cookies or basic token validation.

Core Features & Use Cases

  • Modern Variant Detection: Identifies sophisticated CSRF patterns including GraphQL mutations-via-GET, SameSite=Lax sibling-subdomain bypasses, and JSON-CSRF via text/plain content-type abuse.
  • Chain-to-ATO Analysis: Focuses on high-impact vectors such as OAuth/SSO relay state manipulation and social account linking that lead directly to full account takeover.
  • Use Case: Use this skill to audit an application's OAuth callback or API heartbeat endpoints to determine if an attacker can force a victim to link an unauthorized social account or perform state-changing actions without a valid CSRF token.

Quick Start

Use the hunt-csrf skill to analyze the target application for state-changing endpoints and test them for CSRF token omission or reuse vulnerabilities.

Frequently Asked Questions about hunt-csrf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find CSRF vulnerabilities in modern web applications that use SameSite cookies?

To find CSRF vulnerabilities bypassing SameSite cookies, you need to analyze state-changing endpoints for sibling-subdomain bypasses and verify if token validation is properly bound to user identity. This skill systematically maps authenticated actions to detect these modern CSRF bypasses.

What is a JSON-CSRF vulnerability and how does text/plain content-type abuse work?

A JSON-CSRF vulnerability occurs when an attacker forces a victim's browser to send a cross-site POST request using text/plain content-type abuse to bypass standard CSRF protection mechanisms. This skill identifies these sophisticated patterns by analyzing JSON-based APIs for missing or improperly validated tokens.

How can I test OAuth callback endpoints for CSRF-related account takeover?

Testing OAuth callback endpoints for CSRF-related account takeover involves analyzing OAuth/SSO relay state manipulation and social account linking flows. This skill audits these integrations to determine if an attacker can force a victim to link an unauthorized social account without a valid CSRF token.

Can I audit GraphQL mutations for CSRF vulnerabilities via GET requests?

Yes, you can audit GraphQL mutations for CSRF vulnerabilities via GET requests. This skill detects modern CSRF patterns including GraphQL mutations-via-GET by systematically mapping authenticated actions and verifying token omission or reuse vulnerabilities.

How do I systematically map and validate state-changing endpoints for CSRF token omissions?

To systematically map and validate state-changing endpoints for CSRF token omissions, you analyze authentication flows and verify token binding to user identity. This skill targets authenticated actions to identify where attackers can perform state-changing operations without valid tokens.