Skip to content
Smuggling / CRLF Write-up Advanced

HAProxy Security Update (CVE-2023-25725)

HAProxy's header processing could drop important headers like Connection, Content-Length, Transfer-Encoding, and Host after parsing them, allowing a crafted request to smuggle extra requests past HAProxy's filtering. An attacker could bypass authentication checks or access restricted areas, depending on the site's architecture.

mail-archive.com

Published on mail-archive.com

Willy Tarreau Tue, 14 Feb 2023 08:19:19 -0800

The author, on mail-archive.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

Likely a flaw in HAProxy's header parsing and processing logic caused it to drop certain headers after partially processing them, so the forwarded request no longer matched what HAProxy believed it was.

Impact

An attacker could bypass authentication checks or access restricted areas, though the difficulty and impact depend on the site's architecture; HTTP/2 and HTTP/3 are affected but do not allow request smuggling because HAProxy stays synchronised with the server.

What the attacker needed

HAProxy in front of a server; attacker knows HTTP internals; site architecture allows smuggling

The fix

The issue was fixed in all versions and all modes, and a config-based workaround was also provided for those who cannot update immediately.

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.

HAProxy is a proxy that sits between users and web servers, filtering and forwarding requests. A bug let a specially crafted request cause HAProxy to remove key headers that tell the server how to interpret the request, so the server could see extra hidden requests that HAProxy never checked. This is called request smuggling and can let an attacker slip past access controls.

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.