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

Natus Xltek EEG NeuroWorks SavePatientMontage Code Execution Vulnerability

A stack buffer overflow exists in the SavePatientMontage command of Natus Xltek NeuroWorks 8 because a client-supplied string is passed to makepath without length checking. An attacker can send a crafted network packet to overwrite exception handlers and achieve code execution.

Cory Duplantis Follow

Originally disclosed on Cisco Talos

Critical 9.0 View original

An exploitable code execution vulnerability exists in the SavePatientMontage 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

The makepath function does not ensure the resulting string fits in the supplied stack buffer, allowing a client-controlled string to overflow it.

Impact

An attacker could execute arbitrary code on the system by sending a malicious packet.

What the attacker needed

Network access to the NWStorage service

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 stack buffer overflow happens when a program copies more data into a fixed-size memory area than it can hold, so the extra data spills over and can overwrite important control information. Here, the program takes a file path from the network and copies it into a small buffer without checking its length. An attacker can send a very long path to take control of the program and 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.