Skip to content
Memory corruption Advisory Advanced CVE-2017-2869

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.

Cory Duplantis Follow

Originally disclosed on Cisco Talos

Critical 10.0 View original

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.

Cory Duplantis and Tyler Bohan, on Cisco Talos

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

  1. Send a network packet containing an OpenProducer command to the NWStorage service.
  2. Include a KeyTree with a SlowReviewLocalPath key whose value is longer than the destination buffer.
  3. The service extracts the value and passes it through splitpath and makepath.
  4. 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.

More by Cory Duplantis

View all

2 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.