[cups.bugs] [HIGH] STR #3169: "::1" not acceptable for Host: value from localhost

twaugh.redhat twaugh at redhat.com
Sun Apr 26 05:37:54 PDT 2009


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

When validating Host: values for local connections, "[::1]" is allowed but
"::1" is not.  Here is an instance where the Host: value can be "::1":

1. cupsd.conf is configured not to use a domain socket, but IPv6 is
configured on the system
2. CUPS-Get-Printers IPP request returns printer-uri-supported values of
the form 'ipp://[::1]:631/printers/...'
3. cupsGetPPD2() for such a printer will result in a
server-error-service-unavailable error, and the following error_log entry:

W [26/Apr/2009:13:28:10 +0100] Request from "localhost" using invalid
Host: field "::1"
D [26/Apr/2009:13:28:10 +0100] cupsdSendError: 27 code=400 (Bad Request)

Attached is a patch which simply adds "::1" to the list of allowable Host:
values for a local connection.

Original bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=497393

Link: http://www.cups.org/str.php?L3169
Version: 1.3.10
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cups-localhost-ipv6.patch
URL: <http://lists.cups.org/pipermail/cups-devel/attachments/20090426/1a8a3d90/attachment.ksh>


More information about the cups-devel mailing list