Buffer Overflow Privilege Escalation
Baron Samedit (Heap Buffer Overflow) CVE-2021-3156
1. Check Vulnerability to Overwrite Heap Buffer in Target Machine
sudoedit -s '\' $(python3 -c 'print("A"*1000)')
malloc(): invalid size (unsorted)
Aborted2. Proof of Concept
Pwfeedback
1. Check Enabling the Pwfeedback in /etc/sudoers
cat /etc/sudoers
# -------------------------------------------
...
Defaults pwfeadback
...2. Input Long String to Password
3. Download a Payload and Compile in Local Machine
4. Transfer the Payload to Remote Machine
5. Execute the Payload in Remote Machine
Last updated