
Cisco IOS 라우터의 CVE-2023-20198 제로 데이 취약점을 악용하기 위해 개발된 익스플로잇 스크립트
CVE-2023-20198 Cisco IOS XE의 제로데이 취약점을 악용하기 위해 개발된 익스플로잇 스크립트입니다.
해커들은 이 취약점을 널리 악용해 왔으며, 이 취약점은 인증을 우회하여 15레벨 권한 사용자를 생성합니다. 악성 XML 콘텐츠가 Cisco의 webui 엔드포인트에서 이 익스플로잇을 가능하게 합니다. 이 도구는 익스플로잇뿐만 아니라 취약한 임플란트를 탐지하며, 대량 탐지 및 익스플로잇에도 사용할 수 있습니다!
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
익스플로잇 및 탐지 도구는 Horizona3의 이론적 PoC를 기반으로 개발되었습니다. https://www.horizon3.ai/cisco-ios-xe-cve-2023-20198-deep-dive-and-poc/ 이 PoC는 이 CVE에 대한 도구를 개발하는 데 도움이 되었으며, 탐지의 경우 취약한 Cisco 임플란트를 탐지할 수 있습니다. 그러나 적절한 익스플로잇을 위해 사용자는 악성 XML 콘텐츠를 제공해야 합니다. 이는 Horizona3의 이론적 PoC로, 사용자가 익스플로잇을 위해 제공해야 합니다. 이론적 설명만으로는 해야 하기 때문입니다. 그러나 곧 적절한 정보와 리소스를 통해 이 익스플로잇 및 탐지 도구를 업그레이드할 것입니다.
중요한 점: 비윤리적인 익스플로잇에 대해 저는 어떠한 불법 행위에도 책임을 지지 않습니다. 따라서 윤리적이고 합법적인 목적으로만 사용하십시오.
PoC는 D.Sanjai Kumar가 ♥️로 개발했습니다. 업그레이드나 오류에 대해서는 LinkedIn을 통해 연락 주세요. 감사합니다!