NoMachine nxwebrunner Heap-based Buffer Overflow Remote Code Execution Vulnerability
The NoMachine web service on TCP port 4443 fails to validate the length of user-supplied data before copying it into a heap buffer. A remote, unauthenticated attacker could exploit this to execute arbitrary code as the service account.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of NoMachine. Authentication is not required to exploit this vulnerability.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a missing length check before copying user-supplied data into a fixed-size heap buffer.
Impact
A remote, unauthenticated attacker could execute arbitrary code in the context of the service account.
What the attacker needed
Network access to TCP port 4443; no authentication required
The fix
The vendor fixed the flaw in versions 10.1.7, 9.9.6 and 8.27.1.
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 report has not been written yet. The Original tab links to the source.
A heap buffer is a chunk of memory the program uses to hold data. The program copies data supplied by a user into that chunk without first checking how big the data is, so a larger input can spill past the end and overwrite nearby memory. An attacker can use that to run their own code on the server without logging in.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.