Skip to content
Smuggling / CRLF Write-up Advanced

CVE 2023 25690 - Proof of Concept

Apache HTTP Server versions 2.4.0 to 2.4.55 with certain mod_proxy and RewriteRule configurations are vulnerable to HTTP request smuggling. An attacker can inject CRLF sequences into the URL, causing the proxy to split the request and smuggle a second request to the backend, potentially bypassing access controls and accessing internal resources.

dhmosfunk Follow

Published on github.com

BranchesTags

dhmosfunk (@DSkfunk), on github.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 proxy configuration uses a RewriteRule with a non-specific pattern that captures user-supplied URL data and re-inserts it into the proxied request without proper validation, allowing CRLF injection.

Impact

Attackers could bypass access controls, proxy unintended URLs, poison caches, and access internal applications hidden by the reverse proxy, potentially leading to unauthorized access and data leakage.

What the attacker needed

Apache HTTP Server 2.4.0-2.4.55; mod_proxy enabled; RewriteRule with variable substitution

The fix

The vulnerability was fixed in Apache HTTP Server version 2.4.56; users should update to at least that version.

How it was found

  1. Set up a vulnerable Apache HTTP Server (version 2.4.55) with a RewriteRule that proxies requests to a backend.
  2. Send a request with a CRLF injection payload in the URL to confirm the vulnerability.
  3. Craft a payload that injects a second HTTP request to a hidden endpoint.
  4. Observe the smuggled request reaching the backend and triggering the hidden functionality.

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.

This is a bug in the Apache web server when it is used as a proxy. If the proxy is set up to rewrite URLs in a certain way, an attacker can sneak extra hidden requests to the server behind the proxy. This could let them reach internal pages that are supposed to be off-limits.

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.