first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled

This commit is contained in:
2025-09-06 16:08:15 +08:00
commit 63285f61aa
2624 changed files with 88491 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
# GitLab 任意文件读取漏洞CVE-2016-9086
GitLab是一款Ruby开发的Git项目管理平台。在8.9版本后添加的“导出、导入项目”功能,因为没有处理好压缩包中的软连接,已登录用户可以利用这个功能读取服务器上的任意文件。
参考链接:
- https://about.gitlab.com/releases/2016/11/02/cve-2016-9086-patches/
- https://hackerone.com/reports/178152
- http://paper.seebug.org/104/
## 测试环境
执行如下命令启动一个GitLab Community Server 8.13.1
```
docker compose up -d
```
环境运行后,访问`http://your-ip:8080`即可查看GitLab主页其ssh端口为10022默认管理员账号、密码是`root``vulhub123456`
> 注意请使用2G及以上内存的VPS或虚拟机运行该环境实测1G内存的机器无法正常运行GitLab运行后502错误
## 漏洞复现
注册并登录用户,新建一个项目,点击`GitLab export`
![](2.png)
在导入页面,将[test.tar.gz](test.tar.gz)上传,将会读取到`/etc/passwd`文件内容:
![](1.png)