Create root user in /etc/passwd via CVE-2021-3156
Create a root persistence user account "prelude" via the Heap-Based Buffer Overflow in Sudo (Baron Samedit) identified
in CVE-2021-3156. Sudo before 1.9.5p2 contains an off-by-one error that can result in a heap-based buffer overflow,
which allows privilege escalation to root via "sudoedit -s" and a command-line argument that ends with a single backslash
character. This appends a line to /etc/passwd so you can later `su prelude` using the generated password.
To view this TTPs command, you must be logged in with a professional or enterprise license.Login
Test this TTP
Download Operator (1.7.0)