# Request smuggling

### What is the Request smuggling?

HTTP request smuggling is a technique for interfering with the way a web site processes sequences of HTTP requests that are received from one or more users. Request smuggling vulnerabilities are often critical in nature, allowing an attacker to bypass security controls, gain unauthorized access to sensitive data, and directly compromise other application users.

## Basic CL.TE vulnerability

#### Check using the <mark style="color:red;">Timeout</mark> method

> **Fronend:** CL (Content-Length)
>
> **Backend:** TE (Transfer-Encoding)

1. Change the request attributes HTTP/2 to HTTP/1 and the method GET to POST. Add the content length and payload as mentioned below. Make sure "***Update Content-length***" is disabled.

<figure><img src="https://851323342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FolGZmSV9EYkU0MXXM4LC%2Fuploads%2FmHzuG1Huzgvyh4uZNcDr%2Fimage.png?alt=media&#x26;token=4d8ef76e-7be3-40ad-b86d-d0328306f3a4" alt=""><figcaption><p>Burp Repeater > Inspector > Request attributes</p></figcaption></figure>

<figure><img src="https://851323342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FolGZmSV9EYkU0MXXM4LC%2Fuploads%2FoFJ1iovXqV9knkyWK1NC%2Fimage.png?alt=media&#x26;token=0b3a802d-0ad9-4fe9-a1e4-5a28383a5dda" alt=""><figcaption></figcaption></figure>

<figure><img src="https://851323342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FolGZmSV9EYkU0MXXM4LC%2Fuploads%2Fy0kUGZ5v82XSIqaiNaOV%2Fimage.png?alt=media&#x26;token=c7f06674-251a-4877-99d8-07b497e25b5c" alt=""><figcaption></figcaption></figure>

### Basic TE.CL Vulnerability

#### Check using the <mark style="color:red;">Timeout</mark> method

> **Fronted:** Transfer Encoding
>
> **Backend:** Content Length

1. Change the request attributes HTTP/2 to HTTP/1 and the method GET to POST. Add the content length and payload as mentioned below. Make sure "***Update Content-length***" is disabled.

<figure><img src="https://851323342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FolGZmSV9EYkU0MXXM4LC%2Fuploads%2FHi4jSmr9bEgGyNrzDIa8%2Fimage.png?alt=media&#x26;token=258d9494-bc59-44e8-8d6f-e65bf49c1b3f" alt=""><figcaption><p>Burp Repeater > Inspector > Request attributes</p></figcaption></figure>

<figure><img src="https://851323342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FolGZmSV9EYkU0MXXM4LC%2Fuploads%2FcpvBEpJy0EpA3AybaG37%2Fimage.png?alt=media&#x26;token=14e2e05c-cfc3-432c-9d89-561661a47052" alt=""><figcaption></figcaption></figure>

<figure><img src="https://851323342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FolGZmSV9EYkU0MXXM4LC%2Fuploads%2FQ9mRSJZu0vHGtTmBTZiv%2Fimage.png?alt=media&#x26;token=173dd44a-25f2-42ae-9fcb-92cfb22cb352" alt=""><figcaption></figcaption></figure>

<figure><img src="https://851323342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FolGZmSV9EYkU0MXXM4LC%2Fuploads%2FxPMSwFzW8ByZb1VEzcnC%2Fimage.png?alt=media&#x26;token=60bbfc11-e851-4aad-8ffb-6ede054c6815" alt=""><figcaption></figcaption></figure>

<figure><img src="https://851323342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FolGZmSV9EYkU0MXXM4LC%2Fuploads%2FtCUm2vJ7ThOuAriud4SU%2Fimage.png?alt=media&#x26;token=01155655-aab1-4fbd-a70a-c0c2b1f4c1b1" alt=""><figcaption></figcaption></figure>

<figure><img src="https://851323342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FolGZmSV9EYkU0MXXM4LC%2Fuploads%2Fkltbil6g2rLAhVq0FJJC%2Fimage.png?alt=media&#x26;token=1c56b7e3-2928-4814-aeb2-f3aad323ee14" alt=""><figcaption></figcaption></figure>

<figure><img src="https://851323342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FolGZmSV9EYkU0MXXM4LC%2Fuploads%2FZLITcTjbfCi97OSznnSl%2Fimage.png?alt=media&#x26;token=f5fead62-68c8-4a39-b911-5d9bf09d5071" alt=""><figcaption></figcaption></figure>

<figure><img src="https://851323342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FolGZmSV9EYkU0MXXM4LC%2Fuploads%2F8Vm0wy3BGhZCkERBvPnc%2Fimage.png?alt=media&#x26;token=d2ae3ae5-acf4-46d5-be73-7919d0446544" alt=""><figcaption></figcaption></figure>
