
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