Natus Xltek EEG NeuroWorks OpenProducer Code Execution Vulnerability
The NWStorage service in Natus Xltek NeuroWorks 8 parses a client-supplied KeyTree during the OpenProducer command and copies a user-controlled path into a fixed-size stack buffer without checking its length. An attacker sending a crafted network packet can overflow the stack, overwrite exception handlers and gain code execution.
Originally disclosed on Cisco Talos
An exploitable code execution vulnerability exists in the OpenProducer functionality of Natus Xltek NeuroWorks 8. A specially crafted network packet can cause a stack buffer overflow resulting in code execution.
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 a user-supplied path is copied into a fixed-size stack buffer via makepath.
Impact
An unauthenticated remote attacker could execute arbitrary code on the host running the service, with the advisory rating it as maximum severity.
What the attacker needed
Network access to the NWStorage service; no authentication required
How it was found
- Send a network packet containing an OpenProducer command to the NWStorage service.
- Include a KeyTree with a SlowReviewLocalPath key whose value is longer than the destination buffer.
- The service extracts the value and passes it through splitpath and makepath.
- The oversized value overflows the stack buffer and overwrites the exception handlers.
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.
The program keeps a short-term storage area called the stack for local data. When it copies a path supplied by the network into a fixed-size slot without checking the length, extra bytes spill over neighbouring data, including the addresses used to recover from errors. Because the attacker controls those bytes, they can redirect the program to run their own code.
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.