@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,338 +0,0 @@
1
- ---
2
- name: hunt-cache-poison
3
- description: Hunting skill for cache poison vulnerabilities. Built from 10 public bug bounty reports including X-Forwarded-Host poisoning, X-HTTP-Method-Override / GCS cache, reflected→stored XSS via cache, classic Omer-Gil Web Cache Deception, Cloudflare Cache Deception Armor bypass, session-token cache deception, Akamai hop-by-hop smuggling → server-side edge poisoning, and Kettle's 2024 path-normalization WCD against Cloudflare/Fastly/GCP. Host/X-Forwarded-Host injection that reaches app logic (reset-link poisoning, routing SSRF, OAuth issuer) is owned by hunt-host-header; this skill owns the case where the poisoned response is CACHED and served to other users. Use when hunting cache poisoning, Web Cache Deception, CDN-fronted apps.
4
- sources: github, hackerone_public, portswigger_research, omergil_research, youstin_research
5
- report_count: 8
6
- ---
7
-
8
- ## Crown Jewel Targets
9
-
10
- Cache poisoning is high-value because a single poisoned cache entry can affect thousands or millions of victims simultaneously — one request, mass exploitation. Payout scales with blast radius.
11
-
12
- **Highest-value targets:**
13
- - **CDN-served assets** (cdn.shopify.com, cloudfront distributions, Fastly/Akamai edges) — poisoning these affects every visitor globally
14
- - **E-commerce platforms** with affiliate/referral flows (Shopify, WooCommerce storefronts) — session hijack or affiliate fraud potential
15
- - **Gaming platforms with update servers** (rockstargames updates.* domains) — DoS on update delivery = widespread client breakage
16
- - **Authentication endpoints** served through caches — leads to account takeover (the highest severity variant)
17
- - **Asset CDNs** (JS/CSS delivery) — XSS payload delivery at scale
18
- - **SaaS multi-tenant platforms** — one poisoned response bleeds into all tenants sharing a cache key
19
-
20
- **Asset types that pay most:** CDN hostnames, subdomain-per-tenant patterns, update/download servers, login/account pages cached incorrectly, affiliate link shorteners.
21
-
22
- ---
23
-
24
- ## Autonomous Testing Priority
25
-
26
- **Two distinct attacks live under this skill — target the simpler one first.**
27
-
28
- **Attack 1 — Password Reset Poisoning (Host header injection):**
29
-
30
- The app uses the `Host` header to construct the password reset link in the email. Inject an attacker-controlled hostname; the victim's reset email contains a link to your server.
31
-
32
- ```
33
- POST /forgot-password
34
- Host: attacker.com
35
- X-Forwarded-Host: attacker.com
36
- X-Host: attacker.com
37
-
38
- email=victim@target.com
39
- Content-Type: application/x-www-form-urlencoded
40
- ```
41
-
42
- Use a distinctive hostname you control or can identify in the response. **Proof:** the injected hostname appears in the response body (some apps reflect the generated reset link), or the action succeeds (2xx with a "reset email sent" message) after injection — confirming the poisoned link would be sent to the victim.
43
-
44
- Try multiple host headers — apps vary in which one they trust (`X-Forwarded-Host` is most common, but `Host` itself also works when the proxy passes it through).
45
-
46
- **Attack 2 — Web Cache Poisoning:**
47
-
48
- Inject the attacker-controlled hostname into `X-Forwarded-Host` on a GET request for a cacheable page. If the hostname is reflected in the response body AND the response gets cached, subsequent visitors receive the poisoned response.
49
-
50
- Check for cache signals in the response: `X-Cache: HIT`, `CF-Cache-Status: HIT`, `Age: <nonzero>`, or `Via: cloudfront/varnish/fastly`.
51
-
52
- **Proof for both:** injected value reflected in response body, or action completed successfully despite the manipulated header.
53
-
54
- ---
55
-
56
- ## Attack Surface Signals
57
-
58
- **URL patterns to look for:**
59
- - `cdn.`, `assets.`, `static.`, `updates.`, `downloads.` subdomains
60
- - URL path structures with extensions that look static: `/path/to/page.css`, `/account.php/nonexistent.jpg`
61
- - Affiliate/link shortener endpoints: `/link/`, `/go/`, `/ref/`, `/out/`
62
- - Paths that mix dynamic content with cacheable-looking URLs
63
-
64
- **Response headers that signal a cache:**
65
- ```
66
- X-Cache: HIT / MISS
67
- X-Cache-Status: HIT
68
- CF-Cache-Status: HIT / MISS (Cloudflare)
69
- Age: <nonzero>
70
- Via: 1.1 varnish / cloudfront / fastly
71
- Cache-Control: public, max-age=...
72
- Surrogate-Control: max-age=...
73
- X-Served-By: cache-...
74
- ```
75
-
76
- **JS/tech stack signals:**
77
- - Fastly, Varnish, Cloudfront, Akamai, Nginx proxy_cache in response headers
78
- - Shopify/Linkpop stacks with third-party integrations
79
- - Platforms using path-based routing without normalizing trailing segments
80
- - Servers that reflect unvalidated headers into responses (Host, X-Forwarded-Host, X-Original-URL)
81
-
82
- **Dangerous header candidates (unkeyed inputs):**
83
- ```
84
- X-Forwarded-Host
85
- X-Host
86
- X-Forwarded-Scheme
87
- X-Original-URL
88
- X-Rewrite-URL
89
- Forwarded
90
- X-HTTP-Method-Override
91
- ```
92
-
93
- ---
94
-
95
- ## Step-by-Step Hunting Methodology
96
-
97
- 1. **Map cache infrastructure.** Send a GET to the target and inspect response headers. Identify the caching layer (Cloudflare, Fastly, Varnish, Nginx). Note `Age`, `X-Cache`, `CF-Cache-Status` headers.
98
-
99
- 2. **Identify cache key components.** Send two identical requests — if `Age` increments, the response is cached. Vary headers one-by-one (e.g., add `X-Forwarded-Host`) to determine which headers are NOT included in the cache key (unkeyed).
100
-
101
- 3. **Test unkeyed header reflection.** Add `X-Forwarded-Host: evil.com` and check if the value appears in the response body (redirects, canonical links, CSP headers, JS src attributes, meta tags). Append a unique cache-busting query parameter (e.g. `?cb=<random>`) so the probe lands on a cache MISS under a throwaway key — this verifies reflection without prematurely storing a live poison entry under the real, victim-shared cache key. (Param Miner's "Guess headers" mode is the canonical Burp tool for discovering these unkeyed headers/parameters automatically.)
102
-
103
- 4. **Test URL path manipulation (Web Cache Deception).** Append fake static extensions to dynamic endpoints:
104
- - `GET /account/profile.css`
105
- - `GET /dashboard/settings.jpg`
106
- - `GET /affiliate-link/target.js`
107
- Check if the server returns dynamic content AND the cache stores it.
108
-
109
- 5. **Test for DoS via cache poisoning.** Send a request with a header that causes a 4xx/5xx error and check if that error response gets cached:
110
- - Malformed `Host` header
111
- - `X-Forwarded-Host` pointing to an invalid host
112
- - Oversized headers that trigger backend errors
113
-
114
- 6. **Confirm unkeyed parameter poisoning.** Try query parameter fatigue or HTTP parameter pollution:
115
- - `GET /page?utm_source="><script>alert(1)</script>`
116
- Check if the param is reflected and cached for clean requests to `/page`.
117
-
118
- 7. **Validate cache storage.** After sending a potentially poisoned request, immediately request the same URL WITHOUT the malicious header from a different IP or incognito session. If you receive the poisoned response — it's confirmed.
119
-
120
- 8. **Measure cache TTL.** Check `Cache-Control: max-age` and `Age` to understand how long the poison persists and whether it's exploitable before expiry.
121
-
122
- 9. **Check affiliate/link flows specifically.** For platforms like Linkpop, test whether the referrer/product URL is embedded in a cacheable response that another user will receive.
123
-
124
- 10. **Document blast radius.** Determine: global CDN edge (worldwide), regional cache, or single-server cache. This directly affects severity rating.
125
-
126
- ---
127
-
128
- ## Payload & Detection Patterns
129
-
130
- **Confirm caching behavior:**
131
- ```bash
132
- # Send twice, compare Age header
133
- curl -s -I "https://target.com/page" | grep -i "age\|x-cache\|cf-cache"
134
- curl -s -I "https://target.com/page" | grep -i "age\|x-cache\|cf-cache"
135
- ```
136
-
137
- **Test unkeyed X-Forwarded-Host:**
138
- ```bash
139
- curl -s -H "X-Forwarded-Host: evil.attacker.com" \
140
- "https://target.com/page" | grep -i "evil.attacker.com"
141
- ```
142
-
143
- **Test Web Cache Deception (path appending):**
144
- ```bash
145
- # Authenticated session cookie required
146
- curl -s -b "session=YOUR_SESSION" \
147
- "https://target.com/account/profile.css"
148
-
149
- # Then fetch without auth from another client
150
- curl -s "https://target.com/account/profile.css"
151
- ```
152
-
153
- **Force cache miss to test poison without hitting cached version:**
154
- ```bash
155
- # Use a unique cache-busting query param to land on a fresh key — do NOT rely on
156
- # client-sent "Cache-Control: no-cache" (per RFC 7234 it requests revalidation, not
157
- # skip-storage, and Cloudflare/Fastly/Akamai generally ignore it on cacheable assets).
158
- curl -s -H "X-Forwarded-Host: canary.attacker.com" \
159
- "https://target.com/page?cb=$RANDOM"
160
- ```
161
-
162
- **DoS via poisoned error response:**
163
- ```bash
164
- curl -s -H "X-Forwarded-Host: aaaaaaaaaaa.invalid" \
165
- "https://target.com/js/app.js" -I
166
- # Check if next clean request returns error
167
- curl -s -I "https://target.com/js/app.js" | grep "HTTP/"
168
- ```
169
-
170
- **Grep patterns in Burp/ZAP response history:**
171
- ```
172
- # Headers indicating cache hit
173
- X-Cache: HIT
174
- CF-Cache-Status: HIT
175
- Age: [1-9]
176
-
177
- # Reflected unkeyed input in body
178
- evil\.attacker\.com
179
- canary\d+\.
180
-
181
- # Web cache deception indicators
182
- Content-Type: text/css (but response is HTML/JSON)
183
- Cache-Control: public.*max-age (on authenticated endpoint)
184
- ```
185
-
186
- **Parameter pollution test:**
187
- ```bash
188
- curl -s "https://target.com/page?cb=1&param=CANARY_VALUE" | grep CANARY_VALUE
189
- # Then check if clean request returns poisoned version
190
- curl -s "https://target.com/page?cb=1"
191
- ```
192
-
193
- **Burp Suite Intruder wordlist for unkeyed headers:**
194
- ```
195
- X-Forwarded-Host
196
- X-Host
197
- X-Forwarded-Server
198
- X-HTTP-Host-Override
199
- Forwarded
200
- X-Original-URL
201
- X-Rewrite-URL
202
- X-Forwarded-Scheme
203
- X-Forwarded-Proto
204
- True-Client-IP
205
- ```
206
-
207
- ---
208
-
209
- ### Origin header → ACAO cache poisoning
210
- Add `Origin` to the unkeyed-header set. Test whether it is reflected into `Access-Control-Allow-Origin` and then cached: `curl -H "Origin: evil.example" URL -I` on two consecutive hits. A cached attacker/`*` ACAO breaks CORS for legit users (cache-DoS); a cached permissive ACAO enables cross-user data reads. Disclosed: reports/591302.
211
-
212
- ## Common Root Causes
213
-
214
- 1. **CDN misconfiguration — caching based on URL path only.** Engineers configure cache rules like "cache everything matching `*.js`" without realizing the path can be appended to dynamic routes. The origin server ignores the extra path segments, but the CDN uses them as cache keys.
215
-
216
- 2. **Unkeyed header forwarding.** Developers configure reverse proxies to forward `X-Forwarded-Host` to backends for URL generation (canonical links, redirects, password reset emails) without including it in the cache key. The CDN caches the poisoned response.
217
-
218
- 3. **Web Cache Deception via permissive routing.** Frameworks that normalize URLs (e.g., Rails, Express) accept `/account/settings.css` and serve the same response as `/account/settings`. The CDN sees a `.css` extension and applies aggressive caching rules.
219
-
220
- 4. **Shared caching of multi-tenant responses.** SaaS platforms that use a single CDN without tenant isolation in the cache key allow cross-tenant cache poisoning.
221
-
222
- 5. **Error responses cached without thought.** Backend errors (404, 500) triggered by attacker-controlled input get cached, causing DoS for legitimate users. Developers implement caching without excluding error status codes.
223
-
224
- 6. **Lazy `Vary` header implementation.** Developers know they should add `Vary: X-Forwarded-Host` but forget, or CDNs strip/ignore `Vary` headers entirely (Cloudflare historically strips Vary on some asset types).
225
-
226
- 7. **Third-party integrations with URL reflection.** Affiliate/link tracking systems (like Shopify Linkpop) reflect the destination URL in metadata, canonical tags, or redirects — and these get cached globally.
227
-
228
- ---
229
-
230
- ## Bypass Techniques
231
-
232
- **Defense: WAF blocking known poison headers**
233
- - Bypass: Use less-common header variants: `X-Host`, `X-Forwarded-Server`, `X-HTTP-Host-Override`, `Forwarded: host=evil.com`, `X-Original-URL`
234
- - Bypass: Header value encoding: `X-Forwarded-Host: evil%2ecom`
235
- - Bypass: Case variation: `x-forwarded-host`, `X-FORWARDED-HOST`
236
-
237
- **Defense: Stripping attacker-supplied headers at edge**
238
- - Bypass: Use HTTP/2 pseudo-header manipulation if the proxy downgrades to HTTP/1.1
239
- - Bypass: Inject via HTTP Request Smuggling — smuggle a request with poison headers past the WAF to hit the cache server directly
240
-
241
- **Defense: Require authentication before caching**
242
- - Bypass: Web Cache Deception — trick the cache into storing authenticated content by appending `.css`/`.js` to the URL, which matches a cache rule that ignores auth
243
-
244
- **Defense: Cache key includes full URL with query string**
245
- - Bypass: HTTP Parameter Pollution — some parsers take the first occurrence, caches key on full string; inject `?legit=1&param=evil` and cache stores it under `?legit=1&param=evil` but victim visits `?legit=1`
246
- - Bypass: Fat GET request — send body parameters that the backend processes but the cache ignores
247
-
248
- **Defense: Short TTL / rapid cache purging**
249
- - Bypass: Automate re-poisoning; send the poison request in a loop just ahead of TTL expiry
250
- - Bypass: Target CDN nodes with longer default TTLs by routing requests through specific PoPs
251
-
252
- **Defense: `Cache-Control: private` on sensitive endpoints**
253
- - Bypass: Check if CDN respects this header (some CDNs ignore it if an admin has overridden cache rules globally)
254
- - Bypass: Find adjacent cacheable endpoints that reflect the same sensitive data
255
-
256
- ---
257
-
258
- ## Gate 0 Validation
259
-
260
- 1. **What can the attacker DO right now?**
261
- The attacker must be able to poison a cache entry and then demonstrate that a *separate, unauthenticated request* from a different client/IP receives the poisoned response — not just their own browser. If only the attacker sees the effect, it's not cache poisoning.
262
-
263
- 2. **What does the victim LOSE?**
264
- Must be one of: (a) session/account compromise via reflected credentials in poisoned response, (b) execution of attacker-controlled JS via poisoned asset, (c) service denial where legitimate requests return error responses, or (d) sensitive data disclosure (account details cached and served to other users). "Weird response headers" alone is not impact.
265
-
266
- 3. **Can it be reproduced in 10 minutes from scratch?**
267
- You must be able to: send the poisoning request → wait for cache store → fetch the URL from incognito/different IP → observe poisoned response. If you can't demonstrate this clean reproduction with a second client, the cache may not actually be storing the poison and the report isn't ready.
268
-
269
- ---
270
-
271
- ## Real Impact Examples
272
-
273
- **Scenario 1 — Mass DoS on CDN Asset Delivery (Shopify CDN)**
274
- An attacker identified that CDN-served JavaScript assets on `cdn.shopify.com` could be poisoned by sending a request with a crafted header that caused the origin to return a 4xx error. The CDN cached this error response. Any merchant storefront loading that asset then received the cached error instead of the valid JS file — breaking checkout flows and storefront functionality across all stores sharing that CDN path. One HTTP request, global merchant impact, persisting until cache TTL expired.
275
-
276
- **Scenario 2 — Account Takeover via Web Cache Deception**
277
- On a platform serving authenticated account pages, an attacker crafted a URL like `/account/profile/photo.jpg` and sent it to a victim (via phishing link). When the victim (authenticated) visited the URL, the server responded with their full account profile page (name, email, session tokens). Because the URL ended in `.jpg`, the CDN cached the authenticated response publicly. The attacker then fetched `/account/profile/photo.jpg` without authentication and received the victim's account data — enabling full account takeover. Impact was amplified because the cache served the same response to any subsequent requester.
278
-
279
- **Scenario 3 — Affiliate Link Hijacking via URL Path Manipulation (Shopify Linkpop)**
280
- An attacker discovered that the Linkpop affiliate link service would cache responses based on URL path but reflected a manipulated product destination URL in the cached HTML. By visiting a specially crafted path before legitimate users, the attacker poisoned the cache to redirect affiliate clicks to an attacker-controlled domain instead of the legitimate Amazon product. Victims clicking what appeared to be valid merchant links were sent to attacker infrastructure, enabling credential phishing and loss of affiliate commission revenue for the legitimate merchant.
281
-
282
- ---
283
-
284
- ## Disclosed Report Citations (2017-2024)
285
-
286
- The following real, verified bug-bounty / coordinated-disclosure cases extend this skill. Spans the two major families: cache **poisoning** (attacker influences a cached response served to victims) and cache **deception** (attacker tricks the cache into storing a victim's private response).
287
-
288
- 1. **Shopify — Cache poisoning via X-Forwarded-Host** ([H1 #977851](https://hackerone.com/reports/977851))
289
- - Subclass: X-Forwarded-Host header poisoning (unkeyed input → redirect/script-src corruption)
290
- - Payload: `GET /any-path` with `X-Forwarded-Host: attacker.com` — single request persisted attacker host in cached response across `apps.shopify.com` and localized subdomains
291
- - Root cause: X-Forwarded-Host influenced asset/redirect URL generation but was NOT part of the cache key
292
- - Year: 2020 — **$1,300 → escalated to $6,300** (one-shot poison, multi-host blast radius)
293
-
294
- 2. **HackerOne — Cache poisoning DoS via X-Forwarded-Port** ([H1 #409370](https://hackerone.com/reports/409370))
295
- - Subclass: X-Forwarded-Host / X-Forwarded-Port DoS (poisoned redirect to invalid port)
296
- - Payload: `GET /<redirect-path>` with `X-Forwarded-Port: 1` — cached 301 redirect pointed legitimate users at port 1, breaking access
297
- - Root cause: trusted X-Forwarded-* headers in 301 redirect generation; cache stored the bad Location
298
- - Year: 2018 — **$2,500** (foundational H1-on-H1 case)
299
-
300
- 3. **GitLab — Cache poisoning DoS via X-HTTP-Method-Override** ([H1 #1160407](https://hackerone.com/reports/1160407))
301
- - Subclass: method-cloaking / GCS cache-key bleed (HEAD response stored under GET key)
302
- - Payload: `GET /assets/webpack/*.js` with `X-HTTP-Method-Override: HEAD` — GCS backend honored the override and returned an empty body; CDN cached it as the canonical GET response
303
- - Root cause: CDN cache not method-aware; HEAD body (empty) overwrote GET entry for cached static assets
304
- - Year: 2021 — **$2,500** (DoS normally OOS, paid for novelty)
305
-
306
- 4. **PayPal — Web Cache Deception (Omer Gil original)** ([Blog](https://omergil.blogspot.com/2017/02/web-cache-deception-attack.html))
307
- - Subclass: classic WCD via `.css`/`.jpg`/etc. path appending on authenticated routes
308
- - Payload: `GET https://www.paypal.com/myaccount/home/foo.css` — origin served full authenticated account page; CDN cached it as "static .css" for ~5 hours
309
- - Root cause: origin routed unknown path suffixes to the parent dynamic handler; CDN cached based purely on the static-looking file extension
310
- - Year: 2017 — **$3,000** (PortSwigger Top-10 Web Hacking Technique of 2017, #2)
311
-
312
- 5. **Cloudflare PBB — Cache Deception Armor bypass via `.avif`** ([H1 #1391635](https://hackerone.com/reports/1391635))
313
- - Subclass: CDN-specific allowlist bypass (Cloudflare's WCD protection feature) using an obscure image extension
314
- - Payload: `GET https://<protected-origin>/account/me.avif` — Cloudflare's Cache Deception Armor extension list omitted `.avif`, so the authenticated HTML response was cached
315
- - Root cause: Cache Deception Armor used a static, incomplete extension allowlist that did not cover modern image MIME types
316
- - Year: 2022 — Cloudflare PBB bounty (amount undisclosed)
317
-
318
- 6. **Akamai (PayPal/Airbnb/Goldman Sachs) — Hop-by-hop header smuggling → server-side edge poisoning** ([Tediosi & Mariani writeup](https://medium.com/@jacopotediosi/worldwide-server-side-cache-poisoning-on-all-akamai-edge-nodes-50k-bounty-earned-f97d80f3922b))
319
- - Subclass: CDN-specific request-smuggling that lands attacker responses in Akamai's edge cache for nearby IPs
320
- - Payload: `Connection: Content-Length` + crafted request — Akamai's first proxy stripped Content-Length as hop-by-hop, second proxy treated body as a second request whose response was cached at the edge
321
- - Root cause: inconsistent handling of hop-by-hop headers across Akamai proxy tiers caused desync; smuggled responses were server-side cached globally
322
- - Year: 2022 — **>$50K total** across affected programs (PayPal $25,200 + Airbnb $14,875 + Goldman Sachs $100), PortSwigger Top-10 Web Hacking Techniques 2022 nominee
323
-
324
- 7. **James Kettle (PortSwigger) — "Gotta cache 'em all": path-normalization & WCD against Cloudflare/Fastly/GCP** ([PortSwigger Research](https://portswigger.net/research/gotta-cache-em-all))
325
- - Subclass: cache-key path normalization discrepancies and Web Cache Deception across major CDNs (Cloudflare, Fastly, GCP/Google Cloud) — the 2024 research named in this skill's description
326
- - Payload: origin-vs-cache delimiter/normalization disagreements (e.g. encoded path segments and static-suffix tricks) that cause the cache to store a dynamic/authenticated response under a static-looking key
327
- - Root cause: cache and origin disagree on how to normalize/parse the URL path, so the cache key does not match the resource the origin actually served
328
- - Year: 2024 — coordinated CDN-vendor disclosure; methodology research (no single bounty), PortSwigger Top-10 Web Hacking Techniques 2024 entry
329
-
330
- ---
331
-
332
- ## Related Skills & Chains
333
-
334
- - **`hunt-xss`** — Cache poisoning is the multiplier that turns reflected XSS (low-severity self-inflicted) into stored XSS across every CDN-edge visitor. Chain primitive: `X-Forwarded-Host: attacker.com` poisons cached script src → cached response now contains `<script src="//attacker.com/x.js">` → every visitor to that CDN edge executes attacker JS, persistent for the full Cache-Control max-age.
335
- - **`hunt-http-smuggling`** — Smuggling bypasses front-end cache-key normalization and WAF stripping of poison headers, hitting the cache server directly. Chain primitive: CL.TE smuggle delivers `X-Forwarded-Host: attacker.com` to the cache backend past the WAF that stripped it at the edge → poisoned entry stored under the victim's normal URL → de-sync poisoning where the smuggled request becomes the cached response for the next victim.
336
- - **`hunt-auth-bypass`** — Web Cache Deception turns authenticated pages into publicly-cached responses, leaking session-bound content to unauthenticated attackers. Chain primitive: `/account/profile.css` served as authenticated HTML, cached as static asset → attacker fetches same URL without auth and reads victim's email/tokens → session cookies in body → full ATO.
337
- - **`security-arsenal`** — Reach for the unkeyed-header wordlist (`X-Forwarded-Host`, `X-Host`, `X-Forwarded-Server`, `X-HTTP-Host-Override`, `Forwarded`, `X-Original-URL`) and the WCD path-extension list (`.css`, `.js`, `.jpg`, `.ico`, `;.css`, `%2e%2ecss`) before hand-fuzzing.
338
- - **`triage-validation`** — Run the Pre-Severity Gate before claiming Critical: the poisoned response MUST be reproducible from a separate IP/incognito without your poison headers. If only your own browser sees the effect, it's a self-cache and N/A.
@@ -1,92 +0,0 @@
1
- ---
2
- name: hunt-captcha-bypass
3
- description: "Hunt CAPTCHA Bypass — 6 distinct patterns: (1) CAPTCHA field simply omitted from the request (server-side validation absent), (2) CAPTCHA token replayed from a solved challenge (no single-use enforcement), (3) CAPTCHA response accepted on a different endpoint than it was solved on (no binding to action/session), (4) static or predictable CAPTCHA values accepted (e.g. '0', 'null', empty string), (5) audio/accessibility CAPTCHA trivially solvable programmatically, (6) CAPTCHA only enforced after N failures (first N requests bypass it). Detection: intercept a successful form submission, remove the CAPTCHA field entirely, replay — if it still succeeds, server-side validation is absent. Medium severity standalone; High when it removes the only rate-limit gate protecting a login, registration, or payment endpoint."
4
- sources: public_research, operator_experience
5
- report_count: 6
6
- ---
7
-
8
- ## Autonomous Testing Priority
9
-
10
- **The fastest test: just omit the CAPTCHA field entirely. Most CAPTCHA bypass bugs are client-side-only validation.**
11
-
12
- **Pattern 1 — Omit the CAPTCHA field (most common, most automatable):**
13
- 1. GET the form/endpoint that shows a CAPTCHA to understand its field name (usually `g-recaptcha-response`, `captcha`, `captcha_token`, `captcha_answer`, `h-captcha-response`)
14
- 2. POST the form with ALL fields EXCEPT the CAPTCHA field
15
- 3. If the action succeeds (200, redirect, or "success" message) → no server-side CAPTCHA validation
16
- 4. Proof: the state-changing action completes without a valid CAPTCHA field (compare against a baseline request that includes it)
17
-
18
- **Pattern 2 — Empty or null CAPTCHA value:**
19
- Instead of omitting the field entirely, include it with an empty string, `null`, `0`, or `undefined`:
20
- ```
21
- captcha=&email=test@example.com&password=test123
22
- ```
23
- Some apps validate field presence but not content.
24
-
25
- **Pattern 3 — Replay a previously solved CAPTCHA token:**
26
- 1. Complete one legitimate CAPTCHA challenge and capture the `g-recaptcha-response` token
27
- 2. Submit a second request immediately with the SAME token value
28
- 3. If the second submission also succeeds → token is not single-use (replay attack)
29
- 4. A replayed token can be shared across automated requests
30
-
31
- **Pattern 4 — Test without CAPTCHA on similar endpoints:**
32
- Some apps add CAPTCHA to the registration form but forget the password reset, API endpoint, or mobile API path (`/api/register` vs `/register`). Try the same action via the API path without any CAPTCHA field.
33
-
34
- **Pattern 5 — Rate/throughput-gated "prove you're automated" challenges:**
35
- Some apps define CAPTCHA "bypass" as simply exceeding the rate a human could plausibly sustain —
36
- e.g. "N submissions within T seconds" — checked by a middleware that counts REQUESTS REACHING the
37
- route, not successful outcomes. Garbage/placeholder payloads satisfy this exactly as well as valid
38
- ones, since the counter increments regardless of whether the request's own validation passes.
39
-
40
- **Timing note (sliding-window counters):** don't solve this one request at a time — a sequential
41
- pace (seconds between each request) structurally cannot land N requests inside a short sliding
42
- window, and issuing more requests serially does not fix it. A typical failing pattern is 12
43
- requests spread across ~250 seconds when the check requires ~10 requests within 20 seconds.
44
- Instead fire the requests **concurrently** (e.g. `"concurrency": N` on a single request call, or
45
- any parallel-request primitive your tooling offers, with N >= the required count) so they arrive
46
- simultaneously and satisfy the sliding window trivially. Check the endpoint's own
47
- required-field validation first (e.g. a `rating` field that can't be null) so the concurrent
48
- payload is at least well-formed enough to reach the counting middleware, even if other fields
49
- (like the CAPTCHA answer itself) are wrong or reused.
50
-
51
- **What to skip in automated testing:** Solving real reCAPTCHA/hCaptcha programmatically (OCR, audio bypass) requires external services. Only attempt if patterns 1-4 fail and the test budget allows.
52
-
53
- **Proof:** Any successful state-changing action (account created, login succeeded, form submitted) that completed without a valid CAPTCHA token confirms the bypass.
54
-
55
- ---
56
-
57
- ## Vulnerability Classes in This Skill
58
-
59
- ### 1. Client-Side-Only CAPTCHA Validation
60
- JavaScript hides/disables the submit button until CAPTCHA is solved, but the server never checks the CAPTCHA token. Direct API calls bypass the UI gate entirely.
61
-
62
- ### 2. CAPTCHA Not Tied to Session or Action
63
- A token solved for login is accepted on the registration endpoint (or any other). The server validates "is this a real CAPTCHA solution?" but not "is this the right solution for THIS action?".
64
-
65
- ### 3. Single-Use Not Enforced
66
- CAPTCHA tokens (especially reCAPTCHA v2) are meant to be consumed after one use. If the server doesn't revoke them after verification, a single human-solved token becomes reusable for many requests.
67
-
68
- ### 4. CAPTCHA Added Reactively (Only After N Failures)
69
- Some apps only show CAPTCHA after 3-5 failed login attempts. Before that threshold, no CAPTCHA is required → an attacker can make N-1 attempts per account indefinitely by resetting state between attempts.
70
-
71
- ### 5. Static or Predictable CAPTCHA
72
- Math CAPTCHAs (`3 + 4 = ?`), simple image CAPTCHAs, or text CAPTCHAs with a finite answer set can be automated. These are custom CAPTCHA implementations, not Google/hCaptcha.
73
-
74
- ---
75
-
76
- ## Impact Chain
77
-
78
- CAPTCHA bypass alone: **Medium** (enables automation of rate-limited actions)
79
-
80
- CAPTCHA bypass + login endpoint = **brute force gate removed** → chain with `hunt-brute-force` → High/Critical
81
-
82
- CAPTCHA bypass + registration endpoint = **account farming** → abuse, spam, resource exhaustion
83
-
84
- CAPTCHA bypass + password reset = **token flooding** → chain with `hunt-forgot-password`
85
-
86
- ---
87
-
88
- ## Related Skills
89
-
90
- - **`hunt-brute-force`** — CAPTCHA is often the only rate-limit gate; bypass unlocks brute force
91
- - **`hunt-forgot-password`** — reset endpoints sometimes protected by CAPTCHA only
92
- - **`hunt-race-condition`** — race the CAPTCHA validation window (submit before the token is revoked)