php-auth-audit

Audit PHP authentication and authorization logic for missing security checks.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the critical need to identify and fix vulnerabilities in authentication and authorization mechanisms within PHP applications, preventing unauthorized access and data breaches.

Core Features & Use Cases

  • Route Enumeration: Identifies all application routes and potential entry points for authentication checks.
  • Auth Mechanism Detection: Recognizes various authentication patterns like middleware, guards, sessions, and tokens.
  • Authorization Logic Analysis: Scans controller and service layers for resource ownership checks (e.g., user_id, tenant_id).
  • Vulnerability Identification: Flags routes with missing authentication or potential authorization bypasses.
  • Structured Reporting: Generates detailed reports on identified issues, mapping, and evidence.
  • Use Case: A security auditor uses this Skill to quickly assess a new PHP project's authentication system, ensuring that only authorized users can access sensitive data and perform specific actions.

Quick Start

Use the php-auth-audit skill to audit the authentication logic for the provided PHP project.

Frequently Asked Questions about php-auth-audit

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

FAQPage Schema
How do I audit PHP authentication and authorization logic for missing security checks?

Auditing PHP authentication involves analyzing route definitions, middleware, and controllers to identify missing or bypassed security checks. It detects vulnerabilities related to user access and resource ownership, generating structured reports with findings and evidence.

What are common PHP authorization bypass vulnerabilities in route definitions?

Common PHP authorization bypass vulnerabilities include routes missing authentication middleware and controllers lacking resource ownership checks. Analyzing the service layer identifies these gaps, flagging potential unauthorized access to sensitive data before a breach occurs.

Does this PHP authentication audit support route enumeration and token detection?

Yes, PHP authentication audits support route enumeration to identify entry points and auth mechanism detection for patterns like middleware, guards, sessions, and tokens. This ensures all application routes are checked for proper authentication and authorization controls.

How can I check my PHP controllers for missing resource ownership validation?

Checking PHP controllers involves scanning the controller and service layers for resource ownership validation, such as verifying user_id or tenant_id matches. This authorization logic analysis flags routes where users might access or modify resources they do not own.

What is the best way to secure PHP routes against unauthorized access?

Securing PHP routes involves auditing authentication mechanisms to identify missing checks and potential bypasses. By enumerating routes and analyzing middleware, you map entry points and generate reports detailing vulnerabilities to fix unauthorized access risks.

Can I generate structured reports for PHP auth vulnerabilities found in my codebase?

Yes, you can generate structured reports detailing identified PHP auth vulnerabilities. The audit maps findings, evidence, and potential risks, providing a comprehensive assessment of the authentication system to ensure only authorized users access sensitive data.