Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
nginxpwn — 漏洞利用训练 -- CVE-2013-2028: Nginx 基于栈的缓冲区溢出 | Kitploit
工具/GitHubGitHub/kitctf/nginxpwn
漏洞分析漏洞利用调试器学习与教育二进制利用实验室与实践
GitHubkitctf/nginxpwn

nginxpwn

漏洞利用训练 -- CVE-2013-2028: Nginx 基于栈的缓冲区溢出

查看仓库
5517910年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

漏洞利用训练 -- CVE-2013-2028: Nginx 基于栈的缓冲区溢出

该仓库包含 nginx 1.4.0 源代码以及预编译的二进制文件(含和不含栈保护)。此外还提供了一个 Vagrantfile 以便快速搭建环境。

公告与补丁:http://mailman.nginx.org/pipermail/nginx-announce/2013/000112.html 漏洞分析文章:http://www.vnsecurity.net/research/2013/05/21/analysis-of-nginx-cve-2013-2028.html

Setup

root@kitploit:~
vagrant up
vagrant ssh

Running

root@kitploit:~
sudo /vagrant/bin/nginx1

Nginx 在虚拟机内暴露于 80 端口,在宿主机上通过 8080 端口访问。

root@kitploit:~
# 虚拟机内
curl 127.0.0.1

# 虚拟机外
curl 127.0.0.1:8080

Debugging

root@kitploit:~
sudo gdb /vagrant/bin/nginx1
gdb> set follow-fork-mode child
gdb> r

获取/生成这些文件

你不需要执行这些步骤来编写漏洞利用程序;这主要是为了记录。

获取源代码

root@kitploit:~
# 克隆仓库
hg clone http://hg.nginx.org/nginx
# 查看标签
hg tags
# 切换到 1.4.0
hg up 7809529022b8

构建

无栈保护:

root@kitploit:~
./auto/configure --without-http_rewrite_module --without-http_gzip_module
vim objs/Makefile
# 在 CFLAGS 中添加 '-fno-stack-protector'
make -j4
sudo make install

带栈保护:

root@kitploit:~
./auto/configure --without-http_rewrite_module --without-http_gzip_module
make -j4
sudo make install

运行

root@kitploit:~
# 网站根目录在 /usr/local/nginx/html/
sudo ./objs/nginx
下载工具