What problem does it solve? PHP's loose equality operator (==) silently coerces types, letting attackers bypass authentication, HMAC verification, and token validation without knowing the real secret. This Skill gives testers a systematic playbook for identifying and exploiting these weak comparison flaws in PHP code during authorized CTF and penetration testing engagements. ## Core Features & Use Cases - Loose Comparison Analysis: Truth tables for == behavior across PHP 5, 7, and 8, covering string-to-int coercion, falsy chains, and version-specific deltas like 'abc' == 0. - Magic Hash Collisions: Precomputed 0e... digests (e.g., 240610708 / QNKCDZO for MD5) that compare equal under ==, plus brute-force methodology for SHA-1/SHA-256 and HMAC-vs-"0" bypasses. - CTF Pattern Library: Ready payloads for strcmp([]) NULL tricks, intval hex/octal parsing, json_decode with true values, and is_numeric scientific notation abuse. - Use Case: During a web CTF, you find if (md5($_GET['a']) == md5($_GET['b'])) in the source. Submit ?a=240610708&b=QNKCDZO — both digests match ^0e[0-9]+$, so PHP evaluates them as 0.0 == 0.0 and the check passes. ## Quick Start Use the type-juggling skill to analyze this PHP login code that compares md5 hashes with == and suggest a bypass payload.