php-unserialize-audit

Audit PHP deserialization source code for memory-safety vulnerabilities.

59|5|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/califio/skills --skill php-unserialize-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-unserialize-audit
Source: https://github.com/califio/skills/tree/main/plugins/php-unserialize-audit/skills/php-unserialize-audit
Command: npx skills add https://github.com/califio/skills --skill php-unserialize-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually identifying exploitable memory-safety vulnerabilities in PHP's deserialization surface is extremely time-consuming and error-prone, leaving high-risk attack vectors unaddressed in PHP engines and extensions.

Core Features & Use Cases

This Skill provides a structured, corpus-validated audit workflow for PHP deserialization code, including a comprehensive bug taxonomy derived from real-world advisories, automated target discovery queries, parallel audit agent coordination, and a verification pass to confirm exploitability. It is used by security researchers and code auditors to find use-after-free, type confusion, heap overflow, partial-object destruct, and parse inconsistency bugs in PHP 5.x and 7.x source code, including core deserializers, extension custom unserialize handlers, session decoders, WDDX parsers, and phar metadata handlers.

Quick Start

Use the php-unserialize-audit skill to audit the PHP session deserialization implementation in the ext/session directory for use-after-free vulnerabilities.

Frequently Asked Questions about php-unserialize-audit

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

FAQPage Schema
How do I audit PHP deserialization code for use-after-free vulnerabilities?

To audit PHP deserialization code for use-after-free vulnerabilities, you can use a structured workflow that applies a real-world advisory-derived bug taxonomy to enumerate attack surfaces and verify exploitability in PHP 5.x and 7.x source code.

What types of memory-safety bugs exist in PHP session decoders and phar metadata handlers?

PHP session decoders and phar metadata handlers can contain memory-safety bugs such as use-after-free, type confusion, heap overflow, partial-object destruct, and parse inconsistency vulnerabilities within their deserialization surfaces.

Can I use this audit workflow to find type confusion and heap overflow bugs in custom PHP extension unserialize handlers?

Yes, this audit workflow is designed to find type confusion and heap overflow bugs by targeting custom class unserialize handlers and magic method dispatch paths within PHP extensions.

What is the best way to verify exploitability of deserialization vulnerabilities found in PHP engine source code?

The best way to verify exploitability of deserialization vulnerabilities in PHP engine source code is by running a parallel agent analysis pass that validates findings against a structured bug taxonomy derived from known advisories.

Does this PHP deserialization audit approach cover WDDX parsers and core unserialize implementations?

Yes, this PHP deserialization audit approach comprehensively covers WDDX parsers, core unserialize implementations, session decoders, and phar metadata handlers to map findings to known bug classes.

Why is manual auditing of PHP deserialization surfaces considered time-consuming and error-prone?

Manual auditing of PHP deserialization surfaces is time-consuming and error-prone due to the complexity of tracking memory allocation and object lifecycle states across core engine and extension code, which often leaves high-risk attack vectors unaddressed.