hunt-http-smuggling
ما الذي تفعله
تفحص هذه المهارة هجمات تهريب طلبات HTTP، حيث يختلف الوكيل والخادم على مكان انتهاء الطلب الواحد. وهي للاختبار المصرّح به للمواقع الواقعة خلف وكلاء أو شبكات توصيل محتوى.
متى تستخدمها
- ✓عندما يستخدم الموقع موازن حمل أو شبكة توصيل محتوى أمام خوادم الويب.
- ✓عندما يعالج الوكيل ترويسات Content-Length وTransfer-Encoding وتريد فحصها.
- ✓عندما تريد معرفة ما إذا كانت نسخة الوكيل معرضة للخطر على الأرجح.
رابط المهارة
https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-http-smuggling/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“موقعنا يعمل خلف موازن حمل. هل يمكنك فحصه بحثًا عن تهريب الطلبات في اختبارنا المصرّح به؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يحدد الوكيل أولًا الوكيل الأمامي، لأن كثيرًا من الوكلاء الحديثة تمنع هذه الحيل. ثم يرسل أزواجًا من الطلبات بتوقيت دقيق، ويتحقق مما إذا كان الطلب الثاني يتأثر.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
17. HTTP REQUEST SMUGGLING
Lowest dup rate. $5K–$30K. PortSwigger research by James Kettle.
CL.TE (Content-Length front, Transfer-Encoding back)
POST / HTTP/1.1
Content-Length: 13
Transfer-Encoding: chunked
0
SMUGGLED
Detection
1. Burp extension: HTTP Request Smuggler
2. Right-click request → Extensions → HTTP Request Smuggler → Smuggle probe
3. Manual timing: CL.TE probe + ~10s delay = backend waiting for rest of body
Impact Chain
Poison next request → access admin as victim
Steal credentials → capture victim's session
Cache poisoning → stored XSS at scale
Target-Suitability Matrix (2026 reality check)
The classic CL.TE / TE.CL payloads are NOT universally exploitable in 2026. Modern proxies are RFC 9112 strict by default. Fingerprint the front-end BEFORE investing time.
| Front-end | CL.TE | TE.CL | H2.CL | H2.TE | Notes |
|---|---|---|---|---|---|
| Nginx ≥ 1.21 | NO | NO | partial (H2 ingress) | partial | RFC-strict; rejects CL+TE with HTTP 400. Verified locally on Nginx 1.27 — all 9 documented variants killed by front-end (docs/verification/phase2h-smuggling-cachepoison.md). |
| Caddy 2.x | NO | NO | — | — | Hardened by default |
| Envoy ≥ 1.20 | NO | NO | partial | partial | Hardened in most paths |
| HAProxy ≤ 2.4 | ✓ | ✓ | — | — | Vulnerable, see CVE-2021-40346 |
| AWS ALB + specific upstream | partial | partial | ✓ | ✓ | Several disclosed-paid reports 2022-2024 |
| Cloudflare → S3 / Lambda chains | — | — | ✓ | ✓ | H2-downgrade attacks remain viable |
| Older F5 BIG-IP (TMM < 16) | ✓ | — | — | — | Vendor advisories |
| Citrix ADC / NetScaler (older firmware) | ✓ | ✓ | — | — | Disclosed in 2020-2022 |
| Squid 3.x | ✓ | — | — | — | Older deployments |
| Apache Traffic Server (older) | ✓ | ✓ | ✓ | ✓ | PortSwigger research |
| Apache mod_proxy_ajp → Tomcat | — | — | — | — | Cross-protocol HTTP→AJP desync (CVE-2022-26377); smuggled request is opaque to the WAF and reaches internal AJP admin/status paths that lack the external auth controls |
| Custom Python / Go proxies | ✓ | ✓ | — | — | Frequently miss RFC enforcement |
Operator fingerprint quick-check
curl -sI https://target/ | grep -i "Server:"
nginx/1.21+,Caddy,envoy→ CL/TE classic is dead — pivot to H2.CL/H2.TE if the front-end speaks HTTP/2, or look for legacy proxies upstreamHAProxy, header points to AWS/CDN → run the full payload matrix- No Server header → assume hardened, but run a single quick
space-before-colonprobe; if it doesn't 400, dig deeper
H2.CL / H2.TE (the modern dominant vector)
H2-downgrade smuggling attacks rely on the front-end speaking HTTP/2 to the client and HTTP/1.1 to origin. The downgrade introduces CL/TE confusion because HTTP/2's frame-length headers don't survive the conversion cleanly. Most CDN+origin chains in 2024-2026 use this exact topology.
Tools that send HTTP/2 raw frames (Burp Pro's HTTP Request Smuggler extension, h2csmuggler, smuggler.py) are the right starting point against CDN-fronted targets. Avoid HTTP/1.1-only test clients (curl, raw sockets) against H2-front-ended targets — you'll send the wrong protocol entirely.
Mass credential harvesting — the "collector gadget"
The highest-impact smuggling outcome needs no per-victim interaction. Instead of blindly poisoning the queue, smuggle a request aimed at a back-end handler that echoes the full request — a search endpoint that reflects headers, or a redirect that mirrors the request line. The next victim's headers (Cookie, Authorization, X-Access-Token) get attributed to your smuggled request, and the reflecting handler returns them in a response you read. Repeated on a busy keep-alive socket, this harvests live credentials from arbitrary users at scale — and it works even through a CDN (Akamai/Cloudflare) when the CDN↔origin hop desyncs. Chains to hunt-ato.
Related Skills & Chains
hunt-cache-poison— Smuggling + cache is the canonical critical chain; one smuggled request becomes the cached response for every subsequent victim. Chain primitive: CL.TE smuggle a request whose response body contains attacker HTML/JS → front-end cache stores it under a popular URL (/,/login) → de-sync poisoning where the smuggled request becomes the cached response for the next N victims, persisting for the cache TTL.- **`hunt-a
الأسئلة الشائعة
هل هذه الهجمات ما زالت شائعة؟
تقول المهارة إن كثيرًا من الوكلاء الحديثة ترفض هذه الأنماط، لذلك توصي بتحديد الوكيل أولًا.
إلى ماذا يمكن أن يؤدي التهريب؟
تذكر المهارة الطلب التالي المسموم، وسرقة الجلسات، وتسميم ذاكرة التخزين المؤقت كأثر محتمل.
ما الأدوات المذكورة؟
تذكر المهارة إضافة HTTP Request Smuggler لـ Burp Suite كأداة للاختبار.
التفاصيل
الوصف الأصلي من المؤلف
Hunt HTTP request smuggling (CL.TE, TE.CL, H2.CL, H2.TE). Cause: front-end proxy and back-end server disagree on where one request ends and the next begins (Content-Length vs Transfer-Encoding header parsing inconsistency). CL.TE: front-end uses CL, back uses TE → smuggle by sending TE: chunked but with body that fits CL count. TE.CL: opposite. H2.CL: HTTP/2 downgrade, smuggle CL into HTTP/1.1 back-end. Detection tools: Burp HTTP Request Smuggler extension, smuggler.py, h2csmuggler. Confirm: time-delay technique (smuggled GET with 30s timeout) — if front-end returns slow on next victim request
الشعبية
- نجوم GitHub
- 5.4k
- الترتيب
- #14914
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
apk-redteam-pipeline
5.4kيساعد وكيلك على اختبار تطبيق Android بحثًا عن نقاط ضعف أمنية، من العثور على ملف APK وفك تجميعه إلى فحص الأسرار المكشوفة.
bugcrowd-reporting
5.4kيساعد وكيلك على كتابة تقارير ثغرات أفضل لمنصة Bugcrowd، باختيار الفئة الصحيحة والرد على اعتراضات خارج النطاق.
cloud-iam-deep
5.4kيساعد وكيلك على فحص ما يمكن أن تصل إليه بيانات اعتماد سحابية وُجدت على AWS أو Azure أو Google Cloud، أثناء اختبار أمني مصرّح به.
enterprise-vpn-attack
5.4kيساعد وكيلك على فحص أجهزة VPN والوصول عن بُعد من Cisco وFortinet وCitrix وغيرها بحثًا عن نقاط ضعف معروفة، أثناء اختبار مصرّح به.
مهارات مشابهة
reverse-engineer-anything
422kيساعد وكيلك على فحص التطبيقات والحزم المنشورة من الداخل ليشرح الميزات ويقارن الإصدارات ويرشد إلى إعادة البناء، باستخدام أداة REA.
1password
394kيساعد وكيلك على إعداد واجهة سطر أوامر 1Password وتسجيل الدخول، وقراءة الأسرار أو حقنها دون طباعة قيمها في المحادثة.
healthcheck
394kيساعد وكيلك على تدقيق جهاز OpenClaw أو خادمه أمنيًا، مثل SSH والجدار الناري والتحديثات، ويقترح إصلاحات آمنة قابلة للتراجع.