
CVE-2023-20198 Checkscript
CVE-2023-20198 Checkscript basato su: https://blog.talosintelligence.com/active-exploitation-of-cisco-ios-xe-software/ Incluso l'aggiornamento in cui è presente un header Authorization per verificare l'impianto noto.
!! Aggiornato per cercare l'impianto aggiornato
Lo script controlla la lunghezza della risposta restituita con codice 200 e verifica se la lunghezza è inferiore a 32 caratteri. Ogni IP che restituisce una lunghezza inferiore a 32 caratteri dovrebbe essere verificato per vedere se il dispositivo è compromesso. Questo script fornisce solo un indicatore, non la prova che il dispositivo sia compromesso.
Lo script controlla anche se l'impianto è stato aggiornato, come scoperto da Fox-IT: https://github.com/fox-it/cisco-ios-xe-implant-detection
Esecuzione:
python cve-2023-20198.py
and enter you desired subnet to scan. For example:
python CVE-2023-20198
Enter the subnet (CIDR notation): 10.0.0.0/22
IP: 10.0.0.94 - Error: no reply
IP: 10.0.0.94 - Error: no reply
IP: 10.0.0.96 - Status: 200
IP: 10.0.0.96 - Response is a potentially suspicious:
IPs with status code 200, suspicious length, should be checked:
['10.0.0.96']
IPs with status code 200, but no IOC:
[]