
CVE-2022-0847 POC
CVE-2022-0847 POC - https://dirtypipe.cm4all.com/
Este exploit tenta usar a vulnerabilidade CVE-2022-0847 para sobrescrever um arquivo somente leitura.
Quando make exploit for executado, ele irá:
read_only_file.txtdirtypipe.dirtypipe funcionou.Você pode determinar se o seu sistema está vulnerável pela saída do 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.
Esta vulnerabilidade afeta qualquer versão do kernel superior à 5.8, mas inferior a 5.16.11, 5.15.25 ou 5.10.102.
Você pode determinar a versão do seu kernel executando uname -sr:
foo@bar:~$ uname -sr
Linux 5.10.0-12-amd64