RedHat: Important: mod_jk security update
Posted by Benjamin D. Thomas   
RedHat Linux Updated mod_jk packages that fix a security issue are now available for Red Hat Application Server.If Tomcat was used behind mod_jk and configured to only proxy some contexts, an attacker could construct a carefully crafted HTTP request to work around the context restriction and potentially access non-proxied content. This update has been rated as having Important security impact by the Red Hat Security Response Team.
- ---------------------------------------------------------------------
                   Red Hat Security Advisory

Synopsis:          Important: mod_jk security update
Advisory ID:       RHSA-2007:0380-01
Advisory URL:      https://rhn.redhat.com/errata/RHSA-2007-0380.html
Issue date:        2007-05-30
Updated on:        2007-05-30
Product:           Red Hat Application Server
CVE Names:         CVE-2007-1860 
- ---------------------------------------------------------------------

1. Summary:

Updated mod_jk packages that fix a security issue are now available for Red
Hat Application Server.

This update has been rated as having Important security impact by the Red
Hat Security Response Team.

2. Relevant releases/architectures:

Red Hat Application Server v2 4AS - i386, ia64, ppc, x86_64
Red Hat Application Server v2 4ES - i386, ia64, x86_64
Red Hat Application Server v2 4WS - i386, ia64, x86_64

3. Problem description:

mod_jk is a Tomcat connector that can be used to communicate between Tomcat
and the Apache HTTP Server 2.

Versions of mod_jk before 1.2.23 decoded request URLs by default inside
Apache httpd and forwarded the encoded URL to Tomcat, which itself did a
second decoding.  If Tomcat was used behind mod_jk and configured to only
proxy some contexts, an attacker could construct a carefully crafted HTTP
request to work around the context restriction and potentially access
non-proxied content (CVE-2007-1860).

Users of mod_jk should upgrade to these updated packages, which address
this issue by changing the default so mod_jk forwards the original
unchanged request URL to Tomcat.

4. Solution:

Before applying this update, make sure all previously released errata
relevant to your system have been applied.

To update all RPMs for your particular architecture, run:

rpm -Fvh [filenames]

where [filenames] is a list of the RPMs you wish to upgrade. Only those
RPMs which are currently installed will be updated. Those RPMs which are
not installed but included in the list will not be updated. Note that you
can also use wildcards (*.rpm) if your current directory *only* contains
the desired RPMs.

Please note that this update is also available via Red Hat Network. Many
people find this an easier way to apply updates. To use Red Hat Network,
launch the Red Hat Update Agent with the following command:

up2date

This will start an interactive process that will result in the appropriate
RPMs being upgraded on your system.

