APT
  • Home
  • Archive
  • About
  • Explore
Subscribe
APT
Subscribe
APT

ATTACKING UNIX SYSTEMS VIA CUPS, PART I

APT
APT
Sep 26, 2024, 22:27 UTC

Forwarded from PT SWARM


ATTACKING UNIX SYSTEMS VIA CUPS, PART I

👤 by Simone Margaritelli

A remote unauthenticated attacker can silently replace existing printers’ (or install new ones) IPP urls with a malicious one, resulting in arbitrary command execution (on the computer) when a print job is started (from that computer).

Entry Points

  • WAN / public internet: a remote attacker sends an UDP packet to port 631. No authentication whatsoever.
  • LAN: a local attacker can spoof zeroconf / mDNS / DNS-SD advertisements and achieve the same code path leading to RCE.

RCE chain

  • Force the target machine to connect back to our malicious IPP server.
  • Return an IPP attribute string that will inject controlled PPD directives to the temporary file.
  • Wait for a print job to be sent to our fake printer for the PPD directives, and therefore the command, to be executed.

📝 Contents:
● Summary
● Intro
● What is cups-browsed?
● Stack Buffer Overflows and Race Conditions
● Back to found_cups_printer
● Internet Printing Protocol
● PostScript Printer Description
● The problematic child: foomatic-rip
● Remote Command Execution chain
● Personal Considerations
● One More Thing

https://www.evilsocket.net/2024/09/26/Attacking-UNIX-systems-via-CUPS-Part-I/

👍8❤1👎15,330 views
APT

Discuss this post in Telegram

React, comment and get new posts first in the APT channel — 17.7K subscribers.

Open post in TelegramSubscribe

More from APT

  • Certighost (CVE-2026-54121) — AD CS Domain Controller Impersonation
    Jul 24, 2026 · 32.3K views
  • DirtyClone — CVE-2026-43503
    Jun 26, 2026 · 29.9K views
  • P³ — Shellcode Loader: Process Parameter Poisoning
    Jul 9, 2026 · 16.8K views
  • Citrix NetScaler Pre-Auth RCE (CVE-2026-8452)
    Aug 17, 2026 · 16.6K views
← PreviousRed Teaming in the age of EDR: Evasion of Endpoint Detection Through Malware Virtualisation
Next →Elevating Privileges in Windows via Activation Cache Poisoning
👍❤👎105.3Kviews
APT
APT
17.7K subscribers
Subscribe

This channel discusses: — Offensive Security — RedTeam — Malware Research — OSINT — etc Disclaimer: t.me/APT_Notes/6 Chat Link: t.me/APT_Notes_PublicChat

Popular

See all
  • Certighost (CVE-2026-54121) — AD CS Domain Controller Impersonation
    32.3K views · Jul 24, 2026
  • APT
    DirtyClone — CVE-2026-43503
    29.9K views · Jun 26, 2026
  • P³ — Shellcode Loader: Process Parameter Poisoning
    16.8K views · Jul 9, 2026
  • Citrix NetScaler Pre-Auth RCE (CVE-2026-8452)
    16.6K views · Aug 17, 2026
  • Certi-Bhai — IIS AppPool → NT AUTHORITY\SYSTEM via AD CS RPC
    11.5K views · Sep 1, 2026

Topics

Explore
#redteam#ad#bugbounty#windows#tools#pentest#cve#rce#bypass#edr#evasion#blueteam#bugbountytips#maldev
AboutArchiveTopicsRSSTelegram© 2026 APT