Nineteen of Twenty-One Were Patched. The Exploit Needed a Switch.
A chain of vulnerabilities in N-able N-central allowed an unauthenticated attacker to execute commands as root, but only when the Legacy API was enabled. Nineteen of twenty-one servers mining Monero had the latest hotfix yet still had that non-default setting turned on.
Published on meetcyber.net
At 12:50 UTC on November 12, the wallet behind an XMRig campaign had 21 rigs submitting shares, each labelled nc plus an IP address. Every one of those addresses served N-central's login page.
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 legacy SOAP API services were left enabled on production servers, and one endpoint constructed a terminal-settings class from attacker-controlled SOAP fault data before validating its type, leading to command execution.
Impact
An attacker could execute commands as root on N-central servers that had the Legacy API enabled, and at least 21 such servers were observed mining Monero; the exploit required that non-default setting, and the text does not confirm whether all 19 patched servers were compromised before or after the hotfix.
What the attacker needed
Legacy API enabled (non-default); Network access to the N-central server
The fix
Hotfix 3 will permanently remove access to the Legacy API, rather than just defaulting it off.
How it was found
- Enable the Legacy API on the N-central server (non-default configuration).
- Send a malformed SOAP fault body to the public Axis endpoint.
- The endpoint constructs a JLine terminal-settings class from the fault data without validating its type.
- JLine passes the value to sh -c as the nable user.
- Use a helper chain (setLDFileOwner, then serverControl) 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.
N-central is software that managed service providers use to manage many computers. A 'legacy API' is an old way for other programs to talk to it, kept for compatibility. The bug let someone send a specially crafted request to that old interface and run commands on the server, but only if the old interface had been switched on. Many servers still had it on even after patching, so they were still vulnerable.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.