Experiencing a Security Incident? → 24/7 Response: +91 73059 79248
Briskinfosec
COMPANY
About Briskinfosec Scope My Security Program Our Clients Testimonials Careers Partnership
INDUSTRIES
Banking & Financial Services Healthcare Manufacturing Government Energy & Utilities Telecom Technology Retail & E-Commerce All Industries →
CONNECT
Contact Us Request Assessment Responsible Disclosure Client Certificate Verification Training Certificate Verification
SECURITY TESTING (VAPT)
Web Application VAPT Mobile App Security API Security Testing Cloud Security Assessment Network Security Audit IoT Penetration Testing OT/SCADA Security Database Penetration Wireless Security CREST VAPT
ADVANCED ASSESSMENT
Red Team Operations AI/LLM Security Audit Digital Forensics Cyber Intelligence Secure Code Review DevSecOps Hardware Security Thick Client Security Host Level Security Automotive VAPT Telecom VAPT
DATA & PRIVACY
Data Security Audit Data Privacy Audit Data Masking & Privacy DSPM Data Breach Simulation SBOM & SCA Website Security All Assurance Services →
COMPLIANCE FRAMEWORKS
ISO 27001:2022 SOC 2 PCI-DSS HIPAA GDPR DPDPA NIST CSF IRDAI ISO 22301 (BCP) ISO 42001 (AI) IEC 62443 (OT) ISO 21434 (Automotive) PDPL (Saudi)
GRC SERVICES
GRC Framework Cyber Risk Assessment Third-Party Risk (TPRM) Data Privacy Compliance Data Retention Policy National Security Compliance Cybersecurity Insurance All Compliance →
GOVERNANCE LAYER
Data Governance Security Posture Management Cybersecurity Maturity AI Maturity Assessment Cyber Resilience BCP/DR Planning vIT Compliance Business Impact Analysis
MANAGED SECURITY
Managed Security (MSSP) SOC as a Service V-CISO Incident Response Virtual Security Team Third Eye (Surveillance)
CONTINUOUS MONITORING
SOAR Integration Security Monitoring Threat Intelligence Platform Cyber Threat Intelligence Lateral Movement Detection Penetration Test as Service
DEFENSIVE OPS
Perimeter Security Access Control Review Cloud Config Review CDN Security Network Architecture Cloud Security Management Virtualization Security All MSSP Services →
ELITE ASSESSMENTS
Threat Modeling Ransomware Readiness Threat & Vulnerability Mgmt Military Grade Review Hacker's POV Assessment
HUMAN LAYER
Security Awareness Training Phishing Simulation Tabletop Exercise Secure Code Training Cybersecurity Culture Cybersec Leadership Incident Response Training Data Privacy Training
STRATEGIC SERVICES
Application Security Governance Quarterly AppSec Review Minimum Security Baseline Secure SDLC Cyber Sense Plan Integration Threat Analysis Infra Risk Assessment Web Extensions Security bSAFE Security Score Layered Security Philosophy All Maturity Services →
PLATFORMS
LURA Portal LuraInsight (SAST) bSAFE Score BriskBox All Products →
Staffing
LEARN
Blog Videos Case Studies Press Room
INTELLIGENCE
Threatsploit Reports Security Essentials Carousel Flyers & Downloads All Resources →
Briskinfosec is a CREST accredited cybersecurity firm, globally recognized for penetration testing and VAPT services Briskinfosec is a CERT-In empanelled cybersecurity company based in Chennai with global operations in Dubai
Get Your bSafe Score →
Briskinfosec
COMPANY
About Briskinfosec Scope My Security Program Our Clients Testimonials Careers Partnership
INDUSTRIES
Banking & Financial Services Healthcare Manufacturing Government Energy & Utilities Telecom Technology Retail & E-Commerce All Industries →
CONNECT
Contact Us Request Assessment Responsible Disclosure Client Certificate Verification Training Certificate Verification
SECURITY TESTING (VAPT)
Web Application VAPT Mobile App Security API Security Testing Cloud Security Assessment Network Security Audit IoT Penetration Testing OT/SCADA Security Database Penetration Wireless Security CREST VAPT
ADVANCED ASSESSMENT
Red Team Operations AI/LLM Security Audit Digital Forensics Cyber Intelligence Secure Code Review DevSecOps Hardware Security Thick Client Security Host Level Security Automotive VAPT Telecom VAPT
DATA & PRIVACY
Data Security Audit Data Privacy Audit Data Masking & Privacy DSPM Data Breach Simulation SBOM & SCA Website Security All Assurance Services →
COMPLIANCE FRAMEWORKS
ISO 27001:2022 SOC 2 PCI-DSS HIPAA GDPR DPDPA NIST CSF IRDAI ISO 22301 (BCP) ISO 42001 (AI) IEC 62443 (OT) ISO 21434 (Automotive) PDPL (Saudi)
GRC SERVICES
GRC Framework Cyber Risk Assessment Third-Party Risk (TPRM) Data Privacy Compliance Data Retention Policy National Security Compliance Cybersecurity Insurance All Compliance Services →
GOVERNANCE LAYER
Data Governance Security Posture Management Cybersecurity Maturity AI Maturity Assessment Cyber Resilience BCP/DR Planning vIT Compliance Business Impact Analysis
MANAGED SECURITY
Managed Security (MSSP) SOC as a Service V-CISO Incident Response Virtual Security Team Third Eye (Surveillance)
CONTINUOUS MONITORING
SOAR Integration Security Monitoring Threat Intelligence Platform Cyber Threat Intelligence Lateral Movement Detection Penetration Test as Service
DEFENSIVE OPS
Perimeter Security Access Control Review Cloud Config Review CDN Security Network Architecture Cloud Security Management Virtualization Security
ELITE ASSESSMENTS
Threat Modeling Ransomware Readiness Threat & Vulnerability Mgmt Military Grade Review Hacker's POV Assessment
HUMAN LAYER
Security Awareness Training Phishing Simulation Tabletop Exercise Secure Code Training Cybersecurity Culture Cybersec Leadership Incident Response Training Data Privacy Training
STRATEGIC SERVICES
Application Security Governance Quarterly AppSec Review Minimum Security Baseline Secure SDLC Cyber Sense Plan Integration Threat Analysis Infra Risk Assessment Web Extensions Security bSAFE Security Score → Layered Security Philosophy →
PLATFORMS
LURA Portal LuraInsight (SAST) bSAFE Score BriskBox All Products →
Staffing
LEARN
Blog Videos Case Studies Press Room
INTELLIGENCE
Threatsploit Reports Security Essentials Carousel Flyers & Downloads All Resources →
Home → Blog → HTTPS Request Smuggling Attacks and How...
Web Application Security

