Skip to content
RCE Write-up Advanced

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.

brsdncr Follow

Published on medium.com

In this new article, we will use our cryptological abilities together with our penetration skills and attempt to infiltrate the target system.

Baris Dincer, on medium.com

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

  1. Scan the target with nmap to find open ports and services.
  2. Check SMB shares for anonymous access using smbmap or smbclient.
  3. Download a file from the anonymous share.
  4. Decode the file from Base64 and extract hidden data using steganography tools.
  5. Crack passwords for extracted archives and use them to SSH into the system.
  6. 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.

More by brsdncr

View all

7 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.