module

CUPS IPP Attributes LAN Remote Code Execution

Disclosed
2024-09-26
Created
2024-11-22

Description

This module exploits vulnerabilities in OpenPrinting CUPS, which is running by
default on most Linux distributions. The vulnerabilities allow an attacker on
the LAN to advertise a malicious printer that triggers remote code execution
when a victim sends a print job to the malicious printer. Successful exploitation
requires user interaction, but no CUPS services need to be reachable via accessible
ports. Code execution occurs in the context of the lp user. Affected versions
are cups-browsed cups-filters

Authors

Simone Margaritelli
Rick de Jager
David Batley
Spencer McIntyre
RageLtMan rageltman@sempervictus
Ryan Emmons

Platform

Linux,Unix

Architectures

cmd

Module Options

To display the available options, load the module within the Metasploit console and run the commands ‘show options’ or ‘show advanced’:


msf > use exploit/multi/misc/cups_ipp_remote_code_execution
msf exploit(cups_ipp_remote_code_execution) > show targets
...targets...
msf exploit(cups_ipp_remote_code_execution) > set TARGET < target-id >
msf exploit(cups_ipp_remote_code_execution) > show options
...show and set options...
msf exploit(cups_ipp_remote_code_execution) > exploit

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.