CVE-2024-47076, CVE-2024-47175, CVE-2024-47176, CVE-2024-47177: Everything you need to know
Several vulnerabilities in CUPS and IPP packages allow a remote, unauthenticated attacker to replace or add a malicious printer configuration on a victim's system. When a print job is initiated, the attacker's printer can execute arbitrary commands on the requesting system.
The security researcher Simone Margaritelli (evilsocket), disclosed details of several vulnerabilities impacting CUPS and IPP packages: CVE-2024-47176, CVE-2024-47076, CVE-2024-47175, and CVE-2024-47177. These vulnerabilities are unlikely to be exploited in most cloud environments due to their requirements for…
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
Root cause
Likely, the cups-browsed service accepts printer information from untrusted sources without proper validation, allowing an attacker to inject a malicious printer configuration that includes commands to be executed.
Impact
An attacker could execute arbitrary commands on the victim's system, typically as the unprivileged 'lp' user, but exploitation is unlikely in cloud environments because UDP port 631 is rarely open and printing devices are rarely used.
What the attacker needed
UDP port 631 open or local LAN access; Victim initiates a print job; cups-browsed service running
The fix
Patches were released by some vendors; mitigations include avoiding exposure of UDP port 631, stopping or disabling cups-browsed, and setting BrowseRemoteProtocols to dnssd in cups-browsed.conf.
How it was found
- Send a UDP packet to port 631 or spoof DNS advertisements on a local LAN.
- Replace or install a printer configuration on the victim's system that points to the attacker's system.
- Initiate a print job from the affected system to trigger command execution.
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.
These bugs are in the software that helps computers find and use printers. An attacker on the same network can trick a computer into thinking a malicious printer is available. When someone tries to print, the malicious printer can run harmful commands on their computer.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.