Pharos PopUp Printer Client DecodeString Code Execution Vulnerability
A heap-based buffer overflow in the DecodeString function of the Pharos PopUp printer client allows a remote attacker to send a crafted packet that triggers the overflow, potentially leading to remote code execution. The client runs with root privileges and listens continuously, requiring no user interaction.
Originally disclosed on Cisco Talos
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.
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 DecodeString function reads a length value directly from the attacker-controlled packet and uses it as the loop count in xor_decode without validating that the destination buffer is large enough, leading to a heap buffer overflow.
Impact
A remote, unauthenticated attacker could send a crafted packet to the always-listening, root-privileged client and potentially execute arbitrary code, though the report only demonstrates a crash.
What the attacker needed
Network access to the client; no user interaction
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 report describes a memory corruption bug in a printer program that runs in the background with high privileges. An attacker can send a specially crafted network message that causes the program to write more data than it should into a small memory buffer, which can crash the program or let the 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.