Skip to content

fr33s0ul/CUPS-mitigation-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

CUPS Mitigation Script

Overview

This script mitigates a critical vulnerability (CVE-2024-47176 and related) in the CUPS printing service for Linux systems, rated 9.9/10. The script provides a way to disable vulnerable services, block CUPS network exposure, and revert changes once a patch is available.

How It Works:

  • Disables the cups-browsed service to stop automatic printer discovery.
  • Blocks access to UDP port 631 to protect the CUPS service from external threats.
  • Restricts CUPS to listen only on localhost, preventing network exposure.

Usage

Clone this repository to your local machine and make the script executable:

git clone https://github.com/fr33s0ul/CUPS-mitigation-script.git
cd CUPS-mitigation-script
chmod +x cups_mitigation.sh
  • To apply the mitigations:
sudo ./cups_mitigation.sh apply
  • To revert the changes after a patch is released:
sudo ./cups_mitigation.sh revert

License

This project is licensed under the MIT License.

About

A script to mitigate the critical CUPS vulnerability while waiting for a security patch.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages