CUPS Exploit: An Overview
A series of vulnerabilities in CUPS, including insufficient input validation and poor security practices, could allow an attacker to execute arbitrary code without authentication when a print job is initiated. The exploit involves creating a malicious printer configuration using an IPP URL, which triggers command execution during printing.
medium.com
Published on medium.com
If you’re using any of the following Linux distributions, you may want to pay close attention:
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could execute arbitrary code without authentication, but only when a print job is initiated; systems not using CUPS are safe.
What the attacker needed
CUPS installed and running; cups-browsed service enabled; attacker can reach UDP port 631; victim initiates a print job
The fix
There are no official patches at the time of writing; mitigation involves stopping and disabling the cups-browsed service, blocking UDP port 631, and setting BrowseRemoteProtocols to none.
How it was found
- The attacker creates a malicious printer configuration using an IPP URL.
- When a print job is initiated, the malicious configuration is triggered.
- The exploit can use an open UDP port (port 631) to inject malicious code, which executes during the print process without authentication.
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 write-up has not been written yet. The Original tab links to the source.
CUPS is a printing system used on Linux. These bugs mean that if someone sets up a malicious printer, your computer might run their code when you try to print. You need to have the printing service running and start a print job for the attack to work.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.