What problem does it solve?
This Skill helps you identify and reason about PHP authentication and signature-check bypasses caused by loose comparison (==) and weak type coercion, including “magic hash” 0e… behavior and related edge cases like NULL coercion and hash/HMAC comparisons to falsy constants.
Core Features & Use Cases
- PHP weak comparison forensics: Understand how == and != behave across string/number/boolean/null contexts and what changes between PHP 5/7/8.
- Magic hash (0e…) collision detection: Determine when md5/sha1-style hashes interpreted as scientific-notation zeros can incorrectly compare equal.
- HMAC/hash bypass patterns: Identify logic that compares loose MAC outputs to constants like "0" or 0 and how attacker-controlled inputs might satisfy those loose checks.
- Common CTF-style failure modes: Cover NULL juggling from type errors, strcmp/int/array quirks, intval parsing surprises, and json_decode associative-array pitfalls.
Quick Start
Ask the AI to audit a PHP login or signature-check snippet for unsafe loose comparisons by mapping the comparison sink (== vs === vs hash_equals) and then proposing the smallest verification probes for the target PHP major version.