Skip to content
RCE Write-up Intermediate

SOC329 — CUPS RCE Detection via IPP Injection (CVE-2024–47177)

The CUPS printing service mishandled the FoomaticRIPCommandLine setting, allowing an attacker to inject commands through the IPP protocol. The attacker used this to create a reverse shell and run commands on the host.

Ghostploit Follow

Published on infosecwriteups.com

Hello, my digital adventurers! Today, I’m going to investigate one of the LetsDefend alerts about CVE-2024–47177 to analyze its impact and potential threats.

Ghostploit, on infosecwriteups.com

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 printing system did not properly sanitise the FoomaticRIPCommandLine setting, allowing injected commands to be executed.

Impact

The attacker could execute arbitrary commands on the host, including creating a reverse shell, and began enumerating the system.

What the attacker needed

CUPS service exposed on UDP 631; Attacker can send IPP requests

How it was found

  1. Search for the source IP address in the log management page to find related logs.
  2. Connect to the Bernard host and check the CUPS service at localhost:631.
  3. Check CUPS access logs under /var/log/cups.
  4. Open the PCAP file and filter for the source IP address to see CUPS and IPP traffic.
  5. Check the Endpoint Security page for commands showing exploitation, including reverse shell attempts and whoami.

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 many computers. A flaw let an attacker send a special printing request that made the computer run the attacker's commands, giving them control of the machine.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Ghostploit

View all

7 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.