Skip to content
RCE Write-up Advanced

Exploit Development – A Sincere Form of Flattery

An unauthenticated RPC interface allowed privileged command execution. An attacker could run arbitrary OS commands on the vulnerable server.

moth Follow

Published on blackhillsinfosec.com

Recently, BHIS penetration tester Dale Hobbs was on an Internal Network Penetration Test and came across an RPC-based arbitrary command execution vulnerability in his vulnerability scan results.

moth, on blackhillsinfosec.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

What the attacker needed

Network access to the RPC service; no authentication required

How it was found

  1. Capture network traffic while the Nessus scanner runs the specific plugin against the target.
  2. In Wireshark, search the packet bytes for the command output (e.g., ipconfig) to find the relevant TCP stream.
  3. Switch the TCP stream view to Raw to see the bytes sent by the client.
  4. Build a Python/Scapy script that replicates the client's packets, including correct sequence and acknowledgement numbers.
  5. Add an iptables rule to drop outgoing packets to the target so the local OS does not reset the connection.
  6. Adjust packet options (window size, MSS, window scale) and command padding to match the observed traffic, then run the exploit.

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 about a service on a server that lets anyone run commands without logging in. The author used a network capture to see how a scanner exploited it, then wrote their own tool to do the same. The flaw is in an old remote procedure call (RPC) service that does not check who is asking.

What is RCE?

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

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.