Note: This is an archival copy of Security Sun Alert 271169 as previously published on http://sunsolve.sun.com.
Latest version of this security advisory is available from http://support.oracle.com as Sun Alert 1021115.1.
Article ID : 1021115.1
Article Type : Sun Alerts (SURE)
Last reviewed : 2010-03-01
Audience : PUBLIC
Copyright Notice: Copyright © 2010, Oracle Corporation and/or its affiliates.

Multiple Security Vulnerabilities in the Common Unix Printing System (CUPS) Web Interface in OpenSolaris May Lead to Cross-Site Scripting (XSS) and HTTP Response Splitting Attacks



Category
Security

Release Phase
Resolved

Bug Id
6893187, 6905246

Product
OpenSolaris

Date of Workaround Release
10-Nov-2009

Date of Resolved Release
02-Mar-2010

Multiple Security Vulnerabilities in the Common Unix Printing System (CUPS) Web Interface in OpenSolaris May Lead to Cross-Site Scripting (XSS) and HTTP Response Splitting Attacks

1. Impact

The web interface of the Common Unix Printing System (CUPS) in versions 1.4.1 and earlier is impacted by multiple security vulnerabilities which may lead to Cross-Site Scripting (XSS) and HTTP Response Splitting Attacks. These vulnerabilities could allow an unprivileged local or remote user (depending on the CUPS configuration), to inject malicious client-side scripts or HTML into the CUPS web interface page.

These issues are also described in the following document:


2. Contributing Factors

These issues can occur in the following releases:

SPARC Platform
  • OpenSolaris based upon builds snv_87 through snv_130
x86 Platform
  • OpenSolaris based upon builds snv_87 through snv_130
Notes:

1. Solaris 8, 9, and 10 are not impacted by these issues.

2. OpenSolaris distributions may include additional bug fixes above and beyond the build from which it was derived. The base build
can be derived as follows:
$ uname -v
snv_101
3. These vulnerabilities only affect OpenSolaris systems which have installed the CUPS package (SUNWcups). The SUNWcups package is not installed by default. To determine if the SUNWcups package is installed, the following command can be run:
$ pkg info SUNWcups
4. These vulnerabilities only affect OpenSolaris systems which have configured and enabled CUPS for printing. To determine if the CUPS has
been enabled, the following command can be run:
$ svcs cups/in-lpd
STATE STIME FMRI
enabled 20:03:32 svc:/application/cups/in-lpd:default
5. These vulnerabilities only affect CUPS versions 1.4.1 and earlier. To determine the version of CUPS on the system the following command can be run:
$ cups-config --version    
1.4.1
3. Symptoms

There are no predictable symptoms that would indicate the described vulnerabilities have been exploited.

4. Workaround

To prevent these issues from occurring, the CUPS services may be configured to disable access to the CUPS web interface by doing the following:

1. Comment out the following line from '/etc/cups/cupsd.conf':
Listen localhost:631
(or)
Port 631
2. Restart the cups/scheduler services:
# svcadm restart cups/in-lpd

# svcadm restart cups/scheduler

5. Resolution

These issues are addressed in the following releases:

SPARC Platform
  • OpenSolaris based upon builds snv_131 or later
x86 Platform
  • OpenSolaris based upon builds snv_131 or later

For more information on Security Sun Alerts, see 1009886.1.

Modification History
02-Mar-2010: Updated Contributing Factors and Resolution sections; now Resolved












Attachments
This solution has no attachment