on 02-Nov-2023 09:27
Python script to test if a F5 BIG-IP is vulnerable to cve-2023-46747
This script can help to determine if a F5 BIG-IP is vulernable to K000137353: BIG-IP Configuration utility unauthenticated remote code execution vulnerability CVE-2023-46747.
Download the script and run it with Python 3. This script takes as input the F5 BIG-IP management IP-adres.
$ ./test_cve-2023-46747.py 10.23.92.6
Connecting to 10.23.92.6:443.
Connected to 10.23.92.6:443.
Send HTTP-request trying to add an account.
Try to login with new account.
Login successful.
Server 10.23.92.6 is vulnerable to CVE-2023-46747.
$
Nice! I see that you used the sockets python library as the requests or http.client libraries are good for HTTP API requests but not so much for HTTP attacks as they have constraints like not allowing multiple Host headers etc.
Thanks! You're right, I had to use the socket library to be able to send raw HTTP commands that are not RFC-compliant.