Skip to main content

pentest-http-smuggling

HTTP request smuggling, desync attacks, cache poisoning, and protocol-level vulnerability testing.

소스 정보

저장소
jd-opensource/JoySafeter
최근 소스 활동
2026년 2월 11일 09:17
감지된 SKILL.md 언어
영어
스타
313
포크
57

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
3 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
pentest-http-smuggling
description
HTTP request smuggling, desync attacks, cache poisoning, and protocol-level vulnerability testing.
# Pentest HTTP Smuggling ## Purpose Detect and exploit discrepancies between front-end proxies and back-end servers in HTTP request parsing. These attacks bypass security controls, poison caches, and hijack requests — entirely absent from standard taint analysis pipelines. ## Prerequisites ### Authorization Requirements - **Written authorization** with explicit scope for protocol-level testing - **Infrastructure awareness** — identify all reverse proxies, CDNs, load balancers in path - **Rollback plan** for cache poisoning tests (CDN purge access) - **Emergency contacts** for infrastructure team (smuggling can affect other users) ### Environment Setup - Python 3.x with raw socket capability for crafted HTTP requests - Burp Suite Professional with HTTP Request Smuggler extension - curl compiled with HTTP/2 support (`--http2-prior-knowledge`) - Turbo Intruder for timing-sensitive attacks - Network capture tool (Wireshark/tcpdump) for response analysis ## Core Workflow 1. **Stack Fingerprinting**: Identify reverse proxies (nginx, HAProxy, Cloudflare, AWS ALB), CDNs, load balancers. Determine HTTP version support (HTTP/1.1, HTTP/2) and parsing behavior. 2. **CL.TE Smuggling**: Craft requests where front-end uses Content-Length and back-end uses Transfer-Encoding. Observe differential parsing and request boundary confusion. 3. **TE.CL Smuggling**: Reverse scenario — front-end uses Transfer-Encoding, back-end uses Content-Length. Test with obfuscated TE headers. 4. **TE.TE Smuggling**: Both sides use Transfer-Encoding but one can be confused with header obfuscation (capitalization, whitespace, duplicate headers). 5. **HTTP/2 Downgrade**: Exploit H2-to-H1 translation at reverse proxies. Header injection via pseudo-headers, CRLF injection in H2 headers, request splitting through H2 CONTINUATION frames. 6. **Cache Poisoning**: Poison cached responses with attacker-controlled content. Test cache key vs cache content discrepancies. Verify with different client sessions. 7. **Host Header Attacks**: Host header injection, password reset poisoning, routing-based SSRF, web cache poisoning via ambiguous Host headers (WSTG-INPV-17). 8. **Impact Validation**: Demonstrate cache poisoning, credential theft, request hijacking, or security control bypass as PoC. ## WSTG Coverage | WSTG ID | Test Name | Status | |---------|-----------|--------| | WSTG-INPV-15 | HTTP Request Smuggling | ✅ | | WSTG-INPV-17 | Host Header Injection | ✅ | ## Tool Categories | Category | Tools | Purpose | |----------|-------|---------| | Smuggling Detection | smuggler.py, HTTP Request Smuggler (Burp) | Automated CL.TE/TE.CL detection | | HTTP/2 Testing | h2csmuggler, curl --http2, nghttp | H2 downgrade and desync attacks | | Timing Attacks | Turbo Intruder | Microsecond-precision request timing | | Raw Requests | Python sockets, netcat | Crafted malformed HTTP requests | | Cache Analysis | curl, custom scripts | Cache behavior verification | | Traffic Capture | Wireshark, tcpdump | Response boundary analysis | ## References - `references/tools.md` - Tool function signatures and parameters - `references/workflows.md` - Attack pattern definitions and test vectors
GitHub에서 보기