From Unauthenticated Access to Full Root Compromise: A Linux Pene
An exposed distccd service allowed unauthenticated remote code execution, giving a low-privileged shell. The outdated Linux kernel (3.2.x) was then exploited with Dirty COW to obtain root access.
Published on medium.com
In today’s cybersecurity landscape, outdated services and unpatched systems remain a critical attack vector. Recently, I conducted a hands-on Linux penetration testing exercise to simulate a real-world attack scenario, and the results reinforced how chained vulnerabilities can lead to full system compromise.
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 an unpatched distccd service exposed to the network and an end-of-life Linux kernel with known privilege escalation flaws.
Impact
An attacker could gain full administrative control over the Linux server, leading to complete compromise.
What the attacker needed
Distccd service exposed and unpatched; Linux kernel 3.2.x (end-of-life); gcc and wget/curl installed on target
The fix
The text recommends regular patch management, system hardening, and monitoring; it does not state that the issues were fixed.
How it was found
- Perform network reconnaissance with Nmap to find exposed services.
- Identify distccd as vulnerable to unauthenticated RCE.
- Exploit distccd to gain a low-privileged shell.
- Enumerate local users, sudo rights, kernel version, and installed tools.
- Compile and run the Dirty COW exploit to escalate to root.
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.
A service called distccd, used for distributed compiling, was left running and could be abused to run commands without logging in. Once inside, the old Linux kernel had a known flaw (Dirty COW) that let a normal user 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.