PaperCut NG image-handler Directory Traversal Local Privilege Escalation Vulnerability
The Web Print Image Handler in PaperCut NG fails to validate a user-supplied path before using it in file operations, allowing a local attacker with low-privileged code execution to escalate to SYSTEM and run arbitrary code.
Originally disclosed on Zero Day Initiative
This vulnerability allows local attackers to escalate privileges on affected installations of PaperCut NG. 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
Impact
An attacker could escalate privileges and execute arbitrary code in the context of SYSTEM.
What the attacker needed
Ability to execute low-privileged code
The fix
PaperCut has issued an update to correct this 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.
This is a local privilege escalation bug in PaperCut NG. An attacker who can already run low-privileged code on the machine can trick the Web Print Image Handler into using a file path it should not, and because the service runs with high privileges, the attacker can gain full control of the system.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.