Gaining a Foothold: Exploiting the UnrealIRCd Backdoor with Metasploit
The text describes a deliberately vulnerable UnrealIRCd [redacted] distribution that had been tampered with to include a Trojan-horse backdoor, tracked as CVE-2010-2075, allowing remote command execution. It walks through using a Metasploit exploit module against a lab target to obtain a command shell.
One day while solving the Jr. Penetration Tester room, I came across something particularly interesting something I believe every beginner in penetration testing should understand.
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
The distributed source archive of UnrealIRCd [redacted] had been modified before release to include a hidden backdoor that executes attacker-supplied commands.
Impact
An attacker could execute arbitrary commands on a server running the tampered release, potentially obtaining a command shell, though the text only demonstrates this in a controlled lab.
What the attacker needed
Network access to the IRC service; target runs the tampered [redacted] build; Metasploit installed on attacker side
The fix
The tampered distribution should be replaced with a clean, verified release, since the text does not describe an official patch.
How it was found
- Start the Metasploit console.
- Search the module database for the UnrealIRCd exploit.
- Load the matching exploit module.
- Inspect the module options and set the target host and port.
- Choose a compatible payload and run the exploit.
- Check whether a command shell or session was obtained.
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.
UnrealIRCd is a chat server program. In this case the downloadable copy of the program had been secretly altered by someone so that it would accept hidden commands from a stranger over the network, letting that stranger run commands on the machine. This is not a coding mistake but a tampered release, which is why it is called a backdoor.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.