Skip to content
Smuggling / CRLF Write-up Intermediate

Apache Serverində Gözəgörünməz Hücum: Request Smuggling və Ziddiyyətli Başlıqların Gücü

An Apache 2.4.41 server mishandles requests that carry both a Transfer-Encoding and a Content-Length header, so the front-end and back-end disagree on where one request ends. An attacker could hide a second request inside the first and have it processed by the back-end, potentially poisoning a cache or reaching protected paths.

4l0neK1n9 Follow

Published on medium.com

Hədəf sistemdə çalışan Apache HTTP Server (versiya 2.4.41) CVE-2020–11993 kodlu zəifliyə qarşı həssasdır. Zəiflik, serverin eyni sorğu daxilində həm Transfer-Encoding: chunked, həm də Content-Length başlıqlarını ehtiva edən HTTP sorğularını düzgün idarə edə bilməməsindən qaynaqlanır.

Hasan Azizov, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

The server does not consistently resolve conflicting Transfer-Encoding and Content-Length headers, so front-end and back-end disagree on request boundaries.

Impact

An attacker could poison a web cache, hijack sessions, bypass authentication to protected pages, or reach internal services, though the cache-poisoning effect depends on a cache being present.

What the attacker needed

Network access to the server; a front-end proxy in front of Apache

The fix

Upgrade Apache to 2.4.42 or later, or as a workaround reject any request that carries both headers, and make sure proxies and WAFs also block such requests.

How it was found

  1. Send a single request that carries both a chunked Transfer-Encoding header and a Content-Length header, with a second request embedded after the chunked terminator.
  2. Observe that two separate HTTP responses arrive over the same connection, showing the back-end processed the hidden request.
  3. Send a similar request with a hidden path and check whether the response for the main page is returned while the hidden path is also processed.

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 write-up has not been written yet. The Original tab links to the source.

When a browser or proxy sends a request, it marks where the body ends using headers. If a request contains two different markers that disagree, the proxy and the server can each pick a different end point. The attacker uses that gap to slip an extra hidden request past the proxy, which the server then treats as a real one.

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.

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.