Complex Attack Types: Sample Scenarios 44
The target system had an anonymous SMB share containing a file that, after decoding and steganography, led to credentials and a vulnerable sudo version. An attacker could exploit a buffer overflow in sudo's password feedback to gain root privileges.
In this new article, we will use our cryptological abilities together with our penetration skills and attempt to infiltrate the target system.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the sudo version was vulnerable to CVE-2019-18634, a buffer overflow when pwdfeedback is enabled.
Impact
An attacker could gain root privileges on the system, leading to full compromise.
What the attacker needed
Network access to target; anonymous SMB share; vulnerable sudo version
How it was found
- Scan the target with nmap to find open ports and services.
- Check SMB shares for anonymous access using smbmap or smbclient.
- Download a file from the anonymous share.
- Decode the file from Base64 and extract hidden data using steganography tools.
- Crack passwords for extracted archives and use them to SSH into the system.
- Exploit the sudo vulnerability to gain root access.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a walkthrough of a penetration test. The tester found an open file share that anyone could access without a password, and inside was a hidden file that eventually gave them a username and password. They then used a known bug in a system program to become the administrator (root).
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.