csrf-testing

Identify and validate CSRF vulnerabilities in cookie-authenticated web endpoints.

83|8|Updated May 6, 2026
One-click install
npx skills add https://github.com/Q16G/aster --skill csrf-testing-q16g
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csrf-testing
Source: https://github.com/Q16G/aster/tree/main/skills/pentest/csrf-testing
Command: npx skills add https://github.com/Q16G/aster --skill csrf-testing-q16g

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

CSRF testing helps identify and verify cross-site request forgery vulnerabilities in web applications that rely on cookie-based authentication to prevent unauthorized state-changing actions.

Core Features & Use Cases

  • Detects presence of CSRF protections (tokens, SameSite cookies, referer/origin checks) and potential bypass strategies.
  • Provides a minimal PoC workflow to demonstrate impact in authorized test environments.
  • Use Case: Evaluate a login-protected endpoint that can perform password changes or data modifications to ensure protections are robust.

Quick Start

Run a controlled security test against a target site with authorized access and follow the steps described to assess CSRF protections.

Frequently Asked Questions about csrf-testing

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

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

To test for CSRF vulnerabilities in web applications, you target state-changing endpoints relying on cookie authentication, such as password changes or transfers, validating protections and PoC viability with up to eight requests per endpoint.

What CSRF protections can I detect and bypass during penetration testing?

CSRF penetration testing detects the presence of CSRF protections like tokens, SameSite cookies, and referer or origin checks, while also evaluating potential bypass strategies to confirm if the web application's state-changing operations remain secure.

Can I validate CSRF PoC viability for cookie-authenticated endpoints?

Yes, you can validate CSRF PoC viability for cookie-authenticated endpoints by running a controlled security test in an authorized testing environment to demonstrate the potential impact of unauthorized actions like data deletions or transfers.

Does CSRF testing work for endpoints without cookie-based authentication?

CSRF testing specifically applies to endpoints with state-changing operations that rely on cookies for authentication, meaning endpoints utilizing alternative authentication mechanisms are outside its defined testing scope.

What are the limitations of testing CSRF protections in an authorized environment?

Limitations include requiring an authorized testing environment and supporting a maximum of eight requests per endpoint to confirm protections and PoC viability, restricting large-scale automated scanning.

When do I need to perform CSRF testing on state-changing operations?

You need to perform CSRF testing on state-changing operations, such as data modifications or password changes, to ensure that robust token, SameSite cookie, and referer/origin checks prevent unauthorized cross-site requests.