php-session-cookie-audit

Analyze PHP source code for session and cookie security flaws.

386|38|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/0xShe/PHP-Code-Audit-Skill --skill php-session-cookie-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-session-cookie-audit
Source: https://github.com/0xShe/PHP-Code-Audit-Skill/tree/main/php-session-cookie-audit
Command: npx skills add https://github.com/0xShe/PHP-Code-Audit-Skill --skill php-session-cookie-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers identify and remediate session and cookie security weaknesses in PHP applications, preventing common authentication and session management pitfalls.

Core Features & Use Cases

  • Detects session fixation risks and improper session handling after login.
  • Verifies cookie flags (HttpOnly, Secure, SameSite) and JWT verification practices.
  • Provides actionable remediation guidance and PoC patterns for fixing remember-me and persistent-login issues.

Quick Start

Analyze a PHP project to locate and remediate session and cookie security weaknesses in your authentication flow.

Frequently Asked Questions about php-session-cookie-audit

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

FAQPage Schema
How do I audit PHP source code for session fixation and cookie security flaws?

To audit PHP source code for session and cookie security flaws, analyze authentication flows to detect session fixation, verify HttpOnly, Secure, and SameSite cookie flags, and identify JWT verification weaknesses. This provides evidence-based checks aligned to standard security checklists.

What are common remember-me risks in PHP web applications?

Common remember-me risks in PHP web applications include improper session handling after login and persistent authentication vulnerabilities. Analyzing source code helps identify these remember-me and persistent-login flaws and provides actionable remediation guidance and PoC patterns for fixing them.

How does JWT verification weakness detection work in PHP applications?

JWT verification weakness detection in PHP evaluates claims verification practices by analyzing authentication implementation source code. It checks for improper signature validation, expired tokens, and missing claim checks across typical PHP authentication implementations to identify security flaws.

How do I check if my PHP application has proper cookie attributes configured?

To check PHP cookie attributes, analyze session initialization code to verify that HttpOnly, Secure, and SameSite flags are properly configured. This source code analysis ensures cookies are set with the correct security attributes to prevent unauthorized client-side access.

Does this session management audit cover logout handling and session invalidation?

Yes, this session management audit covers logout handling by analyzing PHP source code for proper session destruction and invalidation. It verifies that logout processes effectively destroy sessions to prevent session reuse, aligning with evidence-based security checks.

Can I use this to find session fixation vulnerabilities in existing PHP projects?

Yes, you can find session fixation vulnerabilities in existing PHP projects by analyzing authentication source code. The audit identifies session fixation risks and improper session handling after login, providing actionable remediation guidance to secure your authentication flow.