Hunting PHP Object Injection Pop Chains

Hunt PHP object injection where untrusted input reaches unserialize or a framework unserializer and a reachable class carries a magic method that fires during or after reconstruction. Covers native unserialize on request data, cookies, or cache entries, phar deserialization triggered by filesystem functions on an attacker-controlled path, and property-oriented programming chains through __wakeup, __destruct, __toString, and __call that reach a file write, a command, or an SQL sink. Use when a PHP app deserializes data it did not produce and application or library classes define magic methods with side effects. The untrusted serialized string is the source, the unserialize or phar trigger is the sink, and the magic-method chain to a dangerous call is the bug.

UnboundCompute 7db84a3 9.0 KB Updated

File contents

UnboundCompute/security-agent-skills/tree/main/skills/hunting-php-object-injection-pop-chains commit 7db84a3ff3

Frequently asked questions

npx skillmds@latest add unboundcompute/hunting-php-object-injection-pop-chains