csrf

Exploits CSRF vulnerabilities in state-changing web endpoints and generates HTML PoC pages.

253|37|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/blacklanternsecurity/red-run --skill csrf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csrf
Source: https://github.com/blacklanternsecurity/red-run/tree/main/skills/web/csrf
Command: npx skills add https://github.com/blacklanternsecurity/red-run --skill csrf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps penetration testers identify and demonstrate Cross-Site Request Forgery (CSRF) vulnerabilities, proving how an attacker could trick a victim's browser into performing unauthorized actions.

Core Features & Use Cases

  • Vulnerability Assessment: Detects and tests for CSRF flaws in state-changing web application endpoints.
  • Bypass Techniques: Implements various methods to bypass CSRF defenses like tokens, SameSite cookies, and Referer checks.
  • Proof-of-Concept Generation: Creates functional HTML Proof-of-Concept (PoC) pages to demonstrate exploitability.
  • Use Case: A penetration tester uses this Skill to confirm that a web application's user profile update function is vulnerable to CSRF, generating a PoC that, if clicked by a logged-in user, would change their email address to one controlled by the attacker.

Quick Start

Use the csrf skill to assess the state-changing endpoint at https://example.com/update-profile for CSRF vulnerabilities.

Frequently Asked Questions about csrf

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

FAQPage Schema
How do I generate a CSRF PoC to test a web application endpoint?

To generate a CSRF PoC, the Skill analyzes state-changing web application endpoints and creates functional HTML Proof-of-Concept pages demonstrating how an attacker could trick a victim's browser into performing unauthorized actions.

What is the best way to bypass SameSite cookie attributes during penetration testing?

To bypass SameSite cookie attributes during penetration testing, this Skill leverages browser evaluation and cookie inspection to analyze defenses and implements specific SameSite exploit techniques for state-changing attacks.

Can I test for JSON CSRF vulnerabilities using automated browser evaluation?

Yes, you can test for JSON CSRF vulnerabilities using automated browser evaluation. The Skill analyzes state-changing endpoints and generates HTML PoC pages specifically demonstrating JSON CSRF bypass techniques.

How does token manipulation work when exploiting CSRF vulnerabilities?

Token manipulation for CSRF vulnerabilities works by analyzing defense mechanisms like CSRF tokens through browser evaluation and curl. The Skill generates HTML PoC pages demonstrating various token bypass techniques against web applications.

How do I verify if Referer and Origin header validation prevents CSRF attacks?

To verify if Referer and Origin header validation prevents CSRF attacks, the Skill analyzes these defense mechanisms using curl and browser evaluation, generating PoC pages to test if the validation can be bypassed.