关联漏洞
描述
Tools for get offsets and adding patch for support i386
介绍
# Tools for CVE-2018-1000001
## Check vulnerability:
```
$ cat /proc/sys/kernel/unprivileged_userns_clone
```
Output:
```
1
```
If file "/proc/sys/kernel/unprivileged_userns_clone" does not exists:
```
$ unshare -mU /bin/sh -c "sleep 5" & /bin/sh -c "sleep 1; cd /proc/$!/cwd; realpath .; kill -9 $!"
```
The output must contain the string "(unreachable)" before '/':
```
[1] 12345
(unreachable)/home/user
```
## tool.so
Options are passed via Environment variables:
```
TRACE_DEBUG=1 - Value for printing debug information (Default: 0)
STACK_SIZE=100 - Size output data of stack (Default: 100)
```
How to run:
```
$ make
$ cp /bin/umount .
$ LD_PRELOAD="$(realpath tool.so)" TRACE_DEBUG=1 STACK_SIZE=100 ./umount /root
```
## More
https://www.halfdog.net/Security/2017/LibcRealpathBufferUnderflow/
文件快照
[4.0K] /data/pocs/928f8abbef149b5af1f6b17d626c04f2b4890baf
├── [9.9K] add_support_i386_RationalLove.patch
├── [ 86] Makefile
├── [ 803] README.md
└── [ 18K] tool.cpp
0 directories, 4 files
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。