HTTPS Request Smuggling Attacks and How to Stop Them?

August 25, 2022
6 min read
7,228 Views
Contents
HTTPS Request Smuggling Attacks and How to Stop Them?

Who will offer $36,000 for finding a bug?

Yes, it has happened. And, by the the greatest company of the planet: Apple.

Apple offered a bug bounty of $36,000 for HTTP request smuggling vulnerabilities in core web apps.

From the prize, you can well understand the magnanmity of the bug.

After finding critical HTTP request smuggling vulnerabilities in three of Apple's core web applications, a security researcher says they got $36,000 in bug bounties.

The bug hunter, a 20-year-old hacker who goes by the online name "Stealthy," said that they used the same method to poison the queues on the domains. This allowed them to get access to data and take over accounts without the user having to do anything.

What does "Smuggling HTTP Requests" mean?

An attack method known as HTTP request smuggling involves interfering with the exchange of requests between front end and back end servers.

The attacker takes advantage of the weakness by changing the request, so that it includes another request in its body. The Content-Length and Transfer-Encoding headers are used wrongly to do this. When the attack works, the second request is hidden in the body of the first request and then processed.

image

What does it do and how does it work?

Basically, two HTTP headers are used during the attack:

  • The size of the request body is shown in the Content-Length Header (in bytes).
  • Transfer-Encoding Header: set to chunked to send the request body in pieces (separated by newline). A chunk ends with a 0.

This attack works if all of the following are true:

  • Over the same network connection, the front-end server sends multiple requests to the back-end server.
  • The back-end doesn’t agree with the front-end about where each message ends.
  • The attacker sends a message that isn't clear, and the back-end server reads it as two separate HTTP requests.
  • The attacker prepares the second request to carry out malicious action that the first request cannot.

image

The above request can be seen as two separate ones:

image

image

This weakness can only be exploited by people who know how to do it.

Note that HTTP Smuggling does not take advantage of any vulnerabilities in the web application that is being targeted. By taking advantage of how web servers read HTTP messages, this vulnerability can lead to the following:

  •  Execute Unauthorized Commands
  •  Gain Privileges
  •  Bypassing security controls
  •  Access/Modify Data
  •  Session Hijacking
  •  Cache poisoning

How to find out?

You can find this vulnerability manually by following the steps below, or you can use the smuggler extension for Burp Suite. Here are some steps for exploiting and finding a vulnerability by hand.

Types of HTTP Smuggling Attacks

There are three main ways to exploit HRS vulnerabilities:

    CL-TE: the front-end server uses the Content-Length header and the back-end server uses the Transfer-Encoding header.

    TE-CL: the front-end server uses the Transfer-Encoding header and the back-end server uses the Content-Length header.

    TE-TE: the front-end and back-end servers both support the Transfer-Encoding header, but one of the servers can be induced not to process it by obfuscating the header in some way.

CL-TE

In this situation, the front-end server uses the Content-Length header and the back-end server uses the Transfer-Encoding header. A simple HTTP request smuggling attack can look like this:

POST / HTTP/1.1

Host: www.example.com

Content-Length: 13

Transfer-Encoding: chunked

0

SMUGGLED

The Content-Length header tells the front-end server that this request is 13 bytes long, which is the length of SMUGGLED. This request is sent to the server in the back.

The back-end server looks at the Transfer-Encoding header and thinks that chunked encoding is being used for the message body. It handles the first chunk, which is said to have a length of zero. Because of this, the request is considered to be over. The SMUGGLED bytes that come next are not processed, and the back-end server will see them as the beginning of the next request in the sequence.

TE-CL

In this case, the front-end server uses the Transfer-Encoding header and the back-end server uses the Content-Length header.

A simple HTTP request smuggling attack can look like this:

POST / HTTP/1.1

Host: www.example.com

Content-Length: 3

Transfer-Encoding: chunked

8

SMUGGLED

0

The front-end server looks at the Transfer-Encoding header and thinks that chunked encoding is being used for the message body.

It works on the first chunk, which is said to be 8 bytes long, up to the start of the line following SMUGGLED.

It processes the second chunk, which is said to have a length of zero. Because of this, the request is considered to be over.

This request is sent to the server in the back.

The back-end server looks at the Content-Length header and sees that the request body is 3 bytes long, up to the start of the line following 8.

The bytes that come after SMUGGLED are not processed, and the back-end server will see them as the beginning of the next request in the sequence.

TE-TE Behavior: Obfuscating the TE Header

In this case, both the front-end and back-end servers can handle the Transfer-Encoding header, but one server can be made to ignore it by obfuscating it in some way.

The Transfer-Encoding header could be obfuscate in an almost infinite number of ways. For example:

Transfer-Encoding: xchunked

Transfer-Encoding : chunked

Transfer-Encoding: chunked

Transfer-Encoding: x

Transfer-Encoding:[tab]chunked

[space]Transfer-Encoding: chunked

X: X[\n]Transfer-Encoding: chunked

Transfer-Encoding: xchunked

Transfer-Encoding : chunked

Transfer-Encoding: chunked

Transfer-Encoding: x

Transfer-Encoding:[tab]chunked

[space]Transfer-Encoding: chunked

X: X[\n]Transfer-Encoding: chunked

Transfer-Encoding

: chunked

Transfer-Encoding

: chunked

Each of these methods takes a small step away from what the HTTP specification says. In the real world, code that implements a protocol specification rarely follows it exactly, and it is common for different implementations to allow different variances from the specification.

To find a TE-TE vulnerability, you need to find a variation of the Transfer-Encoding header that only one of the front-end or back-end servers processes, while the other server ignores it.

