@hostclubeos/miraos 0.0.5-beta → 0.0.7-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/bundled/bug-hunter/references/apk-redteam-pipeline/SKILL.md +407 -0
  2. package/bundled/bug-hunter/references/bb-local-toolkit/SKILL.md +1558 -0
  3. package/bundled/bug-hunter/references/bb-methodology/SKILL.md +513 -0
  4. package/bundled/bug-hunter/references/bug-bounty/SKILL.md +1604 -0
  5. package/bundled/bug-hunter/references/bugcrowd-reporting/SKILL.md +331 -0
  6. package/bundled/bug-hunter/references/cloud-iam-deep/SKILL.md +521 -0
  7. package/bundled/bug-hunter/references/enterprise-vpn-attack/SKILL.md +356 -0
  8. package/bundled/bug-hunter/references/evidence-hygiene/SKILL.md +401 -0
  9. package/bundled/bug-hunter/references/exploit-completion/SKILL.md +155 -0
  10. package/bundled/bug-hunter/references/hunt-api-misconfig/SKILL.md +268 -0
  11. package/bundled/bug-hunter/references/hunt-aspnet/SKILL.md +277 -0
  12. package/bundled/bug-hunter/references/hunt-ato/SKILL.md +140 -0
  13. package/bundled/bug-hunter/references/hunt-auth-bypass/SKILL.md +449 -0
  14. package/bundled/bug-hunter/references/hunt-brute-force/SKILL.md +297 -0
  15. package/bundled/bug-hunter/references/hunt-business-logic/SKILL.md +237 -0
  16. package/bundled/bug-hunter/references/hunt-cache-poison/SKILL.md +338 -0
  17. package/bundled/bug-hunter/references/hunt-captcha-bypass/SKILL.md +92 -0
  18. package/bundled/bug-hunter/references/hunt-cicd/SKILL.md +267 -0
  19. package/bundled/bug-hunter/references/hunt-clickjacking/SKILL.md +66 -0
  20. package/bundled/bug-hunter/references/hunt-cloud-misconfig/SKILL.md +195 -0
  21. package/bundled/bug-hunter/references/hunt-cors/SKILL.md +291 -0
  22. package/bundled/bug-hunter/references/hunt-csrf/SKILL.md +374 -0
  23. package/bundled/bug-hunter/references/hunt-deserialization/SKILL.md +178 -0
  24. package/bundled/bug-hunter/references/hunt-dispatch/SKILL.md +380 -0
  25. package/bundled/bug-hunter/references/hunt-dom/SKILL.md +279 -0
  26. package/bundled/bug-hunter/references/hunt-exceptional-conditions/SKILL.md +67 -0
  27. package/bundled/bug-hunter/references/hunt-file-upload/SKILL.md +158 -0
  28. package/bundled/bug-hunter/references/hunt-fintech-graphql/SKILL.md +245 -0
  29. package/bundled/bug-hunter/references/hunt-forgot-password/SKILL.md +70 -0
  30. package/bundled/bug-hunter/references/hunt-graphql/SKILL.md +368 -0
  31. package/bundled/bug-hunter/references/hunt-grpc/SKILL.md +273 -0
  32. package/bundled/bug-hunter/references/hunt-host-header/SKILL.md +265 -0
  33. package/bundled/bug-hunter/references/hunt-html-injection/SKILL.md +62 -0
  34. package/bundled/bug-hunter/references/hunt-http-smuggling/SKILL.md +87 -0
  35. package/bundled/bug-hunter/references/hunt-idor/SKILL.md +389 -0
  36. package/bundled/bug-hunter/references/hunt-jwt-crypto/SKILL.md +177 -0
  37. package/bundled/bug-hunter/references/hunt-k8s/SKILL.md +293 -0
  38. package/bundled/bug-hunter/references/hunt-laravel/SKILL.md +211 -0
  39. package/bundled/bug-hunter/references/hunt-ldap/SKILL.md +307 -0
  40. package/bundled/bug-hunter/references/hunt-lfi/SKILL.md +266 -0
  41. package/bundled/bug-hunter/references/hunt-llm-ai/SKILL.md +245 -0
  42. package/bundled/bug-hunter/references/hunt-mfa-bypass/SKILL.md +134 -0
  43. package/bundled/bug-hunter/references/hunt-misc/SKILL.md +333 -0
  44. package/bundled/bug-hunter/references/hunt-nextjs/SKILL.md +255 -0
  45. package/bundled/bug-hunter/references/hunt-nodejs/SKILL.md +219 -0
  46. package/bundled/bug-hunter/references/hunt-nosqli/SKILL.md +166 -0
  47. package/bundled/bug-hunter/references/hunt-ntlm-info/SKILL.md +270 -0
  48. package/bundled/bug-hunter/references/hunt-oauth/SKILL.md +414 -0
  49. package/bundled/bug-hunter/references/hunt-open-redirect/SKILL.md +179 -0
  50. package/bundled/bug-hunter/references/hunt-race-condition/SKILL.md +485 -0
  51. package/bundled/bug-hunter/references/hunt-rag-vector/SKILL.md +167 -0
  52. package/bundled/bug-hunter/references/hunt-rce/SKILL.md +494 -0
  53. package/bundled/bug-hunter/references/hunt-saml/SKILL.md +112 -0
  54. package/bundled/bug-hunter/references/hunt-session/SKILL.md +298 -0
  55. package/bundled/bug-hunter/references/hunt-shadow-api/SKILL.md +153 -0
  56. package/bundled/bug-hunter/references/hunt-sharepoint/SKILL.md +437 -0
  57. package/bundled/bug-hunter/references/hunt-source-leak/SKILL.md +301 -0
  58. package/bundled/bug-hunter/references/hunt-spa-api/SKILL.md +123 -0
  59. package/bundled/bug-hunter/references/hunt-springboot/SKILL.md +241 -0
  60. package/bundled/bug-hunter/references/hunt-sqli/SKILL.md +422 -0
  61. package/bundled/bug-hunter/references/hunt-ssrf/SKILL.md +514 -0
  62. package/bundled/bug-hunter/references/hunt-ssti/SKILL.md +117 -0
  63. package/bundled/bug-hunter/references/hunt-subdomain/SKILL.md +335 -0
  64. package/bundled/bug-hunter/references/hunt-tls-network/SKILL.md +355 -0
  65. package/bundled/bug-hunter/references/hunt-websocket/SKILL.md +285 -0
  66. package/bundled/bug-hunter/references/hunt-xss/SKILL.md +450 -0
  67. package/bundled/bug-hunter/references/hunt-xxe/SKILL.md +422 -0
  68. package/bundled/bug-hunter/references/ios-redteam-pipeline/SKILL.md +287 -0
  69. package/bundled/bug-hunter/references/m365-entra-attack/SKILL.md +384 -0
  70. package/bundled/bug-hunter/references/meme-coin-audit/SKILL.md +358 -0
  71. package/bundled/bug-hunter/references/mid-engagement-ir-detection/SKILL.md +353 -0
  72. package/bundled/bug-hunter/references/offensive-osint/README.md +98 -0
  73. package/bundled/bug-hunter/references/offensive-osint/SKILL.md +399 -0
  74. package/bundled/bug-hunter/references/offensive-osint/references/breach-and-credentials.md +128 -0
  75. package/bundled/bug-hunter/references/offensive-osint/references/dork-corpus.md +180 -0
  76. package/bundled/bug-hunter/references/offensive-osint/references/helpers-and-automation.md +231 -0
  77. package/bundled/bug-hunter/references/offensive-osint/references/identity-fabric.md +305 -0
  78. package/bundled/bug-hunter/references/offensive-osint/references/people-osint.md +105 -0
  79. package/bundled/bug-hunter/references/offensive-osint/references/probes-and-wordlists.md +1266 -0
  80. package/bundled/bug-hunter/references/offensive-osint/references/recon-stack.md +282 -0
  81. package/bundled/bug-hunter/references/offensive-osint/references/recon-techniques.md +341 -0
  82. package/bundled/bug-hunter/references/offensive-osint/references/saas-public-surfaces.md +138 -0
  83. package/bundled/bug-hunter/references/offensive-osint/references/secret-patterns.md +67 -0
  84. package/bundled/bug-hunter/references/offensive-osint/references/secret-validators.md +329 -0
  85. package/bundled/bug-hunter/references/offensive-osint/references/sector-notes.md +72 -0
  86. package/bundled/bug-hunter/references/offensive-osint/references/severity-matrix.md +108 -0
  87. package/bundled/bug-hunter/references/offensive-osint/references/specialized-osint.md +199 -0
  88. package/bundled/bug-hunter/references/offensive-osint/references/tooling-install.md +188 -0
  89. package/bundled/bug-hunter/references/offensive-osint/scripts/assets/FONT-LICENSE.txt +13 -0
  90. package/bundled/bug-hunter/references/offensive-osint/scripts/assets/archivo-black.woff2 +0 -0
  91. package/bundled/bug-hunter/references/offensive-osint/scripts/dashboard.py +968 -0
  92. package/bundled/bug-hunter/references/offensive-osint/scripts/h1_reference.py +402 -0
  93. package/bundled/bug-hunter/references/offensive-osint/scripts/secret_scan.py +180 -0
  94. package/bundled/bug-hunter/references/okta-attack/SKILL.md +397 -0
  95. package/bundled/bug-hunter/references/osint-methodology/README.md +66 -0
  96. package/bundled/bug-hunter/references/osint-methodology/SKILL.md +1704 -0
  97. package/bundled/bug-hunter/references/recon-scope-triage/SKILL.md +89 -0
  98. package/bundled/bug-hunter/references/redteam-mindset/SKILL.md +401 -0
  99. package/bundled/bug-hunter/references/redteam-report-template/SKILL.md +347 -0
  100. package/bundled/bug-hunter/references/regression-hunting/SKILL.md +98 -0
  101. package/bundled/bug-hunter/references/report-writing/SKILL.md +568 -0
  102. package/bundled/bug-hunter/references/security-arsenal/SKILL.md +912 -0
  103. package/bundled/bug-hunter/references/supply-chain-attack-recon/SKILL.md +648 -0
  104. package/bundled/bug-hunter/references/triage-validation/SKILL.md +418 -0
  105. package/bundled/bug-hunter/references/vmware-vcenter-attack/SKILL.md +372 -0
  106. package/bundled/bug-hunter/references/web2-recon/SKILL.md +698 -0
  107. package/bundled/bug-hunter/references/web3-audit/SKILL.md +606 -0
  108. package/chunks/{acpAgent-UHWDA3W7.js → acpAgent-JC4KGTLW.js} +2 -2
  109. package/chunks/{chunk-BX3KM7OK.js → chunk-2PB6TEZU.js} +1 -1
  110. package/chunks/{chunk-4IVYVCCU.js → chunk-3NB3FFLR.js} +1 -1
  111. package/chunks/{chunk-XZNF4YNN.js → chunk-5RYDKYIR.js} +1 -1
  112. package/chunks/{chunk-MUS4ADP7.js → chunk-67PM7M5R.js} +1 -1
  113. package/chunks/{chunk-D3YOXHQF.js → chunk-6T25QVBX.js} +1 -1
  114. package/chunks/{chunk-NYM67KKZ.js → chunk-7SAR6NXA.js} +1 -1
  115. package/chunks/{chunk-RKFNQQNA.js → chunk-BSLIVO6O.js} +1 -1
  116. package/chunks/{chunk-MQWKOOSR.js → chunk-DF6TBGS2.js} +1 -1
  117. package/chunks/{chunk-2TDRP3IX.js → chunk-G35E5UB3.js} +1 -1
  118. package/chunks/{chunk-2GVKPBW5.js → chunk-GN7ODRDE.js} +1 -1
  119. package/chunks/{chunk-PXBJPUGN.js → chunk-H2QXWIRZ.js} +1 -1
  120. package/chunks/{chunk-FRADUGRC.js → chunk-JDABSS6M.js} +1 -1
  121. package/chunks/{chunk-QEIX42MZ.js → chunk-JJQJFMPL.js} +1 -1
  122. package/chunks/{chunk-FXANOHXI.js → chunk-MMGNOY3U.js} +3 -3
  123. package/chunks/{chunk-744QTJR2.js → chunk-N7WQH6L4.js} +2 -2
  124. package/chunks/{chunk-SK3QOQR4.js → chunk-PSSJDUZB.js} +1 -1
  125. package/chunks/{chunk-D3QZNIFB.js → chunk-SOCXRMZM.js} +4 -4
  126. package/chunks/{chunk-N4RIISOE.js → chunk-TXL535SJ.js} +1 -1
  127. package/chunks/{chunk-NKWATWMD.js → chunk-VRAHMOQQ.js} +1 -1
  128. package/chunks/{chunk-62DMHXLL.js → chunk-WCLAVBNR.js} +1 -1
  129. package/chunks/{daemon-status-provider-F6KB2LNG.js → daemon-status-provider-UX574XBB.js} +1 -1
  130. package/chunks/{fast-path-DWPD5EGQ.js → fast-path-OQWHYDXC.js} +1 -1
  131. package/chunks/{llm-RBI7KXDE.js → llm-R2RFT63S.js} +3 -3
  132. package/chunks/{local-HSG47CNJ.js → local-AONDQYFL.js} +1 -1
  133. package/chunks/{managed-local-serve-YE4JDFNP.js → managed-local-serve-DRNC6PTL.js} +1 -1
  134. package/chunks/{managed-runtime-bootstrap-SHEXUEZN.js → managed-runtime-bootstrap-K3GRKDNQ.js} +1 -1
  135. package/chunks/{managed-runtime-ssh-worker-BZNJV7IB.js → managed-runtime-ssh-worker-AVNBWFYC.js} +1 -1
  136. package/chunks/{memory-JTDN5AEA.js → memory-JVT5LAWJ.js} +1 -1
  137. package/chunks/{nonInteractiveCli-BXHX6EIU.js → nonInteractiveCli-2GHQYHGW.js} +1 -1
  138. package/chunks/{review-PC4IDLCG.js → review-NDK2B7XI.js} +1 -1
  139. package/chunks/{run-qwen-serve-XRWVWOZK.js → run-qwen-serve-P5X5OZUH.js} +1 -1
  140. package/chunks/{serve-JCUT4WK7.js → serve-UHEH433U.js} +1 -1
  141. package/chunks/{server-HMTRZJF7.js → server-ARYDETSZ.js} +1 -1
  142. package/chunks/{session-RGLZU6KY.js → session-HKWGCZF2.js} +1 -1
  143. package/chunks/{start-opentui-ui-YNTPK7LX.js → start-opentui-ui-S7A4FBGP.js} +1 -1
  144. package/chunks/{startInteractiveUI-MWA2VYTJ.js → startInteractiveUI-DY6DWFW7.js} +2 -2
  145. package/chunks/{validateNonInterActiveAuth-3433WFLE.js → validateNonInterActiveAuth-P2F6MYO6.js} +1 -1
  146. package/chunks/{version-XCFKTEY3.js → version-2ZFKVIIW.js} +1 -1
  147. package/cli.js +1 -1
  148. package/export-transcript-document.js +1 -1
  149. package/package.json +3 -3
  150. package/web-shell/assets/{PierreFilePreview-DEhWK46v.js → PierreFilePreview-Dkt6iPte.js} +1 -1
  151. package/web-shell/assets/SpreadsheetPreview-I4yiL7q3.js +1 -0
  152. package/web-shell/assets/{WorkspaceFileBrowser-64vDYikf.js → WorkspaceFileBrowser-Du9bMpNo.js} +1 -1
  153. package/web-shell/assets/{abnfDiagram-VCTEODGH-C2WWURam.js → abnfDiagram-VCTEODGH-CGY1lCxS.js} +1 -1
  154. package/web-shell/assets/{agents-route-j5ba59xn.js → agents-route-kcQ3YUNc.js} +1 -1
  155. package/web-shell/assets/{arc-Bkr_-GVn.js → arc-BUMNyJDV.js} +1 -1
  156. package/web-shell/assets/{architectureDiagram-5GKGNRK7-D_v_wDDW.js → architectureDiagram-5GKGNRK7-CEfXhEKD.js} +1 -1
  157. package/web-shell/assets/{blockDiagram-NRAW4CY4-Csxc3YNo.js → blockDiagram-NRAW4CY4-BH8hjvlX.js} +1 -1
  158. package/web-shell/assets/{c4Diagram-UCG6FXSJ-PXryoJCB.js → c4Diagram-UCG6FXSJ-Dfl946ex.js} +1 -1
  159. package/web-shell/assets/channel-CoZByzPk.js +1 -0
  160. package/web-shell/assets/{chunk-2Q5K7J3B-DwK5UBHI.js → chunk-2Q5K7J3B-CBvGm-pD.js} +1 -1
  161. package/web-shell/assets/{chunk-5VM5RSS4-BC1hvD6_.js → chunk-5VM5RSS4-k06tGOfl.js} +1 -1
  162. package/web-shell/assets/{chunk-F27PBJKO-iFe0IxfJ.js → chunk-F27PBJKO-Dv4S4vSq.js} +1 -1
  163. package/web-shell/assets/{chunk-G27WJ6UU-ROSuKRxI.js → chunk-G27WJ6UU-7LY0yu3f.js} +1 -1
  164. package/web-shell/assets/{chunk-JWPE2WC7-CYHS6PxA.js → chunk-JWPE2WC7-B-CgVEuJ.js} +1 -1
  165. package/web-shell/assets/{chunk-LCL6LL3I-D5bFMqCy.js → chunk-LCL6LL3I-D0TrWx1f.js} +1 -1
  166. package/web-shell/assets/{chunk-POPQ4Y6H-BJh77MGv.js → chunk-POPQ4Y6H-B97ZANlR.js} +1 -1
  167. package/web-shell/assets/{chunk-SVP7TREG-Cs81aYft.js → chunk-SVP7TREG-2CO_3G76.js} +1 -1
  168. package/web-shell/assets/{chunk-XXDRQBXY-DqDbN44E.js → chunk-XXDRQBXY-CFbSHjzz.js} +1 -1
  169. package/web-shell/assets/classDiagram-DTDB5LWJ-BgKRvG5r.js +1 -0
  170. package/web-shell/assets/classDiagram-v2-JRS7N3AN-BgKRvG5r.js +1 -0
  171. package/web-shell/assets/{cose-bilkent-JH36ORCC-DhjrwADJ.js → cose-bilkent-JH36ORCC-K-uc8eFw.js} +1 -1
  172. package/web-shell/assets/{cynefin-OW5HDTMX-Dh7t-_3M.js → cynefin-OW5HDTMX-Cb0lt2G3.js} +1 -1
  173. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-5J4kto0C.js → cynefinDiagram-5FMLGOSQ-DWkqpFuH.js} +1 -1
  174. package/web-shell/assets/{dagre-3AP2YEHR-28AdbIcl.js → dagre-3AP2YEHR-Cs8gu3Q4.js} +1 -1
  175. package/web-shell/assets/{diagram-S7CK7UJ4-DmksuoIf.js → diagram-S7CK7UJ4-DlMLXUgK.js} +1 -1
  176. package/web-shell/assets/{diagram-UQ7AKVKN-DUjgQ8Fg.js → diagram-UQ7AKVKN-68PPYL92.js} +1 -1
  177. package/web-shell/assets/{diagram-VSXAHHWV-DUe_FpG-.js → diagram-VSXAHHWV-CxIdRSbx.js} +1 -1
  178. package/web-shell/assets/{diagram-VX7I27RA-CJJ70teK.js → diagram-VX7I27RA-G3C0kWVW.js} +1 -1
  179. package/web-shell/assets/{diagram-Z3DM3KII-BgABlJO4.js → diagram-Z3DM3KII-CwEuAgyS.js} +1 -1
  180. package/web-shell/assets/{docx-preview-BMBWboRx.js → docx-preview-3XzkP9iR.js} +1 -1
  181. package/web-shell/assets/{ebnfDiagram-PWID7BFC-B3nK_Lh7.js → ebnfDiagram-PWID7BFC-DLeMX1Ka.js} +1 -1
  182. package/web-shell/assets/{erDiagram-SSCWMZ5O-DCTdCWlu.js → erDiagram-SSCWMZ5O-CoQLSOGk.js} +1 -1
  183. package/web-shell/assets/{flowDiagram-A5DVABFB-CPxk2UUl.js → flowDiagram-A5DVABFB-BXUV-Qml.js} +1 -1
  184. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-WZzMAKht.js → ganttDiagram-EL5Y4UJY-sWi6Lowi.js} +1 -1
  185. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-DKcO5ugU.js → gitGraphDiagram-WWUBYQGX-Dsh4-kB4.js} +1 -1
  186. package/web-shell/assets/{index-CkRLMu1y.js → index-CrSq-SfJ.js} +6 -6
  187. package/web-shell/assets/{index-Dbm3-Fps.js → index-DjwWlZt0.js} +1 -1
  188. package/web-shell/assets/{infoDiagram-RXCK75RN-CJX5DzdL.js → infoDiagram-RXCK75RN-JZ6nFIgB.js} +1 -1
  189. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-fF0Id5B6.js → ishikawaDiagram-5VMMS53U-qJj-sQFs.js} +1 -1
  190. package/web-shell/assets/{journeyDiagram-EYS64GPL-BOAezBVe.js → journeyDiagram-EYS64GPL-Ck0jv8SO.js} +1 -1
  191. package/web-shell/assets/{kanban-definition-3QL26DDD-DdNBof9J.js → kanban-definition-3QL26DDD-Ck6_Ydmt.js} +1 -1
  192. package/web-shell/assets/{layout-CXX3l5w0.js → layout-yLaSulE8.js} +1 -1
  193. package/web-shell/assets/{linear-Dnaccp-S.js → linear-CXw5rE6U.js} +1 -1
  194. package/web-shell/assets/{mermaid.core-BzdC3B6T.js → mermaid.core-6WQsyLcq.js} +6 -6
  195. package/web-shell/assets/{mindmap-definition-FBJOCRG2-D-gMUzLw.js → mindmap-definition-FBJOCRG2-BDAmAz8h.js} +1 -1
  196. package/web-shell/assets/{pegDiagram-XKGWAZYB-B9n1WVZq.js → pegDiagram-XKGWAZYB-Rvn5mpol.js} +1 -1
  197. package/web-shell/assets/{pieDiagram-E7YTZNPT-ok49U0zT.js → pieDiagram-E7YTZNPT-DHw4avFL.js} +1 -1
  198. package/web-shell/assets/{quadrantDiagram-AXDQQJYC-DJKha-v3.js → quadrantDiagram-AXDQQJYC-vch6jDK-.js} +1 -1
  199. package/web-shell/assets/{railroadDiagram-O6MQD6OU-DjL4pl7y.js → railroadDiagram-O6MQD6OU-DfVCzYpO.js} +1 -1
  200. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-BpmmRw3A.js → requirementDiagram-EFPCY7ZU-BQAnwpSv.js} +1 -1
  201. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-KpteHB8X.js → sankeyDiagram-P5KCCOFB-fJuxdbbi.js} +1 -1
  202. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-COMghCpA.js → sequenceDiagram-WJ2MYXX4-B3TtvHJp.js} +1 -1
  203. package/web-shell/assets/{sizeCapture-X5ZJPWSS-5fEwJD-n.js → sizeCapture-X5ZJPWSS-DlJmbcZd.js} +1 -1
  204. package/web-shell/assets/{stateDiagram-HBIQ2CUA-CnC7oXvs.js → stateDiagram-HBIQ2CUA--0kiPvGS.js} +1 -1
  205. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-Dw-ppcvp.js +1 -0
  206. package/web-shell/assets/{swimlanes-XN3QIQJK-bVlhZdve.js → swimlanes-XN3QIQJK-CAytfKbo.js} +1 -1
  207. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-B36XZQuh.js +8 -0
  208. package/web-shell/assets/{timeline-definition-24CTP7MA-CBvYgMu5.js → timeline-definition-24CTP7MA-C-BUmwu6.js} +1 -1
  209. package/web-shell/assets/{vennDiagram-4TSXK5OY-CUTYvV1j.js → vennDiagram-4TSXK5OY-W_dgEGv2.js} +1 -1
  210. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-Djl4gxCB.js → wardleyDiagram-VM6X3IG4-ikAv1QJ9.js} +1 -1
  211. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-BcJZtI2X.js → xychartDiagram-S5SC5T6Z-BmY9Ily6.js} +1 -1
  212. package/web-shell/index.html +1 -1
  213. package/web-shell/sw.js +1 -1
  214. package/web-shell/assets/SpreadsheetPreview-C-GgIuPX.js +0 -1
  215. package/web-shell/assets/channel-6Pj4KPAs.js +0 -1
  216. package/web-shell/assets/classDiagram-DTDB5LWJ-BaTUuuB8.js +0 -1
  217. package/web-shell/assets/classDiagram-v2-JRS7N3AN-BaTUuuB8.js +0 -1
  218. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-V_cfZFBL.js +0 -1
  219. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-25wVg0WL.js +0 -8
