File cups-2.2.7-CVE-2023-32360.patch of Package cups

--- conf/cupsd.conf.in.orig	2018-03-23 04:48:36.000000000 +0100
+++ conf/cupsd.conf.in	2023-09-06 13:37:04.407384734 +0200
@@ -59,7 +59,14 @@ WebInterface @CUPS_WEBIF@
     Order deny,allow
   </Limit>
 
-  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
+  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job>
+    Require user @OWNER @SYSTEM
+    Order deny,allow
+  </Limit>
+
+  # Require authentication for CUPS-Get-Document otherwise unauthenticated users could access print job documents:
+  <Limit CUPS-Get-Document>
+    AuthType Default
     Require user @OWNER @SYSTEM
     Order deny,allow
   </Limit>
openSUSE Build Service is sponsored by