Red Hat Security Advisory: jbossas security update
🔗 CVE IDs covered (3)
📋 Description
CVE-2005-2090 — tomcat multiple content-length header poisioning CVE-2007-0450 — tomcat directory traversal CVE-2007-1358 — tomcat accept-language xss flaw
🎯 Affected products10
- Red Hat Application Stack v1 for Enterprise Linux AS (v.4)
- Red Hat Application Stack v1 for Enterprise Linux ES (v.4)
- jbossas-0:4.0.5-2.CP04.el4s1.2.noarch as a component of Red Hat Application Stack v1 for Enterprise Linux AS (v.4)
- jbossas-0:4.0.5-2.CP04.el4s1.2.noarch as a component of Red Hat Application Stack v1 for Enterprise Linux ES (v.4)
- jbossas-0:4.0.5-2.CP04.el4s1.2.src as a component of Red Hat Application Stack v1 for Enterprise Linux AS (v.4)
- jbossas-0:4.0.5-2.CP04.el4s1.2.src as a component of Red Hat Application Stack v1 for Enterprise Linux ES (v.4)
- jbossas-ejb3-0:1.0.0-0.2.rc9.CP04.el4s1.2.noarch as a component of Red Hat Application Stack v1 for Enterprise Linux AS (v.4)
- jbossas-ejb3-0:1.0.0-0.2.rc9.CP04.el4s1.2.noarch as a component of Red Hat Application Stack v1 for Enterprise Linux ES (v.4)
- jbossas-ejb3-0:1.0.0-0.2.rc9.CP04.el4s1.2.src as a component of Red Hat Application Stack v1 for Enterprise Linux AS (v.4)
- jbossas-ejb3-0:1.0.0-0.2.rc9.CP04.el4s1.2.src as a component of Red Hat Application Stack v1 for Enterprise Linux ES (v.4)
✅ Remediation
Note: /etc/tomcat5/web.xml has been updated to disable directory listing by default. If you have previously modified /etc/tomcat5/web.xml, this change will not be made automatically and you should manually update the value for the "listings" parameter to "false". Note: In response to CVE-2007-0450, JBoss AS considers encoded slashes and backslashes in URLs invalid and its usage will result in HTTP 400 error. It is possible to allow encoded slashes and backslashes by following the steps outlined below, however doing so will expose you to CVE-2007-0450 related attacks: a) If you use the /var/lib/jbossas/bin/run.sh setup, please edit /etc/jbossas/run.conf and append -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true to the string assigned to JAVA_OPTS b) If you use the init script setup to run multiple JBoss AS services and you wish to allow encoding by default on all services, please edit /etc/jbossas/jbossas.conf and add the line JAVA_OPTS="${JAVA_OPTS} -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true" c) If you use the init script setup to run multiple JBoss AS services and want to allow encoding of slashes and backslashes for a particular service, please edit /etc/sysconfig/${NAME} (where NAME is the name of your service) and add the line JAVA_OPTS="${JAVA_OPTS} -Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true -Dorg.apache.catalina.connector.CoyoteAdapter.ALLOW_BACKSLASH=true" Before applying this update, make sure that all previously-released errata relevant to your system have been applied. This update is available via Red Hat Network. Details on how to use the Red Hat Network to apply this update are available at http://kbase.redhat.com/faq/FAQ_58_10188
🔗 References (5)
- selfhttps://access.redhat.com/errata/RHSA-2007:0360
- externalhttps://access.redhat.com/security/updates/classification/#important
- externalhttp://tomcat.apache.org/security-5.html
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=238574
- selfhttps://security.access.redhat.com/data/csaf/v2/advisories/2007/rhsa-2007_0360.json