Registry / wgpsec

wgpsec/aboutsecurity/php-type-juggling

PHP 类型杂耍(Type Juggling)和 Magic Hash 攻击方法论。当目标是 PHP 应用且存在密码比较、哈希校验、认证逻辑时使用。当看到 PHP `==` 松散比较、MD5/SHA1 哈希校验、strcmp 比较、JSON 输入处理、is_numeric 检查时必须使用。当错误登录泄露了输入的 MD5 哈希值时,这是 Magic Hash 的强信号,立即使用。CTF/渗透中 PHP 认证绕过最常见的漏洞类型之一。即使只是看到 PHP 5.x 或响应中包含哈希值,也应考虑使用此 skill

Agent skill · version 0.0.0-master.1794415689.gc0d3a46 · from wgpsec/AboutSecurity

Install

npx yarkr-cli add skill:wgpsec/aboutsecurity/php-type-juggling

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:wgpsec/aboutsecurity/php-type-juggling
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:wgpsec/aboutsecurity/php-type-juggling

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:wgpsec/aboutsecurity/php-type-juggling

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.