CVE-2023-22374: F5 BIG-IP Format String Vulnerability
An authenticated format string vulnerability exists in the SOAP interface of F5 BIG-IP, where user-supplied input is passed to syslog() without sanitisation. An attacker with administrative access could crash the service or potentially achieve remote code execution as root.
While following up our previous work on F5's BIG-IP devices, Rapid7 found an additional vulnerability in the appliance-mode REST interface; the vulnerability was assigned CVE-2023-22374. We reported it to F5 on December 6, 2022, and are now disclosing it in accordance with our vulnerability disclosure policy.
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 value of the WSDL= query parameter is passed directly into the syslog() function as a format string, so format specifiers in the input are processed by the logging library.
Impact
The most likely impact is a crash of the server process, but a skilled attacker could potentially develop a remote code execution exploit running as root; the attack is blind because the output is written to a log the attacker cannot read.
What the attacker needed
Administrative login to BIG-IP; access to the management interface
The fix
There is currently no fix; F5 has indicated an engineering hotfix will be made available, and users should restrict access to the management port to trusted individuals.
How it was found
- Log in to the BIG-IP administrative interface.
- Send a request to the iControlPortal.cgi endpoint with a WSDL parameter containing format string specifiers.
- Observe that the service processes the specifiers, potentially crashing or writing to memory.
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.
Format string vulnerabilities happen when a program takes user input and uses it directly as a template for formatting text, so special characters like %s or %n get interpreted as instructions instead of plain text. Here, an attacker who is already logged in as an administrator can send these characters in a web request, causing the server to read or write memory it shouldn't. This can crash the service or, in rare cases, let the attacker run their own code.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.