
CVE-2022-0847 POC
CVE-2022-0847 POC - https://dirtypipe.cm4all.com/
此漏洞利用尝试使用 CVE-2022-0847 漏洞覆盖一个只读文件。
当运行 make exploit 时,它将:
read_only_file.txtdirtypipe 漏洞利用。dirtypipe 漏洞利用是否成功。你可以通过 make exploit 的输出来判断你的系统是否存在漏洞:
foo@bar:~$ make exploit # vulnerable
[*] Creating read_only_file.txt...
[*] Press any key to continue...
[*] Running exploit...
[*] Exploit was successful!
foo@bar:~$ make exploit # not vulnerable
[*] Creating read_only_file.txt...
[*] Press any key to continue...
[*] Running exploit...
[!] Exploit was not successful!
foo@bar:~$ cd /tmp # We don't need to keep these files.
foo@bar:~$ git clone https://github.com/breachnix/dirty-pipe-poc && cd dirty-pipe-poc
foo@bar:~$ make && make exploit # make & cc will need to be installed.
此漏洞影响高于 5.8 但低于 5.16.11、5.15.25 或 5.10.102 的任何内核版本。
你可以通过执行 uname -sr 来确定你的内核版本:
foo@bar:~$ uname -sr
Linux 5.10.0-12-amd64