csrf-cross-site-request-forgery

Identify and exploit CSRF vulnerabilities in web applications.

1.6k|204|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/yaklang/hack-skills --skill csrf-cross-site-request-forgery
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csrf-cross-site-request-forgery
Source: https://github.com/yaklang/hack-skills/tree/main/skills/csrf-cross-site-request-forgery
Command: npx skills add https://github.com/yaklang/hack-skills --skill csrf-cross-site-request-forgery

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

CSRF testing identifies weaknesses in web applications' protections against cross-site request forgery, helping security teams assess and strengthen state-changing workflows.

Core Features & Use Cases

  • Threat modeling and reconnaissance across login, account settings, and OAuth flows
  • Token bypass techniques and SameSite behavior analysis to detect weak defenses
  • Proof-of-concept testing with actionable steps and PoCs for JSON CSRF, token fixation, and CSRF-XSS combinations

Quick Start

Run the CSRF testing playbook against the target application to identify token bypasses, SameSite misconfigurations, and OAuth state weaknesses

Frequently Asked Questions about csrf-cross-site-request-forgery

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

FAQPage Schema
How do I test for CSRF vulnerabilities in modern web applications?

CSRF testing involves applying a structured playbook to evaluate state-changing endpoints, token handling, SameSite cookie configurations, and OAuth workflows to identify defense weaknesses. This process uses threat modeling and PoC templates to confirm exploitability.

What is JSON CSRF and how does it bypass standard token defenses?

JSON CSRF forces a victim's browser to send a malicious JSON payload to a vulnerable endpoint. It bypasses standard defenses by exploiting endpoints that accept JSON content-types without proper validation, requiring specific PoC testing to confirm.

Can I use SameSite cookie configurations to test CSRF bypass techniques?

Yes, you can analyze SameSite cookie configurations to detect weak defenses and test CSRF bypass techniques. By observing cookie behaviors during state-changing requests, you identify misconfigurations that allow cross-site request forgery despite SameSite restrictions.

What do I need to set up a test environment for CSRF and OAuth workflow testing?

Setting up a CSRF test environment requires observing cookies, headers, and CSRF token handling within the target application. You need this structured environment to accurately test state-changing endpoints, SameSite behaviors, and OAuth state weaknesses.

How does CSRF testing evaluate the security of OAuth workflows?

CSRF testing evaluates OAuth workflows by threat modeling login and authorization flows to identify state weaknesses. It applies specific techniques to check if state-changing actions within the OAuth process can be forged across modern web apps.

When should I test for CSRF-XSS combinations during security testing?

Test for CSRF-XSS combinations when evaluating applications where cross-site scripting might bypass CSRF token protections. This advanced testing uses proof-of-concept templates to confirm if token fixation and XSS vulnerabilities can be chained together.