Skip to content
Path traversal Advisory Advanced

(Pwn2Own) Lexmark CX331adwe httpd extract-trace Link Following Local Privilege Escalation Vulnerability

The httpd daemon on Lexmark CX331adwe printers follows symbolic links when handling the extract-trace function, letting a local attacker create an arbitrary file. An attacker who already has low-privileged code execution can use this to escalate to root and run arbitrary code.

nella17 Follow

Originally disclosed on Zero Day Initiative

High 7.0 View original

This vulnerability allows local attackers to escalate privileges on affected installations of Lexmark CX331adwe printers. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.

nella17 (@nella17tw), working with DEVCORE Internship Program, and DEVCORE Research Team, on the Zero Day Initiative

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 httpd daemon's extract-trace handling follows symbolic links without checking where they point, allowing a file write to an attacker-chosen location.

Impact

A local attacker with low-privileged code execution could escalate to root and execute arbitrary code on the printer.

What the attacker needed

Low-privileged code execution on the device

The fix

It was fixed in firmware version CXLBL.230.408.

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 symbolic link is a shortcut file that points to another file. If a program follows that shortcut when writing a file, it can be tricked into writing somewhere it should not, such as a system file. Here the printer's web server daemon did this, so someone with limited access could gain full control of the printer.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More by nella17

View all

3 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.