You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
Activity
michaelrsweet commentedon Jan 31, 2014
CUPS.org User: mike
Alex,
I'm unable to reproduce. Can you provide me with your cupsd.conf file?
michaelrsweet commentedon Jan 31, 2014
CUPS.org User: alexk
Attached both cupsd.conf and cups-files.conf
michaelrsweet commentedon Feb 19, 2014
CUPS.org User: mike
OK, so this could still be an issue with current versions of CUPS.
The simplest fix is to block any such URL, probably in the is_path_absolute function.
michaelrsweet commentedon Feb 19, 2014
CUPS.org User: mike
Fixed in Subversion repository.
Holding as "private/pending" until we release 1.7.2.
The attached patch updates is_absolute_path() to check for < and quotes, and yields a "forbidden" error if you try to access the URL in your example.
michaelrsweet commentedon Feb 19, 2014
CUPS.org User: alexk
Thanks, looks like the patch works with 1.6.4 as well.
michaelrsweet commentedon Apr 10, 2014
CUPS.org User: mike
Fixed in Subversion repository.
michaelrsweet commentedon Apr 10, 2014
"cupsd.conf":
ServerName printserver
ServerAlias *
Include /etc/cups/cups-files.conf
MaxLogSize 1000000000
Log general information in error_log - change "info" to "debug" for
troubleshooting...
LogLevel info
Only listen for connections from the local machine.
Port 631
SSLPort 443
MaxClients 20000
MaxClientsPerHost 1000
Max jobs per server, and per printer
MaxJobs 250
MaxJobsPerPrinter 25
Don't store job files
PreserveJobFiles Off
FilterNice 5
Browsing configuration varies per host; include it as a separate file
Browsing off
Default authentication type, when authentication is required...
DefaultAuthType Basic
Do not pause printers on communication errors
ErrorPolicy retry-job
Use papersize from PPD, don't enforce it
DefaultPaperSize none
Restrict access to the server...
Encryption RequiredRestrict access to the admin pages...
<Location /admin>
Encryption Required
Require user @System @printer-admins
Restrict access to configuration files...
<Location /admin/conf>
Encryption Required
Require user @System @printer-admins
Set the default printer/job policies...
JobPrivateAccess @owner @System @printer-admins JobPrivateValues job-nameJob-related operations must be done by the owner or an adminstrator...
Require user @owner @SystemJob-related operations must be done by the owner or an printer support...
Require user @owner @System @printer-adminsAll administration operations require an adminstrator to authenticate...
Require user @System @printer-adminsOnly allow system and role accounts to create new print queues.
Require user @SystemOnly the owner or an administrator can cancel or authenticate a job...
Require user @owner @System @printer-admins Order deny,allowmichaelrsweet commentedon Apr 10, 2014
"cups-files.conf":
ConfigFilePerm 0644
LogFilePerm 0644
AccessLog syslog
PageLog syslog
Administrator user group...
SystemGroup root cups-admins
ServerCertificate /etc/cups/ssl/server.crt
ServerKey /etc/cups/ssl/server.key
michaelrsweet commentedon Apr 10, 2014
"str4356.patch":
Index: scheduler/client.c
--- scheduler/client.c (revision 11597)
+++ scheduler/client.c (working copy)
@@ -3316,6 +3316,14 @@
return (0);
/*
*/