Skip to content
CSRF Write-up Advanced

CVE-2022-41622 and CVE-2022-41800 (FIXED): F5 BIGIP and iControl REST Vulnerabilities and Exposures

The F5 BIG-IP SOAP API endpoint lacked CSRF protection, so an attacker could make an authenticated administrator's browser send arbitrary SOAP commands, potentially leading to remote code execution. A separate authenticated endpoint allowed injection into RPM spec files, letting an administrator run shell commands.

Ron Bowes Follow

Published on rapid7.com

CVE-2022-41622 and CVE-2022-41800 (FIXED): F5 BIG-IP and iControl REST Vulnerabilities and Exposures

Rapid7, on rapid7.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 the SOAP API endpoint accepted state-changing requests without CSRF tokens or content-type checks, and the RPM spec creation endpoint failed to sanitise newlines and shell metacharacters in user-supplied fields.

Impact

Exploiting the CSRF issue could give persistent root access to the management interface, but it requires an administrator with an active session to visit a hostile site and some knowledge of the target network; the RPM issue requires an administrator login and is considered low risk.

What the attacker needed

Administrator logged in to BIG-IP; victim visits attacker-controlled site; attacker knows target network details; administrator privileges for RPM issue

The fix

F5 provided hotfixes on request and said fixes would be included in future releases; normal anti-CSRF techniques prevent the CSRF exploit.

How it was found

  1. An authenticated administrator visits an attacker-controlled website or is redirected there.
  2. The attacker's page sends SOAP requests to the BIG-IP SOAP API in the administrator's session.
  3. The attacker uses SOAP endpoints such as upload_file or create_user_3 to write files or create accounts.
  4. For the RPM issue, an authenticated administrator sends a crafted JSON body to the rpm-spec-creator endpoint.
  5. The injected spec file is then consumed by the build-package endpoint, which runs the embedded shell command.

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.

A web application can be tricked into accepting commands from a malicious website if it does not check that the request really came from its own pages; this is called cross-site request forgery. Here, an administrator who was logged in to the device and visited a hostile site could have commands run on the device without knowing. A second issue let someone who already had administrator access run shell commands through a file-building feature.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

More by Ron Bowes

View all

3 more disclosed reports, best first.

More from F5

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.