
Ansible playbook per automatizzare la mitigazione di CVE-2023-46747 (BIG-IP RCE non autenticato) applicando lo script ufficiale di F5 su più dispositivi.
Ecco il link https://my.f5.com/manage/s/article/K000137353
ansible-playbook -i hosts.ini playbook.yaml
Ecco l'output.
PLAY [Execute script on F5 BIG-IP] ****************************************************************************************************************
TASK [Copy the script to the BIG-IP] ************************************************************************************************************** changed: [172.16.10.31] changed: [172.16.10.30]
TASK [Execute the script on the BIG-IP] *********************************************************************************************************** changed: [172.16.10.30] changed: [172.16.10.31]
TASK [Save script output messages] **************************************************************************************************************** ok: [172.16.10.30] ok: [172.16.10.31]
TASK [Aggregate script output messages on localhost] ********************************************************************************************** ok: [172.16.10.30 -> localhost] => (item=Applying ID1378329 mitigation...) ok: [172.16.10.30 -> localhost] => (item=Restarting httpd...) ok: [172.16.10.31 -> localhost] => (item=Applying ID1378329 mitigation...) )k: [172.16.10.30 -> localhost] => (item=Stopping httpd: [ OK ] ok: [172.16.10.31 -> localhost] => (item=Restarting httpd...) )k: [172.16.10.30 -> localhost] => (item=Starting httpd: [ OK ] )k: [172.16.10.31 -> localhost] => (item=Stopping httpd: [ OK ] )k: [172.16.10.31 -> localhost] => (item=Starting httpd: [ OK ] ok: [172.16.10.30 -> localhost] => (item=Restarting tomcat...) ok: [172.16.10.30 -> localhost] => (item=Done!) ok: [172.16.10.31 -> localhost] => (item=Restarting tomcat...) ok: [172.16.10.31 -> localhost] => (item=Done!)