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

Pharos PopUp Printer Client DecodeBinary Code Execution Vulnerability

The psnotifyd component of the Pharos PopUp printer client trusts a length field taken from an incoming network packet and uses it to drive a decoding loop, so a crafted packet overflows a heap buffer with attacker-controlled data. Because the service listens continuously and runs as root, an attacker could achieve remote code execution without any user interaction.

Tyler Bohan Follow

Originally disclosed on Cisco Talos

Critical 10.0 View original

An exploitable buffer overflow exists in the psnotifyd application of the Pharos PopUp printer client version 9.0. A specially crafted packet can be sent to the victim’s computer and can lead to a heap based buffer overflow resulting in remote code execution.

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 DecodeBinary routine takes a length value straight from the packet and passes it to the XOR decode loop without validating it against the real buffer size, so the loop writes beyond the allocated heap buffer.

Impact

A remote, unauthenticated attacker could send a single crafted packet to the always-listening root service and achieve code execution with no user interaction, giving full control of the host.

What the attacker needed

Network access to the listening service; no user interaction needed

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.

This program sits in the background on a computer and waits for messages from the network. It reads a number in each message that says how long the data is, and it believes that number without checking it. If the number is far too big, the program keeps writing past the end of its memory, and an attacker can use that 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 Tyler Bohan

View all

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