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

Natus Xltek EEG NeuroWorks RequestForPatientInfoEEGfile Code Execution Vulnerability

A stack buffer overflow in the NWStorage service of Natus Xltek NeuroWorks 8 occurs when processing a client-supplied file path in the RequestForPatientInfoEEGfile command. An attacker can send a crafted network packet to overwrite the Structured Exception Handler and achieve arbitrary code execution.

Cory Duplantis Follow

Originally disclosed on Cisco Talos

Critical 10.0 View original

An exploitable Code Execution vulnerability exists in the RequestForPatientInfoEEGfile functionality of Natus Xltek NeuroWorks 8. A specially crafted network packet can cause a stack buffer overflow resulting in arbitrary command execution.

Cory Duplantis, 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

The service uses sprintf to combine a temporary directory and a client-supplied filename into a fixed-size stack buffer without bounds checking, allowing a stack buffer overflow that overwrites the Structured Exception Handler.

Impact

An attacker can achieve arbitrary code execution with the privileges of the NWStorage service.

What the attacker needed

Network access to the NWStorage service

How it was found

  1. Send a network packet containing the RequestForPatientInfoEEGfile command with a crafted file path.
  2. The service extracts the filename using splitpath and combines it with a temp directory via sprintf into a stack buffer.
  3. The long filename overflows the buffer, overwriting the SEH chain.
  4. Trigger an exception before the stack cookie is checked, causing the overwritten exception handler to be called and leading to code execution.

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 software takes a file path from the network and copies it into a fixed-size memory area without checking length. If the path is too long, it spills over and overwrites a special pointer that the program uses when errors happen. An attacker can control that pointer 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

35 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.