Exploit database

Vulnerability

CVE-2022-41622

iControl SOAP vulnerability

Vulnerability details

Score
8.8
Severity
high

CVSS 3.1 · f5

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Description

In all versions, BIG-IP and BIG-IQ are vulnerable to cross-site request forgery (CSRF) attacks through iControl SOAP. Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.

CVE Program

Exploit source choices

4 sources
F5 BIG-IP iControl Authenticated RCE via RPM Creator
MSF-linux--http--f5_icontrol_rpmspec_rce_cve_2022_41800MetasploitLinux,Unix / remotePreferred

This module exploits a newline injection into an RPM .rpmspec file that permits authenticated users to remotely execute commands. Successful exploitation results in remote code execution as the root user.

2022-11-16f5_icontrol_rpmspec_rce_cve_2022_41800.rb
F5 BIG-IP iControl CSRF File Write SOAP API
MSF-linux--http--f5_icontrol_soap_csrf_rce_cve_2022_41622MetasploitLinux,Unix / remote

This module exploits a cross-site request forgery (CSRF) vulnerability in F5 Big-IP's iControl interface to write an arbitrary file to the filesystem. While any file can be written to any location as root, the exploitability is limited by SELinux; the vast majority of writable locations are unavailable. By default, we write to a script that executes at reboot, which means the payload will execute the next time the server boots. An alternate target - Login - will add a backdoor that executes next time a user logs in interactively. This overwrites a file, but we restore it when we get a session Note that because this is a CSRF vulnerability, it starts a web server, but an authenticated administrator must visit the site, which redirects them to the target.

2022-11-16f5_icontrol_soap_csrf_rce_cve_2022_41622.rb
F5 Big-IP Create Admin User
MSF-linux--local--f5_create_userMetasploitLinux,Python,Unix / remote

This creates a local user with a username/password and root-level privileges. Note that a root-level account is not required to do this, which makes it a privilege escalation issue. Note that this is pretty noisy, since it creates a user account and creates log files and such. Additionally, most (if not all) vulnerabilities in F5 grant root access anyways. Adapted from https://github.com/rbowes-r7/refreshing-mcp-tool/blob/main/mcp-privesc.rb

2022-11-16f5_create_user.rb
rbowes-r7/refreshing-soap-exploit
GH-2cd84fb3001bbbcb2e1b9f8988e5fbaaGitHubUnofficial GitHub source

A PoC exploit for CVE-2022-41622 - a CSRF in F5 BIG-IP control plane that leads to remote root

2022-08-03294 files · 22 stars