Depending on whether the front-end or back-end server can be tricked into not processing the obfuscated Transfer-Encoding header, the rest of the attack will be the same as for the CL-TE or TE-CL vulnerabilities already described.

How to Avoid HTTP Request Smuggling:

  • Making the front-end server understand confusing requests
  • Making the back-end server reject unclear requests and disconnect from the network.
  • Reusing back-end connections should be disabled.
  • For back-end connections, use HTTP/2.
  • Use the same web server software for the front and back ends.
  • Prefer a WAF with built-in mitigation for detecting unusual request.
Web Application Security Mobile Application Security
Share this article
A
Written by
Arulselvar Thomas Founder & Director
Cybersecurity expert at Briskinfosec Technology and Consulting, specializing in security assessments, compliance, and helping organizations build resilient security postures.
Recent Blogs
How to Create a Secure AWS IAM Audit User for Cloud Security Assessments
The Cyber Capability Gap Between Mythos, GPT-5.5 and Open-Weight Models Explained
Inside Claude Mythos and What the Indian Defender Actually Needs to Know
Related Services
VAPT Cloud Security Red Team Network Security API Security Mobile App Security
Latest Videos
Navigating Compliance in Cybersecurity Laws, Privacy laws and Your Business
Navigating Compliance in Cybersecurity Laws,...
Apr 26, 2024
Beyond Size: How to Elevate your SOC Cybersecurity Monitoring
Beyond Size: How to Elevate your SOC Cybersec...
Mar 20, 2024
Red Team Assessment
Red Team Assessment
Mar 13, 2024
Get Protected

Discuss your security posture with our certified experts. Get a free initial assessment.

Schedule Free Consultation WhatsApp Us

Related Articles

Ransomware The Deadliest Threat to Modern Cybersecurity
Ransomware The Deadliest Threat to Modern Cybersecurity
Jun 18, 2024 · 5,000
Mastering Web App VAPT The Complete Guide
Mastering Web App VAPT The Complete Guide
Apr 26, 2024 · 9,279
A Deep Dive into VAPT Methodology and Coverage Respective of Different Compliance Requirements
A Deep Dive into VAPT Methodology and Coverage Respective of Different Compliance Requirements
Nov 27, 2023 · 8,354
Read Next (Top Blog)
Getting Started with Frida

Ready to Strengthen Your Security?

Talk to our CREST-certified security experts today

WhatsApp Us
Chat instantly with our security team
AI Presales Bot
Get instant answers from LURA AI
Schedule Consultation
Book a free security consultation
Email Us
contact@briskinfosec.com
Link copied to clipboard!
About Us
About Briskinfosec Certin Our Clients Testimonials Press Room
Services
Application Security Mobile App Security Cloud Security Red Team Operations SOC as a Service MSSP All Services →
Compliance
ISO 27001 SOC 2 PCI-DSS GDPR HIPAA All Compliance →
Resources
Blog Videos Case Studies Threatsploit Reports All Resources →
Connect
Careers Partnership Contact Us Responsible Disclosure Terms and Conditions Privacy Policy
India (HQ) Bascon Futura Sv It Park, 12th Floor, 10/2,
Venkatanarayana Rd, T. Nagar, Chennai, Tamil Nadu 600017
+91 73059 79248 · contact@briskinfosec.com
UAE (Dubai) IFZA Business Park, Building A1, Dubai Digital Park,
Dubai Silicon Oasis, Post Box 342001, UAE
contact@briskinfosec.com
Briskinfosec CREST accredited cybersecurity company and globally recognized provider of penetration testing and VAPT services CERT-In empanelled cybersecurity company with headquarters in Chennai and operations in Dubai offering VAPT services Briskinfosec ISO 27001 certified company ensuring robust information security management system Briskinfosec ISO 9001:2015 certified cybersecurity company committed to quality management in India Briskinfosec is a DUNS registered cybersecurity company with a verified global business identity offering VAPT services
© 2026 Briskinfosec Technology & Consulting Pvt Ltd. All rights reserved.
Scope Your Security Program
Chat on WhatsApp Ask LURA AI AI