(Pwn2Own) Lexmark MC3224i Command Injection Remote Code Execution Vulnerability
A command injection flaw in the Lexmark MC3224i printer's handling of packet captures lets an attacker who can reach the device run arbitrary code as the www-data user. Authentication is nominally required, but the advisory states the existing authentication mechanism can be bypassed.
Originally disclosed on Zero Day Initiative
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Lexmark MC3224i printers. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.
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 packet-capture filter value is passed to a system call without validation or escaping, allowing command injection.
Impact
A network-adjacent attacker could execute arbitrary code as the www-data user on the printer, and although authentication is required, the advisory says the existing authentication mechanism can be bypassed.
What the attacker needed
Network-adjacent access to the printer; authentication bypass (per advisory)
The fix
Lexmark 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.
A printer runs a small web service that can process packet capture files. When it reads a filter setting from the user, it passes that text straight to the operating system as a command, so crafted text can make the printer run extra commands chosen by the attacker. The result is that the attacker can run their own code on the printer, though they first need to be on the same network and get past a login that the advisory says can be bypassed.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.