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

Pharos PopUp Printer Client memcpy Code Execution Vulnerability

A heap-based buffer overflow exists in the psnotifyd application of the Pharos PopUp printer client version 9.0. A specially crafted packet sent to the victim's computer can trigger the overflow, potentially leading to remote code execution.

Tyler Bohan Follow

Originally disclosed on Cisco Talos

Critical 9.0 View original

A buffer overflows 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 potential 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

Likely an incorrect conditional check (using jump-if-not-zero instead of jump-if-zero) causes an infinite loop where the packet length is repeatedly decremented until it becomes negative, leading to an out-of-bounds write in a memcpy call.

Impact

A remote attacker could potentially execute arbitrary code with root privileges on the victim's machine, though the CVSS vector indicates high attack complexity and the text notes that multiple concurrent connections may be needed to stop the memcpy and create an exploitable condition.

What the attacker needed

Network access to the victim's machine; victim runs Pharos PopUp client 9.0; no user interaction required

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 printer client program runs in the background with high privileges and listens for network messages. A flaw in how it handles the length of incoming data causes it to write more data than it should into a memory buffer, which can crash the program or let an attacker 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.