5. Bug IDs fixed (http://bugzilla.redhat.com/):

237656 - CVE-2007-1860 mod_jk sends decoded URL to tomcat

6. RPMs required:

Red Hat Application Server v2 4AS:

SRPMS:
ftp://updates.redhat.com/enterprise/4AS/en/RHAPS/SRPMS/mod_jk-1.2.20-1jpp_2rh.src.rpm
883f1b29d7dee41de447c7aecba31083  mod_jk-1.2.20-1jpp_2rh.src.rpm

i386:
6979d0862a4193ecbaedd04e2bb1a5c1  mod_jk-ap20-1.2.20-1jpp_2rh.i386.rpm
81371f24957e332cdaecef9b04b15985  mod_jk-debuginfo-1.2.20-1jpp_2rh.i386.rpm
bb67ee0848431760561be4c80492d2f4  mod_jk-manual-1.2.20-1jpp_2rh.i386.rpm

ia64:
faf0dd1aa5ccfaee3bb67fab4b103fc4  mod_jk-ap20-1.2.20-1jpp_2rh.ia64.rpm
5b8e9c14f7e709c3dbe54826f2ffa65a  mod_jk-debuginfo-1.2.20-1jpp_2rh.ia64.rpm
19203b631cc11b55bd85fedae2f1052a  mod_jk-manual-1.2.20-1jpp_2rh.ia64.rpm

ppc:
2d8b55fd697953d5235c1fbd311d1ad8  mod_jk-ap20-1.2.20-1jpp_2rh.ppc.rpm
97e810560dc2af69ca1bd71a609db7d4  mod_jk-debuginfo-1.2.20-1jpp_2rh.ppc.rpm
2998617c466085bcaea6538727eed4b9  mod_jk-manual-1.2.20-1jpp_2rh.ppc.rpm

x86_64:
a20898cc285d4b2853833ca7a94a96c6  mod_jk-ap20-1.2.20-1jpp_2rh.x86_64.rpm
6a4bc110c4603e3f89d8e761fb62b15d  mod_jk-debuginfo-1.2.20-1jpp_2rh.x86_64.rpm
81d988f6bec1742891a9957f8ee76cd1  mod_jk-manual-1.2.20-1jpp_2rh.x86_64.rpm

Red Hat Application Server v2 4ES:

SRPMS:
ftp://updates.redhat.com/enterprise/4ES/en/RHAPS/SRPMS/mod_jk-1.2.20-1jpp_2rh.src.rpm
883f1b29d7dee41de447c7aecba31083  mod_jk-1.2.20-1jpp_2rh.src.rpm

i386:
6979d0862a4193ecbaedd04e2bb1a5c1  mod_jk-ap20-1.2.20-1jpp_2rh.i386.rpm
81371f24957e332cdaecef9b04b15985  mod_jk-debuginfo-1.2.20-1jpp_2rh.i386.rpm
bb67ee0848431760561be4c80492d2f4  mod_jk-manual-1.2.20-1jpp_2rh.i386.rpm

ia64:
faf0dd1aa5ccfaee3bb67fab4b103fc4  mod_jk-ap20-1.2.20-1jpp_2rh.ia64.rpm
5b8e9c14f7e709c3dbe54826f2ffa65a  mod_jk-debuginfo-1.2.20-1jpp_2rh.ia64.rpm
19203b631cc11b55bd85fedae2f1052a  mod_jk-manual-1.2.20-1jpp_2rh.ia64.rpm

x86_64:
a20898cc285d4b2853833ca7a94a96c6  mod_jk-ap20-1.2.20-1jpp_2rh.x86_64.rpm
6a4bc110c4603e3f89d8e761fb62b15d  mod_jk-debuginfo-1.2.20-1jpp_2rh.x86_64.rpm
81d988f6bec1742891a9957f8ee76cd1  mod_jk-manual-1.2.20-1jpp_2rh.x86_64.rpm

Red Hat Application Server v2 4WS:

SRPMS:
ftp://updates.redhat.com/enterprise/4WS/en/RHAPS/SRPMS/mod_jk-1.2.20-1jpp_2rh.src.rpm
883f1b29d7dee41de447c7aecba31083  mod_jk-1.2.20-1jpp_2rh.src.rpm

i386:
6979d0862a4193ecbaedd04e2bb1a5c1  mod_jk-ap20-1.2.20-1jpp_2rh.i386.rpm
81371f24957e332cdaecef9b04b15985  mod_jk-debuginfo-1.2.20-1jpp_2rh.i386.rpm
bb67ee0848431760561be4c80492d2f4  mod_jk-manual-1.2.20-1jpp_2rh.i386.rpm

ia64:
faf0dd1aa5ccfaee3bb67fab4b103fc4  mod_jk-ap20-1.2.20-1jpp_2rh.ia64.rpm
5b8e9c14f7e709c3dbe54826f2ffa65a  mod_jk-debuginfo-1.2.20-1jpp_2rh.ia64.rpm
19203b631cc11b55bd85fedae2f1052a  mod_jk-manual-1.2.20-1jpp_2rh.ia64.rpm

x86_64:
a20898cc285d4b2853833ca7a94a96c6  mod_jk-ap20-1.2.20-1jpp_2rh.x86_64.rpm
6a4bc110c4603e3f89d8e761fb62b15d  mod_jk-debuginfo-1.2.20-1jpp_2rh.x86_64.rpm
81d988f6bec1742891a9957f8ee76cd1  mod_jk-manual-1.2.20-1jpp_2rh.x86_64.rpm

These packages are GPG signed by Red Hat for security.  Our key and 
details on how to verify the signature are available from
https://www.redhat.com/security/team/key/#package

7. References:

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-1860
http://www.redhat.com/security/updates/classification/#important

8. Contact:

The Red Hat security contact is .  More contact
details at https://www.redhat.com/security/team/contact/

Copyright 2007 Red Hat, Inc.