(Pwn2Own) Lexmark CX532adwe esfhelper Untrusted Search Path Local Privilege Escalation Vulnerability
The esfhelper binary on Lexmark CX532adwe printers runs a program from an untrusted location, so a local attacker who already has low-privileged code execution can escalate to root. The vendor has released an update to correct the flaw.
Originally disclosed on Zero Day Initiative
This vulnerability allows local attackers to escalate privileges on affected installations of Lexmark CX532adwe printers. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.
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 the esfhelper binary searches for and executes a program using a path that an unprivileged user can influence, rather than an absolute trusted path.
Impact
A local attacker with low-privileged code execution could escalate privileges and run arbitrary code as root.
What the attacker needed
Local access to the printer; ability to run low-privileged code
The fix
The vendor issued an update to correct the vulnerability.
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.
Some programs start other programs by name and let the operating system search a list of folders to find them. If an attacker can put a file with the right name in a folder that is searched before the real one, their file gets run instead. Here that helper program runs with high privileges, so the attacker's file runs as root, the all-powerful account on the device.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.