[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76ZZKKZ4YYR5E35TA69TKHC":3,"skill-same:01M76ZZKKZ4YYR5E35TA69TKHC":47},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M76ZZKKZ4YYR5E35TA69TKHC","idor",null,"Hunt Insecure Direct Object Reference (CWE-639) — missing authorization checks on object IDs. Covers horizontal vs vertical privilege escalation, UUID vs integer guessing, and GraphQL introspection-driven IDOR discovery.","Iwakishirokoshu\u002FHermesUltimate","Iwakishirokoshu","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F194847626?v=4","01M75P4CVGA89TTCE8JGMNAQQ9","Around","01M75P4CWF85V6GVSEFKGGFZ03",0,"MIT","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fanalyst\u002Fidor\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: idor\ndescription: Hunt Insecure Direct Object Reference (CWE-639) — missing authorization checks on object IDs. Covers horizontal vs vertical privilege escalation, UUID vs integer guessing, and GraphQL introspection-driven IDOR discovery.\nmetadata:\n  subdomain: web-exploitation\n  when_to_use: \"idor insecure direct object reference cwe-639 authorization horizontal vertical privilege escalation uuid integer graphql introspection\"\n---\n\n# IDOR Hunting Playbook\n\nIDOR is the #1 source of bug bounty payouts because it's simple,\nubiquitous, and scanners can't find it (authorization is business\nlogic). Every endpoint that takes an object ID is a candidate.\n\n## 1. Sources\n\n- URL path segments: `\u002Fapi\u002Fusers\u002F123\u002Finvoices\u002F456`\n- Query string: `?user_id=123`\n- JSON body fields: `{\"orderId\": 123}`\n- Headers used as auth scope: `X-Tenant-ID`, `X-Customer-Id`\n- JWT claims that downstream handlers *trust*: `sub`, `tenant`, `role`\n- WebSocket subscription filters\n- GraphQL arguments (`user(id: 123)`)\n\n## 2. Audit workflow\n\n### Step 1 — enumerate object-handling endpoints\n```bash\n# REST\ngrep -rE '@(Get|Post|Put|Delete|Patch)Mapping.*\\{[a-zA-Z]+Id\\}' \u002Fworkspace\u002Fsrc   # Spring\ngrep -rE 'router\\.(get|post|put|delete)\\([^)]*:id' \u002Fworkspace\u002Fsrc                # Express\ngrep -rE '@app\\.route\\([^)]*\u003C[a-z]+:' \u002Fworkspace\u002Fsrc                             # Flask\ngrep -rE 'resources?\\s+:[a-z]+' \u002Fworkspace\u002Fsrc                                   # Rails\n\n# GraphQL\ngrep -rE 'type Query|type Mutation' \u002Fworkspace\u002Fsrc\ngrep -rE '\\w+\\(id: ID' \u002Fworkspace\u002Fsrc\n```\n\n### Step 2 — for each endpoint, answer three questions\n1. **Does it check who the caller is?** (auth middleware \u002F decorator)\n2. **Does it check whether the object belongs to the caller?**\n   (ownership check \u002F tenant filter in the query)\n3. **Does it check whether the caller's role permits the action?**\n   (RBAC \u002F policy engine)\n\nA \"no\" to question 2 = horizontal IDOR (read\u002Fwrite other users' data).\nA \"no\" to question 3 = vertical IDOR (regular user → admin action).\n\n### Step 3 — ownership-check grep patterns\n```bash\n# Django: should have .filter(user=request.user) on the queryset\ngrep -rE 'Model\\.objects\\.get\\(pk=' \u002Fworkspace\u002Fsrc | grep -v 'user=request\\.user'\n\n# Rails: should have current_user.posts.find(params[:id])\ngrep -rE 'Post\\.find\\(params\\[:id\\]\\)' \u002Fworkspace\u002Fsrc\n\n# Spring: should have @PreAuthorize(\"#id == principal.id\")\ngrep -rE 'findById\\(id\\)' \u002Fworkspace\u002Fsrc | xargs -I{} grep -L '@PreAuthorize\\|@PostAuthorize'\n```\n\n## 3. High-yield patterns\n\n### GraphQL IDOR via introspection\n```bash\ncurl -X POST https:\u002F\u002Ftarget.com\u002Fgraphql \\\n  -H 'Content-Type: application\u002Fjson' \\\n  -d '{\"query\":\"{ __schema { types { name fields { name args { name type { name } } } } } }\"}'\n```\nAny query field that takes an `id` arg and lacks a custom directive\n(`@auth(requires: OWNER)`) is a candidate. Mutations are even higher\nvalue — they often forget ownership checks.\n\n### JWT claim trust\nIf the handler pulls `user_id` from `request.user.id` but also accepts\na `user_id` query param as override for \"admin features\", check whether\nthe override path enforces the admin claim. Frequently broken.\n\n### Mass assignment via hidden fields\n```python\nUser.objects.create(**request.POST.dict())\n# allows POST'ing is_staff=true\n```\n\n## 4. PoC workflow\n\nTwo-account diff:\n1. Create account A, note `sessionA` cookie and `objectA` ID.\n2. Create account B, note `sessionB` cookie and `objectB` ID.\n3. `curl -b sessionA \u002Fapi\u002Fobjects\u002F\u003CobjectB>` — should 403.\n4. If it returns 200 with objectB data → confirmed IDOR.\n\nFor vertical escalation:\n1. Normal user cookie `sessionU`.\n2. Call admin endpoint: `curl -b sessionU -X POST \u002Fapi\u002Fadmin\u002Fusers\u002F\u003Cvictim>\u002Frole -d '{\"role\":\"admin\"}'`.\n3. Watch the response code + subsequent `GET \u002Fapi\u002Fusers\u002F\u003Cvictim>`.\n\n## 5. UUID vs integer\n\nSequential integer IDs make IDOR trivial. UUIDv4 makes it harder *but*:\n- UUIDs leak in logs, emails, public URLs, support tickets\n- Many apps use UUIDv1 (time-based) which is partially predictable\n- Enumeration through a listing endpoint still works\n- Some APIs accept both UUID and numeric ID (dual primary key)\n\nAlways test UUID endpoints — the \"it's a UUID so it's safe\" assumption\nis one of the richest hunting grounds.\n\n## 6. Success signals\n\n- HTTP 200 where you expected 403\u002F404\n- Response body contains PII\u002Fdata belonging to the other account\n- Role field changed on victim account\n- Subsequent admin action now permitted for low-priv session\n\nNegative control: same request with your own account's ID. Should\nreturn 200 with identical shape. Anything that returns 404 for your own\naccount but 200 for someone else's is a confirmation signal.\n\n## 7. Default CVSS\n\n| Variant                              | Vector                                        | Score |\n|--------------------------------------|------------------------------------------------|-------|\n| Horizontal read (other user PII)     | AV:N\u002FAC:L\u002FPR:L\u002FUI:N\u002FS:U\u002FC:H\u002FI:N\u002FA:N           | 6.5   |\n| Horizontal write (modify other user) | AV:N\u002FAC:L\u002FPR:L\u002FUI:N\u002FS:U\u002FC:H\u002FI:H\u002FA:N           | 8.1   |\n| Vertical escalation to admin         | AV:N\u002FAC:L\u002FPR:L\u002FUI:N\u002FS:C\u002FC:H\u002FI:H\u002FA:H           | 9.9   |\n| Unauth → any user profile            | AV:N\u002FAC:L\u002FPR:N\u002FUI:N\u002FS:U\u002FC:H\u002FI:N\u002FA:N           | 7.5   |\n\n## 8. Chain promotion\n\nIDOR is a classic chain *starter*:\n- IDOR → other user's password reset token → account takeover\n- IDOR → admin role grant → every other admin-only vuln unlocked\n- IDOR → internal API key → SSRF pivots\n\nWeight 0.5 for authenticated IDOR, 0.3 for unauth.\n","# IDOR Hunting Playbook\n\nIDOR is the #1 source of bug bounty payouts because it's simple,\nubiquitous, and scanners can't find it (authorization is business\nlogic). Every endpoint that takes an object ID is a candidate.\n\n## 1. Sources\n\n- URL path segments: `\u002Fapi\u002Fusers\u002F123\u002Finvoices\u002F456`\n- Query string: `?user_id=123`\n- JSON body fields: `{\"orderId\": 123}`\n- Headers used as auth scope: `X-Tenant-ID`, `X-Customer-Id`\n- JWT claims that downstream handlers *trust*: `sub`, `tenant`, `role`\n- WebSocket subscription filters\n- GraphQL arguments (`user(id: 123)`)\n\n## 2. Audit workflow\n\n### Step 1 — enumerate object-handling endpoints\n```bash\n# REST\ngrep -rE '@(Get|Post|Put|Delete|Patch)Mapping.*\\{[a-zA-Z]+Id\\}' \u002Fworkspace\u002Fsrc   # Spring\ngrep -rE 'router\\.(get|post|put|delete)\\([^)]*:id' \u002Fworkspace\u002Fsrc                # Express\ngrep -rE '@app\\.route\\([^)]*\u003C[a-z]+:' \u002Fworkspace\u002Fsrc                             # Flask\ngrep -rE 'resources?\\s+:[a-z]+' \u002Fworkspace\u002Fsrc                                   # Rails\n\n# GraphQL\ngrep -rE 'type Query|type Mutation' \u002Fworkspace\u002Fsrc\ngrep -rE '\\w+\\(id: ID' \u002Fworkspace\u002Fsrc\n```\n\n### Step 2 — for each endpoint, answer three questions\n1. **Does it check who the caller is?** (auth middleware \u002F decorator)\n2. **Does it check whether the object belongs to the caller?**\n   (ownership check \u002F tenant filter in the query)\n3. **Does it check whether the caller's role permits the action?**\n   (RBAC \u002F policy engine)\n\nA \"no\" to question 2 = horizontal IDOR (read\u002Fwrite other users' data).\nA \"no\" to question 3 = vertical IDOR (regular user → admin action).\n\n### Step 3 — ownership-check grep patterns\n```bash\n# Django: should have .filter(user=request.user) on the queryset\ngrep -rE 'Model\\.objects\\.get\\(pk=' \u002Fworkspace\u002Fsrc | grep -v 'user=request\\.user'\n\n# Rails: should have current_user.posts.find(params[:id])\ngrep -rE 'Post\\.find\\(params\\[:id\\]\\)' \u002Fworkspace\u002Fsrc\n\n# Spring: should have @PreAuthorize(\"#id == principal.id\")\ngrep -rE 'findById\\(id\\)' \u002Fworkspace\u002Fsrc | xargs -I{} grep -L '@PreAuthorize\\|@PostAuthorize'\n```\n\n## 3. High-yield patterns\n\n### GraphQL IDOR via introspection\n```bash\ncurl -X POST https:\u002F\u002Ftarget.com\u002Fgraphql \\\n  -H 'Content-Type: application\u002Fjson' \\\n  -d '{\"query\":\"{ __schema { types { name fields { name args { name type { name } } } } } }\"}'\n```\nAny query field that takes an `id` arg and lacks a custom directive\n(`@auth(requires: OWNER)`) is a candidate. Mutations are even higher\nvalue — they often forget ownership checks.\n\n### JWT claim trust\nIf the handler pulls `user_id` from `request.user.id` but also accepts\na `user_id` query param as override for \"admin features\", check whether\nthe override path enforces the admin claim. Frequently broken.\n\n### Mass assignment via hidden fields\n```python\nUser.objects.create(**request.POST.dict())\n# allows POST'ing is_staff=true\n```\n\n## 4. PoC workflow\n\nTwo-account diff:\n1. Create account A, note `sessionA` cookie and `objectA` ID.\n2. Create account B, note `sessionB` cookie and `objectB` ID.\n3. `curl -b sessionA \u002Fapi\u002Fobjects\u002F\u003CobjectB>` — should 403.\n4. If it returns 200 with objectB data → confirmed IDOR.\n\nFor vertical escalation:\n1. Normal user cookie `sessionU`.\n2. Call admin endpoint: `curl -b sessionU -X POST \u002Fapi\u002Fadmin\u002Fusers\u002F\u003Cvictim>\u002Frole -d '{\"role\":\"admin\"}'`.\n3. Watch the response code + subsequent `GET \u002Fapi\u002Fusers\u002F\u003Cvictim>`.\n\n## 5. UUID vs integer\n\nSequential integer IDs make IDOR trivial. UUIDv4 makes it harder *but*:\n- UUIDs leak in logs, emails, public URLs, support tickets\n- Many apps use UUIDv1 (time-based) which is partially predictable\n- Enumeration through a listing endpoint still works\n- Some APIs accept both UUID and numeric ID (dual primary key)\n\nAlways test UUID endpoints — the \"it's a UUID so it's safe\" assumption\nis one of the richest hunting grounds.\n\n## 6. Success signals\n\n- HTTP 200 where you expected 403\u002F404\n- Response body contains PII\u002Fdata belonging to the other account\n- Role field changed on victim account\n- Subsequent admin action now permitted for low-priv session\n\nNegative control: same request with your own account's ID. Should\nreturn 200 with identical shape. Anything that returns 404 for your own\naccount but 200 for someone else's is a confirmation signal.\n\n## 7. Default CVSS\n\n| Variant                              | Vector                                        | Score |\n|--------------------------------------|------------------------------------------------|-------|\n| Horizontal read (other user PII)     | AV:N\u002FAC:L\u002FPR:L\u002FUI:N\u002FS:U\u002FC:H\u002FI:N\u002FA:N           | 6.5   |\n| Horizontal write (modify other user) | AV:N\u002FAC:L\u002FPR:L\u002FUI:N\u002FS:U\u002FC:H\u002FI:H\u002FA:N           | 8.1   |\n| Vertical escalation to admin         | AV:N\u002FAC:L\u002FPR:L\u002FUI:N\u002FS:C\u002FC:H\u002FI:H\u002FA:H           | 9.9   |\n| Unauth → any user profile            | AV:N\u002FAC:L\u002FPR:N\u002FUI:N\u002FS:U\u002FC:H\u002FI:N\u002FA:N           | 7.5   |\n\n## 8. Chain promotion\n\nIDOR is a classic chain *starter*:\n- IDOR → other user's password reset token → account takeover\n- IDOR → admin role grant → every other admin-only vuln unlocked\n- IDOR → internal API key → SSRF pivots\n\nWeight 0.5 for authenticated IDOR, 0.3 for unauth.\n",{"name":5,"metadata":24,"description":7},{"subdomain":25,"when_to_use":26},"web-exploitation","idor insecure direct object reference cwe-639 authorization horizontal vertical privilege escalation uuid integer graphql introspection","main","c0c483827a963764d5e1a663a9591867d47289e6","stack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fanalyst\u002Fidor","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu","2026-06-15 13:48:41",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Iwakishirokoshu\u002FHermesUltimate --skill idor",{"tool":39,"command":40},"bunx","bunx skills add Iwakishirokoshu\u002FHermesUltimate --skill idor",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Iwakishirokoshu\u002FHermesUltimate --skill idor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fanalyst\u002Fidor\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M770W8JDE5EC1TJT4GSDWD78","wps-pixie-dust","WPS Pixie-Dust offline nonce attack (reaver -K \u002F pixiewps) and fallback online PIN brute (bully) to recover the AP's WPA PSK without capturing a handshake.","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M770W4B7T5VCVHB88V1F02H1","wpa3-sae","WPA3-SAE transition-mode downgrade (DragonShift), SSID Confusion CVE-2023-52424, Dragonblood side-channels, and SAE captive-portal credential recovery against WPA3-Personal networks.","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M770W093C8FAV8S34K8VB6T9","wpa2-psk","WPA\u002FWPA2-PSK handshake capture via targeted deauth + PMKID (no deauth required) + offline hashcat cracking. The most common consumer\u002FSMB encryption mode in 2026.","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"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":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M770VTNAQGZ3D0RQVFEKTE8Z","wpa-enterprise-eap","WPA\u002FWPA2\u002FWPA3-Enterprise (802.1X\u002FEAP) rogue-RADIUS evil-twin for MSCHAPv2 capture, GTC downgrade, and PEAP relay. MSCHAPv2 capture equals a NetNTLM hash — the primary wireless on-ramp to Active Directory.","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M770VNG05ZX3CV84R9GX8PJN","krack-fragattacks","KRACK key-reinstallation (CVE-2017-13077..13082) and FragAttacks fragmentation\u002Faggregation flaws (CVE-2020-24586..24588, CVE-2020-26139..26147) against legacy or embedded 802.11 supplicants with poor patch cadence.","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M770VHFH7N192V56PFSRXF5K","evil-twin-karma","Evil-twin rogue AP with KARMA\u002FMana PNL-probe response, captive-portal credential capture, and post-association MITM for PSK\u002Fopen networks. Distinct from wpa-enterprise-eap which targets 802.1X.","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]