php-csrf-audit

Audit CSRF protections in PHP applications and generate JSON and Markdown findings.

80|6|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/yunmengya/PHP_AUDIT_SKILLS --skill php-csrf-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-csrf-audit
Source: https://github.com/yunmengya/PHP_AUDIT_SKILLS/tree/main/php-csrf-audit
Command: npx skills add https://github.com/yunmengya/PHP_AUDIT_SKILLS --skill php-csrf-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the risk of Cross-Site Request Forgery (CSRF) vulnerabilities in PHP applications by auditing existing protections and identifying weaknesses.

Core Features & Use Cases

  • CSRF Vulnerability Detection: Identifies routes that are vulnerable to CSRF attacks due to missing or weak token/Referer/Origin validation.
  • Evidence Generation: Outputs detailed findings in JSON and Markdown formats, including evidence chains from entry point to sink.
  • Use Case: A security auditor can use this skill to quickly scan a PHP project for common CSRF flaws, ensuring that state-changing requests are adequately protected against malicious exploitation.

Quick Start

Use the php-csrf-audit skill to audit CSRF protections in the provided PHP project.

Frequently Asked Questions about php-csrf-audit

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

FAQPage Schema
How do I audit CSRF protections in a PHP application?

Auditing CSRF protections in a PHP application involves analyzing routes for state-changing operations and verifying the presence and effectiveness of token, Referer, or Origin validation mechanisms to identify vulnerable endpoints.

What is a CSRF vulnerability detection process for PHP routes?

CSRF vulnerability detection for PHP routes involves scanning state-changing operations to verify missing or weak token, Referer, or Origin validation. It generates detailed findings with evidence chains from entry point to sink in JSON and Markdown formats.

How do I check if my PHP routes have weak Origin or Referer validation?

Checking for weak Origin or Referer validation involves auditing PHP routes with state-changing operations to verify the presence and effectiveness of these validation mechanisms against malicious exploitation.

Can I generate JSON and Markdown reports for PHP penetration testing findings?

Yes, you can generate JSON and Markdown reports for PHP penetration testing findings. The audit outputs detailed findings, including evidence chains from entry point to sink, formatted specifically for security assessment documentation.

Does this CSRF audit work with any PHP framework or do I need specific route analysis?

This CSRF audit requires specific route analysis within your PHP application. It evaluates state-changing operations across project routes to verify the effectiveness of existing token, Referer, or Origin validation mechanisms.

Why does my PHP application still have CSRF vulnerabilities despite token validation?

Your PHP application may still have CSRF vulnerabilities if the token, Referer, or Origin validation mechanisms are weak or missing on specific state-changing routes. Auditing identifies these exact protection weaknesses.