Skip to content
Smuggling / CRLF Write-up Advanced

Refresh: Compromising F5 BIG-IP With Request Smuggling | CVE-2023-46747

An authentication bypass in F5 BIG-IP's Traffic Management User Interface allowed an unauthenticated attacker to smuggle AJP requests to the backend Tomcat server, leading to complete compromise of the appliance. The vulnerability was a request smuggling issue related to CVE-2022-26377.

Michael Weber Follow

Published on praetorian.com

In an effort to safeguard our customers, we perform proactive vulnerability research with the goal of identifying zero-day vulnerabilities that are likely to impact the security of leading organizations. We decided to focus on the F5 BIG-IP suite, as F5 products are fairly ubiquitous among large corporations.

Justin Copeland, on praetorian.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 request smuggling flaw in Apache httpd's mod_proxy_ajp where a 'Transfer-Encoding: chunked, chunked' header caused httpd to strip Content-Length and forward the body as a separate AJP data packet, which Tomcat then interpreted as a new request.

Impact

An unauthenticated attacker could bypass authentication and achieve complete compromise of the F5 BIG-IP appliance, potentially leading to remote code execution.

What the attacker needed

TMUI exposed on the network; no authentication required; network access to the appliance

The fix

F5 released a fix for CVE-2023-46747, and the report notes that F5 had previously patched related vulnerabilities and restricted JSP handler functionality.

How it was found

  1. Deploy a default F5 BIG-IP Virtual Edition and identify the Apache httpd and Tomcat AJP components.
  2. Confirm that Tomcat uses an AJP connector on port 8009 and that httpd routes /tmui/ requests to it.
  3. Send a crafted AJP payload to a /tmui/ URL with a Transfer-Encoding header set to 'chunked, chunked'.
  4. Observe occasional 404 responses instead of the login page, confirming smuggling.
  5. Create a file at /usr/share/tomcat/webapps/ROOT/WEB-INF/web.xml and use the smuggled request to read it, demonstrating local file inclusion.

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 report describes a way to trick a web server into letting an attacker send hidden requests to a backend service without logging in. The front-end server and the back-end server disagreed about where one request ended and the next began, so the attacker could slip in an extra request that the back-end treated as legitimate. That let the attacker run commands on the appliance and take it over completely.

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 F5

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.