
Uno script di exploit sviluppato per sfruttare la vulnerabilità zero day CVE-2023-20198 di Cisco sui loro router IOS
Uno script di sfruttamento sviluppato per sfruttare la vulnerabilità zero-day CVE-2023-20198 di Cisco su IOS XE
Gli hacker hanno ampiamente sfruttato questa vulnerabilità, che crea un utente con privilegi di livello 15 bypassando l'autenticazione. Un contenuto XML malevolo consente questo sfruttamento sull'endpoint webui di Cisco. Questo strumento non solo sfrutta, ma rileva anche impianti vulnerabili per lo sfruttamento. Può essere utilizzato anche per rilevamento e sfruttamento di massa.
git clone https://github.com/sanjai-AK47/CVE-2023-20198.git
cd CVE-2023-20198
pip install -r requirements.txt
python3 exploit.py --help
usage: exploit.py [-h] {Detect,Exploit} ...
[DESCTIPTION]: Exploitation and Detection tool for Cisco CVE-2023-20198
options:
-h, --help show this help message and exit
[MODE]: Exploitation | Detections Modes:
{Detect,Exploit} [INFO]: Select either Exploit or Detect mode
Detect [INFO]: Detection mode detect the vulnerable implant to exploit
Exploit [INFO]: Exploitation mode exploit the vulnerable implant of CVE-2023-20198
python3 exploit.py Detect -h
usage: exploit.py Detect [-h] [-d DOMAIN] [-dL DOMAINS_LIST] [-px PROXY] [-to TIME_OUT] [-o OUTPUT] [-v]
options:
-h, --help show this help message and exit
-d DOMAIN, --domain DOMAIN
[INFO]: Target domain for exploiting without protocol eg:(www.domain.com)
-dL DOMAINS_LIST, --domains-list DOMAINS_LIST
[INFO]: Targets domain for exploiting without protocol eg:(www.domain.com)
-px PROXY, --proxy PROXY
[INFO]: Switiching proxy will send request to your configured proxy (eg: BURPSUITE)
-to TIME_OUT, --time-out TIME_OUT
[INFO]: Switiching timeout will requests till for your timeout and also for BURPSUITE
-o OUTPUT, --output OUTPUT
[INFO]: File name to save output
-v, --verbose [INFO]: Switching verbose will shows failed and offline targets
python3 exploit.py Exploit -h
usage: exploit.py Exploit [-h] [-cfc CONFIG_CONTENT] [-d DOMAIN] [-dL DOMAINS_LIST] [-px PROXY] [-to TIME_OUT] [-o OUTPUT] [-v]
options:
-h, --help show this help message and exit
-cfc CONFIG_CONTENT, --config-content CONFIG_CONTENT
[INFO]: Customized config contents for exploitation
-d DOMAIN, --domain DOMAIN
[INFO]: Target domain for exploiting without protocol eg:(www.domain.com)
-dL DOMAINS_LIST, --domains-list DOMAINS_LIST
[INFO]: Targets domain for exploiting without protocol eg:(www.domain.com)
-px PROXY, --proxy PROXY
[INFO]: Switiching proxy will send request to your configured proxy (eg: BURPSUITE)
-to TIME_OUT, --time-out TIME_OUT
[INFO]: Switiching timeout will requests till for your timeout and also for BURPSUITE
-o OUTPUT, --output OUTPUT
[INFO]: File name to save output
-v, --verbose [INFO]: Switching verbose will shows failed and offline targets
Poiché lo strumento di sfruttamento e rilevamento è stato sviluppato basandosi sul proof of concept teorico di Horizona3https://www.horizon3.ai/cisco-ios-xe-cve-2023-20198-deep-dive-and-poc/Imp che mi ha aiutato a sviluppare questo strumento per questa CVE. Per il rilevamento, può rilevare l'impianto Cisco vulnerabile, ma per uno sfruttamento corretto gli utenti devono passare il contenuto XML malevolo che è il proof of concept teorico di Horizon3. Ciò è necessario perché è solo una spiegazione teorica, ma presto, con informazioni e risorse adeguate, aggiornerò questo strumento di sfruttamento e rilevamento.
Importante: in caso di sfruttamento non etico, non sono responsabile per azioni illegali. Quindi per favore usa questo strumento solo per scopi etici e legali.
Proof of concept sviluppato da D.Sanjai Kumar con ♥️. Per qualsiasi aggiornamento o errore di codice, contattami tramite il mio LinkedIn. Grazie!