@@ -0,0 +1,298 @@
1
+ ---
2
+ name: hunt-session
3
+ description: "Hunt Session Management vulnerabilities — session fixation (no regeneration on login), insufficient invalidation on logout / password-change / email-change, predictable or low-entropy session IDs, JWT-as-session with no exp/revocation, refresh-token rotation/reuse-detection gaps, OAuth/SSO session linkage, device-bound-session (DBSC) downgrade, and cookie attribute issues (Secure/HttpOnly/SameSite/__Host-). Validate with TWO real sessions (attacker A + victim B), body-diff every 200, and OOB confirmation for theft chains. Medium to Critical (fixation→admin hijack, no-invalidation→persistent ATO)."
4
+ sources: hackerone_public, portswigger_research, owasp_wstg
5
+ report_count: 18
6
+ ---
7
+
8
+ ## Autonomous Testing Priority
9
+
10
+ **Missing HttpOnly on cookies is auto-detected — focus your active testing on lifecycle invalidation (higher impact).**
11
+
12
+ **Pattern 1 — Session survives logout (most common high-value finding):**
13
+ 1. Login and note the session token/cookie value
14
+ 2. Call the logout endpoint (`/logout`, `POST /api/logout`, etc.)
15
+ 3. Try to use the OLD session token to access a protected resource (`/api/me`, `/dashboard`, `/account`)
16
+ 4. If 200 with user data → session not invalidated on logout = ATO persistence
17
+
18
+ **Pattern 2 — Session not regenerated on login (session fixation):**
19
+ 1. GET any page to receive a pre-authentication session token/cookie
20
+ 2. POST valid credentials to the login endpoint
21
+ 3. Compare the session token BEFORE and AFTER login
22
+ 4. If the token is unchanged → session fixation vulnerability
23
+
24
+ **Pattern 3 — Session survives password change:**
25
+ 1. Login → record session A value
26
+ 2. Change the password via the account settings endpoint
27
+ 3. Replay session A on a protected endpoint
28
+ 4. If 200 → token not rotated on credential change = persistent ATO (critical chain when combined with XSS/cookie theft)
29
+
30
+ **Content-type:** Login and session endpoints vary — use `application/json` for REST APIs, `application/x-www-form-urlencoded` for traditional web forms. Try both if the first returns an unexpected response.
31
+
32
+ **Proof:** A protected-resource 200 response (with user data) using a session token that should have been invalidated confirms the finding.
33
+
34
+ ---
35
+
36
+ # HUNT-SESSION — Session Management
37
+
38
+ ## Crown Jewel Targets
39
+
40
+ Session fixation leading to admin hijack = Critical. Session surviving a password change = High-to-Critical (persistent ATO from a stolen cookie that the victim believes they revoked by resetting their password).
41
+
42
+ **Highest-value chains:**
43
+ - **Session fixation** — server accepts a session ID set by the client and does NOT regenerate it on login → attacker pre-plants an ID, victim authenticates, attacker rides the now-authenticated session → persistent ATO.
44
+ - **No invalidation on logout** — old token still works after `/logout` → theft window never closes.
45
+ - **No invalidation on password / email change** — a stolen session survives the victim's "I think I was hacked, let me reset" → persistent ATO. This is the single highest-paid session bug class.
46
+ - **Refresh-token reuse without rotation-detection** — a leaked refresh token mints fresh access tokens forever; no reuse-detection means the legitimate user's later refresh does NOT revoke the attacker's branch.
47
+ - **Predictable / low-entropy session ID** — sequential, timestamp- or userId-derived IDs → brute-force or compute other users' sessions.
48
+ - **JWT-as-session with no `exp` / no revocation list** — stolen JWT = permanent access; logout is cosmetic.
49
+
50
+ ---
51
+
52
+ ## Grounding — patterns that shaped each phase
53
+
54
+ No invented CVE/report IDs below. These are the *named, publicly-documented* patterns this skill encodes:
55
+
56
+ - **Session fixation, login-CSRF, no-regeneration-on-auth** — OWASP WSTG-SESS-03 / WSTG-SESS-01; the classic ACROS / Mitja Kolšek session-fixation paper. Highest-impact variant: fixing the session of an SSO/admin user.
57
+ - **SameSite=Lax sibling-subdomain CSRF reaching session state** — Argo CD **CVE-2024-22424** (Lax cookies sent on top-level cross-site navigations from a sibling subdomain). Use this when a session cookie relies on `SameSite=Lax` as its only CSRF defence.
58
+ - **Refresh-token rotation & automatic reuse-detection** — the Auth0/IETF OAuth-Security-BCP model: a rotated refresh token, if replayed, must invalidate the *entire token family*. Absence = the core bug to prove.
59
+ - **Device Bound Session Credentials (DBSC)** — the W3C/Chrome DBSC draft binds a session to a TPM/device key. Test the *downgrade*: does the server still accept a non-bound cookie when the DBSC challenge is stripped?
60
+ - **Cookie attribute hardening** — OWASP WSTG-SESS-02; `__Host-`/`__Secure-` prefixes per RFC 6265bis. Missing `HttpOnly` is only a finding when a real XSS/DOM sink exists (chain with `hunt-xss`/`hunt-dom`).
61
+ - **Entropy** — NIST SP 800-63B requires ≥64 bits of entropy in a session identifier. Treat anything decodable to a counter/timestamp/userId as a finding regardless of length.
62
+
63
+ Cross-refs: ATO chaining → `hunt-ato`; JWT alg/kid tampering → `hunt-api-misconfig`; OAuth code/state flaws → `hunt-oauth`; CSRF mechanics → `hunt-csrf`; cookie-theft sinks → `hunt-xss` / `hunt-dom`.
64
+
65
+ ---
66
+
67
+ ## Attack Surface Signals
68
+
69
+ ```
70
+ Set-Cookie: session=... # name varies: sid, JSESSIONID, connect.sid,
71
+ # PHPSESSID, ASP.NET_SessionId, laravel_session, _csrf
72
+ /login /logout /api/login /oauth/token
73
+ /auth/refresh /api/token/refresh # refresh-token rotation surface
74
+ /account/change-password /settings/email
75
+ ?sid= ?session= in URL # session-in-URL → leaks via Referer/logs (finding)
76
+ ```
77
+ ```
78
+ # Header signals worth flagging immediately:
79
+ Set-Cookie: session=abc; Path=/ # no HttpOnly/Secure/SameSite
80
+ Set-Cookie: session=abc; SameSite=None # None without Secure = rejected by modern browsers, but flag
81
+ Set-Cookie: __Host-sess=...; Secure; Path=/ # GOOD — hard to fixate
82
+ Sec-Session-Registration: ... # DBSC in play → test downgrade
83
+ ```
84
+
85
+ ---
86
+
87
+ ## Step-by-Step Hunting Methodology
88
+
89
+ > **Two-session rule.** Every invalidation/fixation claim is proven with TWO concrete sessions captured by a real flow — attacker **A** and victim **B** — never with hardcoded placeholder strings. Helpers below capture real cookies from `curl`'s Netscape jar.
90
+
91
+ ```bash
92
+ TARGET=target.com
93
+ JAR_A=$(mktemp); JAR_B=$(mktemp)
94
+
95
+ # Robust session-cookie extractor: handles #HttpOnly_ prefix lines and any
96
+ # cookie name (sid/JSESSIONID/connect.sid/PHPSESSID/...). Prints name=value.
97
+ get_cookie () { # $1=jar $2=name-regex (default: common session names)
98
+ local jar="$1" re="${2:-session|sid|sess|JSESSIONID|connect\.sid|PHPSESSID|laravel_session}"
99
+ awk -v re="$re" '
100
+ /^#HttpOnly_/ { sub(/^#HttpOnly_/,""); } # strip jar HttpOnly marker
101
+ /^#/ { next } # skip remaining comments
102
+ NF>=7 && $6 ~ re { print $6"="$7 } # field6=name field7=value
103
+ ' "$jar" | tail -1
104
+ }
105
+ ```
106
+
107
+ ### Phase 1 — Session Fixation (regeneration-on-login)
108
+ ```bash
109
+ # Step 1: grab a pre-auth session the SERVER hands an anonymous client.
110
+ curl -s -L -c "$JAR_A" "https://$TARGET/login" -o /dev/null
111
+ PRE=$(get_cookie "$JAR_A"); echo "pre-auth: $PRE"
112
+
113
+ # Step 1b (stronger): can we FORCE an arbitrary ID? attacker-chosen value.
114
+ FIX="session=AAAAdeadbeefAAAA"
115
+
116
+ # Step 2: authenticate while CARRYING the pre-auth/forced cookie (reuse same jar).
117
+ curl -s -L -c "$JAR_A" -b "$JAR_A" -X POST "https://$TARGET/login" \
118
+ -d "username=attacker@example.com&password=CorrectHorse1" -o /dev/null
119
+ POST=$(get_cookie "$JAR_A"); echo "post-auth: $POST"
120
+
121
+ # DECISION:
122
+ # - If $POST == $PRE (value unchanged across the auth boundary) AND that value
123
+ # now returns authenticated data → FIXATION. The server reused the anon ID.
124
+ # - If the forced $FIX value is accepted and authenticates → CRITICAL fixation
125
+ # (attacker controls the ID; no email/XSS needed to plant it).
126
+ AUTH=$(curl -s -L -b "$JAR_A" "https://$TARGET/api/me")
127
+ echo "$AUTH" | head -c 200
128
+ ```
129
+ **FP guard:** a value *change* is not automatically safe — some apps rotate the readable cookie but keep a stable server-side session keyed by a second cookie. Diff the FULL `Set-Cookie` set and confirm the *old* value is genuinely dead (Phase 2). Also confirm `/api/me` returns *your* identity, not a generic 200/landing page.
130
+
131
+ ### Phase 2 — Invalidation on Logout
132
+ ```bash
133
+ # A logs in for real (fresh jar), capture A's live session.
134
+ curl -s -L -c "$JAR_A" -X POST "https://$TARGET/api/login" \
135
+ -H 'Content-Type: application/json' \
136
+ -d '{"email":"attacker@example.com","password":"CorrectHorse1"}' -o /dev/null
137
+ A=$(get_cookie "$JAR_A"); echo "A=$A"
138
+
139
+ # Baseline: what does an authenticated /api/me look like for A? (capture body, not just code)
140
+ BEFORE=$(curl -s -L -b "$JAR_A" "https://$TARGET/api/me")
141
+
142
+ # Logout A.
143
+ curl -s -L -b "$JAR_A" -X POST "https://$TARGET/api/logout" -o /dev/null
144
+
145
+ # Replay A's OLD cookie value explicitly (do NOT reuse the jar — logout may have
146
+ # overwritten it). Compare body + code against the authenticated baseline.
147
+ AFTER=$(curl -s -L -H "Cookie: $A" "https://$TARGET/api/me" -w '\n[%{http_code}]')
148
+ echo "AFTER: $AFTER"
149
+ ```
150
+ **FP discipline (mandatory):**
151
+ - Don't trust the status code. A cached/edge 200 or a generic SPA shell returns 200 for everyone. **Body-diff** `AFTER` against `BEFORE` — the finding is only real if `AFTER` still contains A's *unique identity marker* (email, user-id, CSRF token, account name).
152
+ - Confirm with a **negative control**: a random/garbage cookie value must NOT return the same authenticated body. If garbage also yields 200 with user data, the endpoint isn't session-gated and there's no finding here.
153
+ - Re-test after a **short delay** and from a **different IP** — some servers lazily expire on next access or pin sessions to IP.
154
+
155
+ ### Phase 3 — Invalidation on Password / Email Change (persistent-ATO core)
156
+ ```bash
157
+ # This is the real two-session flow. A = attacker holding a stolen/old session.
158
+ # B = the victim who changes their password believing it revokes access.
159
+ # (In a real engagement A is a session you legitimately captured for a TEST account
160
+ # that you also control as B — never use a real third party.)
161
+
162
+ # 1) Log the TEST account in as session A, capture it.
163
+ curl -s -L -c "$JAR_A" -X POST "https://$TARGET/api/login" \
164
+ -H 'Content-Type: application/json' \
165
+ -d '{"email":"victim@example.com","password":"OldPass!1"}' -o /dev/null
166
+ SESSION_A=$(get_cookie "$JAR_A"); echo "SESSION_A=$SESSION_A"
167
+ BEFORE=$(curl -s -L -H "Cookie: $SESSION_A" "https://$TARGET/api/profile")
168
+
169
+ # 2) Log the SAME account in as session B (separate jar = "the victim's browser").
170
+ curl -s -L -c "$JAR_B" -X POST "https://$TARGET/api/login" \
171
+ -H 'Content-Type: application/json' \
172
+ -d '{"email":"victim@example.com","password":"OldPass!1"}' -o /dev/null
173
+
174
+ # 3) Victim (session B) changes the password.
175
+ curl -s -L -b "$JAR_B" -X POST "https://$TARGET/api/change-password" \
176
+ -H 'Content-Type: application/json' \
177
+ -d '{"old_password":"OldPass!1","new_password":"BrandNew!2"}' -o /dev/null
178
+
179
+ # 4) THE TEST: replay the OLD SESSION_A captured in step 1.
180
+ AFTER=$(curl -s -L -H "Cookie: $SESSION_A" "https://$TARGET/api/profile" -w '\n[%{http_code}]')
181
+ echo "AFTER pw-change: $AFTER"
182
+ ```
183
+ **Decision + FP discipline:**
184
+ - Finding is confirmed only if `AFTER` returns 200 **and** the body still carries the account's unique data (body-diff vs `BEFORE`). A bare 200 on a public/SPA route is not proof.
185
+ - Run the **garbage-cookie negative control** again to prove the endpoint is session-gated.
186
+ - Repeat the identical flow for **email-change** (`/settings/email`) and for **logout-all-devices** — apps frequently invalidate the *acting* session (B) but not *sibling* sessions (A). That sibling-survival is the exact persistent-ATO primitive `hunt-ato` chains.
187
+ - **Severity gate:** if the change-password endpoint also lacks a current-password / MFA step-up (per `hunt-mfa-bypass`), A can pivot from read-only to full takeover → escalate.
188
+
189
+ ### Phase 4 — Cookie Attribute Analysis
190
+ ```bash
191
+ curl -sI -L "https://$TARGET/" | grep -i '^set-cookie'
192
+ ```
193
+ - **HttpOnly** missing → cookie reachable via `document.cookie`. Only a finding **chained to a real XSS/DOM sink** (`hunt-xss`/`hunt-dom`) — note it, don't report standalone as High.
194
+ - **Secure** missing → cookie sent over cleartext HTTP; pair with `hunt-tls-network` (downgrade/HSTS-gap) for a network-attacker chain.
195
+ - **SameSite** missing/`None` → CSRF reachability; `SameSite=Lax` is bypassable via sibling-subdomain top-level navigation (Argo CD **CVE-2024-22424** class) → hand to `hunt-csrf`.
196
+ - **`__Host-` / `__Secure-` prefix absent** → the session can be overwritten/fixated from a subdomain or non-secure context; its presence largely kills cookie-fixation, so flag the *absence* as the precondition for Phase 1.
197
+
198
+ ### Phase 5 — Session-ID Entropy
199
+ ```bash
200
+ # Collect a LARGE sample (200+) of freshly-issued IDs. -L is required: a 302
201
+ # /login often sets the cookie on the redirect target, not the first response.
202
+ N=200; SAMP=$(mktemp)
203
+ for i in $(seq 1 $N); do
204
+ J=$(mktemp)
205
+ curl -s -L -c "$J" "https://$TARGET/login" -o /dev/null
206
+ get_cookie "$J" | cut -d= -f2- >> "$SAMP"
207
+ rm -f "$J"
208
+ done
209
+ sort "$SAMP" | uniq -d | head # duplicates = catastrophic (re-use)
210
+ awk '{print length($0)}' "$SAMP" | sort -n | uniq -c # length distribution
211
+ ```
212
+ Then analyse, don't eyeball:
213
+ - **Sequential / monotonic** — `sort -n` the decoded values; a steady +1/+N delta = predictable.
214
+ - **Decodable structure** — `base64 -d` / hex-decode each ID and look for embedded `userId`, unix timestamps, or PIDs.
215
+ - **Bit entropy** — feed the raw bytes to `ent` or `dieharder`; NIST SP 800-63B wants ≥64 bits. 10 samples is far too few to claim anything — gather hundreds.
216
+ - **FP guard:** a long random-*looking* token is not proof of strength; only structural decode + a large-sample entropy estimate is. Conversely a short token with high per-char entropy may still be fine — measure, don't count characters.
217
+
218
+ ### Phase 6 — JWT-as-Session
219
+ ```bash
220
+ JWT="eyJ..." # captured from Authorization: Bearer or a cookie
221
+ # Decode header + payload safely (base64url padding fix).
222
+ b64url(){ local s="${1//-/+}"; s="${s//_//}"; printf '%s' "$s===" | base64 -d 2>/dev/null; }
223
+ b64url "$(cut -d. -f1 <<<"$JWT")" | jq . # header: alg, kid
224
+ b64url "$(cut -d. -f2 <<<"$JWT")" | jq . # claims: exp, iat, sub, jti
225
+ ```
226
+ - **`exp` missing or years out** → no expiry. **`jti` missing** → server cannot maintain a revocation list → logout can't truly revoke.
227
+ - **Revocation test:** logout, then replay the *same* JWT against `/api/me`. If it still returns the user → tokens are not server-revocable; this is the JWT-session persistence finding. Body-diff to avoid a cached 200.
228
+ - **Tampering (alg/kid/key-confusion) is owned by `hunt-api-misconfig`** — hand off `jwt_tool $JWT -T` / `-X a` there rather than duplicating it.
229
+
230
+ ### Phase 7 — Refresh-Token Rotation & Reuse-Detection
231
+ ```bash
232
+ # 1) Obtain a refresh token (login or /oauth/token), then rotate it once.
233
+ RT1=$(curl -s -L -X POST "https://$TARGET/api/login" \
234
+ -H 'Content-Type: application/json' \
235
+ -d '{"email":"victim@example.com","password":"OldPass!1"}' | jq -r '.refresh_token')
236
+
237
+ # 2) Use RT1 to mint a new access token — server SHOULD return a rotated RT2.
238
+ R2=$(curl -s -L -X POST "https://$TARGET/auth/refresh" \
239
+ -H 'Content-Type: application/json' -d "{\"refresh_token\":\"$RT1\"}")
240
+ RT2=$(jq -r '.refresh_token' <<<"$R2"); echo "rotated? RT1!=RT2 -> $([ "$RT1" != "$RT2" ] && echo yes || echo NO-ROTATION)"
241
+
242
+ # 3) REUSE-DETECTION test: replay the OLD RT1 again (simulating the leaked token).
243
+ REPLAY=$(curl -s -L -X POST "https://$TARGET/auth/refresh" \
244
+ -H 'Content-Type: application/json' -d "{\"refresh_token\":\"$RT1\"}" -w '\n[%{http_code}]')
245
+ echo "RT1 replay: $REPLAY"
246
+
247
+ # 4) Then confirm RT2 was KILLED by the replay (correct BCP behaviour invalidates
248
+ # the whole family). If RT2 still works after RT1 was replayed → no family-revocation.
249
+ curl -s -L -X POST "https://$TARGET/auth/refresh" \
250
+ -H 'Content-Type: application/json' -d "{\"refresh_token\":\"$RT2\"}" -w '\n[%{http_code}]'
251
+ ```
252
+ **Findings:** no rotation (RT1==RT2) = a long-lived stealable credential; rotation **without** reuse-detection (RT1 replay still mints tokens, or RT2 survives the replay) = the leaked-token-persistence bug per the OAuth Security BCP. **OOB note:** if you suspect a leaked RT via SSRF/log/JS-bundle, confirm the token's reach with `hunt-ssrf`/`hunt-source-leak`, not by guessing.
253
+
254
+ ### Phase 8 — OAuth/SSO Session Linkage & DBSC Downgrade
255
+ ```bash
256
+ # SSO linkage: after IdP callback, is the app session bound to the IdP session?
257
+ # - Log out at the IdP only; replay the app session cookie. Still 200 with user
258
+ # data → app session outlives the IdP session (single-logout gap).
259
+ # DBSC downgrade: if responses carry Sec-Session-Registration / Sec-Session-Id,
260
+ # strip the device-bound proof header and replay the plain cookie:
261
+ curl -s -L -H "Cookie: $A" "https://$TARGET/api/me" -w '\n[%{http_code}]'
262
+ # If the plain (non-bound) cookie is still accepted → device-binding is advisory,
263
+ # not enforced → a stolen cookie defeats DBSC entirely.
264
+ ```
265
+ Hand OAuth `state`/`redirect_uri`/code-injection to `hunt-oauth`; this phase only covers the *session-layer* binding.
266
+
267
+ ---
268
+
269
+ ## Chain Table
270
+
271
+ | Session finding | Chain to | Impact |
272
+ |----------------|----------|--------|
273
+ | Session fixation (forced `__Host-`-less cookie) | Trick admin/SSO user into authenticating on planted ID | Admin session takeover (Critical) |
274
+ | No logout/password-change invalidation | `hunt-xss`/`hunt-dom` cookie theft → replay surviving session | Persistent ATO past victim's reset |
275
+ | Refresh token, no reuse-detection | Leaked RT (SSRF/log/bundle) → infinite access-token minting | Persistent ATO, survives password change |
276
+ | `SameSite=Lax` only | Sibling-subdomain top-level nav (CVE-2024-22424 class) → CSRF | State change / login-CSRF → fixation |
277
+ | JWT no `exp`/`jti` | Stolen token, no server revocation | Permanent access |
278
+ | DBSC downgrade accepted | Steal plain cookie despite device-binding | Defeats the only theft mitigation |
279
+ | Predictable ID | Compute/brute another user's session | Cross-user ATO |
280
+
281
+ ---
282
+
283
+ ## Validation (house FP discipline)
284
+
285
+ Before claiming ANY session finding:
286
+ - **Two real sessions, not placeholders** — every fixation/invalidation claim uses A and B captured by the `curl` flows above.
287
+ - **Body-diff, never status-only** — a 200 means nothing without the account's unique identity marker present in the body, diffed against the authenticated baseline.
288
+ - **Negative control** — a garbage/random cookie must FAIL where your "surviving" cookie succeeds; otherwise the endpoint isn't session-gated and it's a non-finding.
289
+ - **Cache/edge check** — re-request with a cache-buster and from a second IP; rule out an edge-cached or IP-pinned 200.
290
+ - **OOB for theft chains** — when the impact depends on exfiltrating a cookie/token (XSS, SSRF, log leak), confirm receipt out-of-band (Collaborator) rather than asserting it.
291
+ - **Static-vs-state** — `HttpOnly`/`Secure`/`SameSite` absence is a *policy* observation; only report as High once paired with a real exploit primitive (XSS, network-MITM, CSRF). Standalone attribute gaps are Low/Informational.
292
+
293
+ **Severity:**
294
+ - Session fixation → admin/SSO takeover: **Critical**
295
+ - No invalidation on password/email change, or refresh-token reuse without detection: **High → Critical** (escalate if MFA/step-up also absent)
296
+ - Predictable/duplicate session ID: **High**
297
+ - No invalidation on logout: **Medium → High** (depends on theft vector)
298
+ - Missing `HttpOnly`/`SameSite` standalone: **Low/Informational** until chained
@@ -0,0 +1,153 @@
1
+ ---
2
+ name: hunt-shadow-api
3
+ description: "Hunt shadow / zombie / undocumented API surface (OWASP API9 Improper Inventory Management) — enumerate the full API version history (v1/v2/beta/legacy paths, header- and subdomain-based versioning), pull and diff every reachable OpenAPI/Swagger spec (including ones only findable via the Wayback Machine), and behaviorally diff old vs. current versions for auth/rate-limit/validation regressions rather than just response-shape differences. Distinct from hunt-api-misconfig, which owns exploitation once you have a spec or endpoint (mass assignment, JWT, OData, Swagger-chain attacks); distinct from hunt-subdomain, which owns host-level discovery. This skill owns the version-inventory and behavioral-diff workflow itself. Use when the target has versioned API paths, multiple specs, a changelog referencing deprecated endpoints, or a mobile app whose hardcoded backend calls look older than the current web app's."
4
+ sources: owasp_api_top10_2023, portswigger_research, public_research
5
+ report_count: 0
6
+ ---
7
+
8
+ ## OWASP API9 — Improper Inventory Management (Shadow / Zombie APIs)
9
+
10
+ As an API evolves, old versions and internal/staging routes routinely stay reachable without
11
+ receiving the same security fixes as the current version — because nobody tracks that they
12
+ still exist. The bug is rarely in one endpoint; it's in the **delta** between what an old
13
+ version enforces and what the current version enforces on the same operation.
14
+
15
+ ### When to use
16
+
17
+ Trigger when:
18
+ - Versioned paths are visible (`/v1/`, `/v2/`, `/api/2023-01-01/`) or `Accept`/`X-API-Version`
19
+ headers are in play.
20
+ - A changelog, release notes, or deprecation notice references removed/old API behavior.
21
+ - A mobile APK/IPA (via `apk-redteam-pipeline` / `ios-redteam-pipeline`) hardcodes endpoints
22
+ that look like an older backend version than the current web app calls.
23
+ - Multiple OpenAPI/Swagger specs are discoverable, or `info.version` in one spec implies others
24
+ exist.
25
+
26
+ DO NOT use for single-version APIs with no version history — there's nothing to diff; go
27
+ straight to `hunt-api-misconfig` for direct exploitation of the one surface that exists.
28
+
29
+ ---
30
+
31
+ ## Stage 1 — Enumerate the Full Version Surface
32
+
33
+ ```bash
34
+ # Path-based versioning
35
+ for v in v1 v2 v3 v4 beta alpha internal legacy old 2022-01-01 2023-01-01 2024-01-01; do
36
+ curl -s -o /dev/null -w "%{http_code} /api/$v/\n" "https://$TARGET/api/$v/"
37
+ done
38
+
39
+ # Header-based versioning
40
+ curl -s -H "X-API-Version: 1" https://$TARGET/api/users
41
+ curl -s -H "Accept: application/vnd.company.v1+json" https://$TARGET/api/users
42
+
43
+ # Subdomain-based versioning
44
+ for sub in api api-v1 api-v2 apiv1 apiv2 legacy-api old-api internal-api staging-api; do
45
+ curl -s -o /dev/null -w "%{http_code} $sub\n" "https://$sub.$TARGET/"
46
+ done
47
+ ```
48
+
49
+ A `200`/`401`/`403` on an old version path (anything but `404`/connection-refused) means the
50
+ version is still live and worth carrying into Stage 3, even if it demands auth.
51
+
52
+ ---
53
+
54
+ ## Stage 2 — Pull Every Reachable Spec, Not Just the Linked One
55
+
56
+ ```bash
57
+ for path in openapi.json swagger.json v1/swagger.json v2/swagger.json v3/api-docs \
58
+ api-docs.json swagger/v1/swagger.json .well-known/openapi.json; do
59
+ curl -s -o /dev/null -w "%{http_code} /$path\n" "https://$TARGET/$path"
60
+ done
61
+
62
+ # Wayback Machine — a DEPRECATED version's spec often stays indexed after the live link is removed
63
+ curl -s "http://web.archive.org/cdx/search/cdx?url=$TARGET/*swagger*&output=json&collapse=urlkey"
64
+ curl -s "http://web.archive.org/cdx/search/cdx?url=$TARGET/*openapi*&output=json&collapse=urlkey"
65
+ ```
66
+
67
+ When more than one spec resolves (a current one and an archived/old one), diff the endpoint
68
+ inventories directly:
69
+ ```bash
70
+ jq -r '.paths | keys[]' v1-swagger.json | sort > /tmp/v1_paths.txt
71
+ jq -r '.paths | keys[]' v2-swagger.json | sort > /tmp/v2_paths.txt
72
+ comm -23 /tmp/v1_paths.txt /tmp/v2_paths.txt # in v1 only — candidates for "still live but forgotten"
73
+ ```
74
+ For every path in that diff, confirm it's still reachable against the v1 base URL. A route
75
+ documented only in the old spec that still returns something other than `404` is a zombie-
76
+ endpoint candidate — carry it into Stage 3.
77
+
78
+ ---
79
+
80
+ ## Stage 3 — Behavioral Diff Between Old and Current Version
81
+
82
+ For each operation that exists in **both** versions, compare security-relevant behavior, not
83
+ response shape. Response shape differences are Informational; behavioral security regressions
84
+ are the finding.
85
+
86
+ - **Auth strength.** Does the old version accept no token, an expired token, or a lower-
87
+ privilege token that the current version rejects?
88
+ ```bash
89
+ curl -s -H "Authorization: Bearer $EXPIRED_TOKEN" https://$TARGET/api/v1/users/me -w '\n%{http_code}\n'
90
+ curl -s -H "Authorization: Bearer $EXPIRED_TOKEN" https://$TARGET/api/v2/users/me -w '\n%{http_code}\n'
91
+ ```
92
+ - **Rate limiting.** Burst the same number of requests against both versions' equivalent
93
+ endpoint; a missing `429` on the old version means rate-limiting was added later and never
94
+ backported.
95
+ - **Input validation.** Send the identical injection/oversized/malformed payload to both; the
96
+ old version accepting what the new one rejects means hardening happened forward-only —
97
+ chain into whichever injection class the payload targets (`hunt-sqli`, `hunt-idor`, etc.).
98
+ - **Field exposure.** Does the old version's response body include fields — internal IDs, other
99
+ users' data, internal notes, PII — that the current version has since redacted?
100
+
101
+ ---
102
+
103
+ ## Stage 4 — Deprecated / Internal Routes Never Referenced by the Current UI
104
+
105
+ - Grep JS bundles for API calls no visible UI flow triggers (`/internal/`, `/admin/`, `/debug/`,
106
+ `/_internal/`, `/test/`, `/staging/`) — reuse `hunt-source-leak`'s JS-bundle grep patterns for
107
+ this specifically.
108
+ - Check `robots.txt` / `sitemap.xml` for disallowed API paths — a self-inflicted disclosure.
109
+ - Mobile-app endpoint inventories (via `apk-redteam-pipeline` / `ios-redteam-pipeline`) very
110
+ often reference an older backend version than the current web app calls. Treat every
111
+ APK/IPA-sourced endpoint as a version-diff candidate against the live web API.
112
+
113
+ ---
114
+
115
+ ## False-Positive Gate
116
+
117
+ - A version difference alone (different response shape, cosmetic field renaming) is
118
+ Informational. The finding is a **security-relevant regression** — auth, rate-limit, or
119
+ validation that got weaker going backward in version history.
120
+ - Confirm the old endpoint is not simply an alias/proxy to the current implementation before
121
+ claiming a behavioral difference — send a payload that would actually behave differently
122
+ under old vs. new logic, not just compare a version string in the response body.
123
+ - A `200` on a path that just serves a static "this API version is deprecated, use v2" message
124
+ is not a finding — confirm the underlying operation still executes.
125
+
126
+ ---
127
+
128
+ ## Severity Table
129
+
130
+ | Finding | Severity |
131
+ |---|---|
132
+ | Old version bypasses auth entirely where current version requires it | Critical |
133
+ | Old version missing rate-limit present on current version | Medium–High (chain via `hunt-brute-force`) |
134
+ | Old version leaks extra fields (PII, internal IDs) vs. current | Medium–High |
135
+ | Old version accepts payloads the current version now validates/sanitizes | High (chain to the underlying injection class) |
136
+ | Version is reachable but behaviorally identical to current | Informational |
137
+
138
+ ---
139
+
140
+ ## Related Skills & Chains
141
+
142
+ - **`hunt-api-misconfig`** — owns exploitation once a spec or endpoint is in hand (mass
143
+ assignment, JWT attacks, OData, Swagger-chain attacks). This skill hands it a sharper target:
144
+ "here's a zombie endpoint with weaker validation than the current one."
145
+ - **`hunt-subdomain`** — owns host/subdomain-level discovery (`api-v1.target.com` as its own
146
+ host, potential takeover). This skill owns what happens once you're inside a given host's
147
+ version surface.
148
+ - **`hunt-source-leak`** — JS-bundle grep for internal/undocumented calls; reused here
149
+ specifically for version-diffing rather than secret extraction.
150
+ - **`apk-redteam-pipeline`** / **`ios-redteam-pipeline`** — mobile builds routinely hardcode an
151
+ older API version; every mobile-sourced endpoint is a version-diff candidate.
152
+ - **`hunt-brute-force`** — a rate-limit regression found here is only a complete finding once
153
+ chained to actual brute-forceable impact (login, OTP, enumeration).