Create root user in /etc/passwd via CVE-2021-3156

/static/assets/linux-logo.svg
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.
locked
View Command

To view this TTPs command, you must be logged in with a professional or enterprise license.

Login

Test this TTP

Download Operator (1.7.1)
Test this TTP using one of our Operator chains
Baron Samedit (Persistence)

2021-08-10

/static/assets/linux-logo.svg
Leverage a Heap-Based Buffer Overflow in Sudo to create a persistence user.