Skip to content
Smuggling / CRLF Disclosed report Advanced

HTTP Request Smuggling using CL TE method

A front-end caching server was misconfigured, allowing HTTP request smuggling via CL.TE desync. An attacker could poison the cache with a redirect that set their own session cookie on a victim's browser, potentially capturing sensitive data entered by the victim.

GitLab

Originally disclosed on GitLab

  • Fixed in 8 months
  • Disclosed after 8 months

HackerOne report #783440 by ron_fury on 2020-01-26, assigned to @cmaxim:

Summary
Due to a configuration in front-end, caching servers, it was possible for a us to use request smuggling to convert a page request into a cached redirect. If the cached redirect were accessed by a legitimate user, an attacker's content would be rendered instead of the requested page. While this would not impact any back-end data, this could interfere with the integrity of certain pages, including potential interference of responses with sensitive data.

Steps To Reproduce:

1)Now capture any post request from gitlab and send it to repeater lets call this request R1.
2)Now convert R1 into chunked using Http request smuggler extension.
3)Now in other browser open gitlab and capture the login request lets call this request R2.
4)Now Send the R1 request to CLTE and increase concurrentConnections=100, requestsPerConnection=200, and paste login request R2 in prefix and increase range to 140. And press attack.
5)And now look for 302 response which sets my session cookie to victim who is requesting some other resource.

Original Request:
[REDACTED]

0

Edited Request:

POST / HTTP/1.1
[REDACTED]

0

POST /users/sign_in HTTP/1.1
Host: gitlab.com
Connection: close
[REDACTED]

References:
https://portswigger.net/research/http-desync-attacks-request-smuggling-reborn
https://portswigger.net/research/breaking-the-chains-on-http-request-smuggler

Impact

we can smuggle our login request and client will receive response with our cookies.
Now if he is doing any app configurations or entering any app keys or adding any users which contains sensitive information will be added into our account.

https://hackerone.com/reports/622122
https://portswigger.net/research/responsible-denial-of-service-with-web-cache-poisoning

Attachments

Warning: Attachments received through HackerOne, please exercise caution!

[REDACTED]

The original report as published on GitLab. Images and videos are our own copies; raw HTML is shown as text. View it on GitLab.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a mismatch between the front-end cache and back-end server in how they parse Content-Length and Transfer-Encoding headers, enabling a CL.TE request smuggling desync.

Impact

An attacker could smuggle their login request so a victim receives a response with the attacker's cookies, potentially causing sensitive data entered by the victim to be added to the attacker's account.

What the attacker needed

Front-end caching server; ability to send crafted requests; victim visits a poisoned page

How it was found

  1. Capture any POST request from GitLab and send it to Repeater (R1).
  2. Convert R1 into a chunked request using the HTTP Request Smuggler extension.
  3. In another browser, open GitLab and capture the login request (R2).
  4. Send R1 to the CL.TE attack tool with high concurrency and R2 as the prefix, then start the attack.
  5. Look for a 302 response that sets the attacker's session cookie on a victim requesting another resource.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a website sits behind a caching server, the cache and the backend must agree on where one HTTP request ends and the next begins. Here they disagreed, so an attacker could sneak a second request into the first one. The cache then stored a redirect that gave the attacker's session to anyone who visited the page.

What is Smuggling / CRLF?

A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.

More from GitLab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Request smuggling and header injection

The lesson behind this report.

A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.