SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Web Server/CGI)  >   Red Hat JBoss Vendors:   Red Hat
(Red Hat Issues Fix for JBoss) Apache HTTPD CGI Application "Proxy:" Header Processing Flaw Lets Remote Users Redirect the Target CGI Application Requests to an Arbitrary Web Proxy in Certain Cases
SecurityTracker Alert ID:  1036663
SecurityTracker URL:  http://securitytracker.com/id/1036663
CVE Reference:   CVE-2016-5387   (Links to External Site)
Date:  Aug 19 2016
Impact:   Disclosure of system information, Disclosure of user information, Host/resource access via network, Modification of system information, Modification of user information
Fix Available:  Yes  Vendor Confirmed:  Yes  Exploit Included:  Yes  

Description:   A vulnerability reported in CGI applications that run on Apache HTTPD. A remote user can redirect the target CGI application requests to an arbitrary web proxy in certain cases. JBoss is affected.

On systems where the Apache HTTPD server is configured to proxy HTTP requests and the target CGI application relies on the HTTP_PROXY environment variable in a trusted manner, a remote user can send (or can conduct a man-in-the-middle attack to insert or modify) a specially crafted HTTP "Proxy:" header to cause the target CGI application to proxy HTTP connections to an arbitrary port on an arbitrary server. This can be exploited to set the HTTP_PROXY variable on the target CGI application server and cause CGI application server internal requests to be proxied, in certain cases.

The vulnerability resides in the CGI applications that use the HTTP_PROXY variable.

[Editor's note: This is not an Apache HTTPD vulnerability, per se. Rather, it is a vulnerability in CGI modules or applications that may run on Apache HTTPD or other web server platforms.]

Other CGI application platforms are affected.

The original advisory is available at:

https://httpoxy.org/

Dominic Scheirlinck and Scott Geary of Vend reported this vulnerability. Other researchers have reported aspects of this vulnerability affecting various applications since at least 2001.

Impact:   A remote user that can conduct a man-in-the-middle attack can redirect the target CGI application requests to an arbitrary web proxy in certain cases.
Solution:   Red Hat has issued a fix for JBoss.

The Red Hat advisory is available at:

https://access.redhat.com/errata/RHSA-2016:1636

Vendor URL:  access.redhat.com/errata/RHSA-2016:1636 (Links to External Site)
Cause:   Access control error
Underlying OS:  Linux (Red Hat Enterprise)
Underlying OS Comments:  6

Message History:   This archive entry is a follow-up to the message listed below.
Jul 18 2016 Apache HTTPD CGI Application "Proxy:" Header Processing Flaw Lets Remote Users Redirect the Target CGI Application Requests to an Arbitrary Web Proxy in Certain Cases



 Source Message Contents

Subject:  [RHSA-2016:1636-01] Important: Red Hat JBoss Web Server 3.0.3 Service Pack 1 security update

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

=====================================================================
                   Red Hat Security Advisory

Synopsis:          Important: Red Hat JBoss Web Server 3.0.3 Service Pack 1 security update
Advisory ID:       RHSA-2016:1636-01
Product:           Red Hat JBoss Web Server
Advisory URL:      https://access.redhat.com/errata/RHSA-2016:1636
Issue date:        2016-07-22
Updated on:        2016-08-18
CVE Names:         CVE-2016-5387 CVE-2016-5388 
=====================================================================

1. Summary:

Updated packages that provide Red Hat JBoss Web Server 3.0.3 Service Pack 1
and fixes two security issues and a bug with ajp processors are now
available for Red Hat Enterprise Linux 6.

Red Hat Product Security has rated this update as having a security impact
of Important. A Common Vulnerability Scoring System (CVSS) base score,
which gives a detailed severity rating, is available for each vulnerability
from the CVE link(s) in the References section.

2. Relevant releases/architectures:

Red Hat JBoss Web Server 3.0 for RHEL 6 - i386, noarch, x86_64

3. Description:

This release of Red Hat JBoss Web Server 3.0.3 Service Pack 1 serves as a
update for Red Hat JBoss Web Server 3.0.3 httpd and tomcat.

Security Fix(es):

* It was discovered that httpd used the value of the Proxy header from HTTP
requests to initialize the HTTP_PROXY environment variable for CGI scripts,
which in turn was incorrectly used by certain HTTP client implementations
to configure the proxy for outgoing HTTP requests. A remote attacker could
possibly use this flaw to redirect HTTP requests performed by a CGI script
to an attacker-controlled proxy via a malicious HTTP request.
(CVE-2016-5387)

* It was discovered that tomcat used the value of the Proxy header from
HTTP requests to initialize the HTTP_PROXY environment variable for CGI
scripts, which in turn was incorrectly used by certain HTTP client
implementations to configure the proxy for outgoing HTTP requests. A remote
attacker could possibly use this flaw to redirect HTTP requests performed
by a CGI script to an attacker-controlled proxy via a malicious HTTP
request. (CVE-2016-5388)

Note: After this update, httpd will no longer pass the value of the Proxy
request header to scripts via the HTTP_PROXY environment variable.

Red Hat would like to thank Scott Geary (VendHQ) for reporting these
issues.

4. Solution:

For details on how to apply this update, which includes the changes
described in this advisory, refer to:

https://access.redhat.com/articles/11258

After installing the updated packages, the httpd daemon will be restarted
automatically.

After installing the updated packages, follow the instructions in this
knowledgebase article to configure Tomcat: 

https://access.redhat.com/solutions/2435491

5. Bugs fixed (https://bugzilla.redhat.com/):

1353755 - CVE-2016-5387 Apache HTTPD: sets environmental variable based on user supplied Proxy request header
1353809 - CVE-2016-5388 Tomcat: CGI sets environmental variable  based on user supplied Proxy request header

6. Package List:

Red Hat JBoss Web Server 3.0 for RHEL 6:

Source:
httpd24-2.4.6-62.ep7.el6.src.rpm
tomcat7-7.0.59-51_patch_01.ep7.el6.src.rpm
tomcat8-8.0.18-62_patch_01.ep7.el6.src.rpm

i386:
httpd24-2.4.6-62.ep7.el6.i686.rpm
httpd24-debuginfo-2.4.6-62.ep7.el6.i686.rpm
httpd24-devel-2.4.6-62.ep7.el6.i686.rpm
httpd24-tools-2.4.6-62.ep7.el6.i686.rpm
mod_ldap24-2.4.6-62.ep7.el6.i686.rpm
mod_proxy24_html-2.4.6-62.ep7.el6.i686.rpm
mod_session24-2.4.6-62.ep7.el6.i686.rpm
mod_ssl24-2.4.6-62.ep7.el6.i686.rpm

noarch:
httpd24-manual-2.4.6-62.ep7.el6.noarch.rpm
tomcat7-7.0.59-51_patch_01.ep7.el6.noarch.rpm
tomcat7-admin-webapps-7.0.59-51_patch_01.ep7.el6.noarch.rpm
tomcat7-docs-webapp-7.0.59-51_patch_01.ep7.el6.noarch.rpm
tomcat7-el-2.2-api-7.0.59-51_patch_01.ep7.el6.noarch.rpm
tomcat7-javadoc-7.0.59-51_patch_01.ep7.el6.noarch.rpm
tomcat7-jsp-2.2-api-7.0.59-51_patch_01.ep7.el6.noarch.rpm
tomcat7-lib-7.0.59-51_patch_01.ep7.el6.noarch.rpm
tomcat7-log4j-7.0.59-51_patch_01.ep7.el6.noarch.rpm
tomcat7-servlet-3.0-api-7.0.59-51_patch_01.ep7.el6.noarch.rpm
tomcat7-webapps-7.0.59-51_patch_01.ep7.el6.noarch.rpm
tomcat8-8.0.18-62_patch_01.ep7.el6.noarch.rpm
tomcat8-admin-webapps-8.0.18-62_patch_01.ep7.el6.noarch.rpm
tomcat8-docs-webapp-8.0.18-62_patch_01.ep7.el6.noarch.rpm
tomcat8-el-2.2-api-8.0.18-62_patch_01.ep7.el6.noarch.rpm
tomcat8-javadoc-8.0.18-62_patch_01.ep7.el6.noarch.rpm
tomcat8-jsp-2.3-api-8.0.18-62_patch_01.ep7.el6.noarch.rpm
tomcat8-lib-8.0.18-62_patch_01.ep7.el6.noarch.rpm
tomcat8-log4j-8.0.18-62_patch_01.ep7.el6.noarch.rpm
tomcat8-servlet-3.1-api-8.0.18-62_patch_01.ep7.el6.noarch.rpm
tomcat8-webapps-8.0.18-62_patch_01.ep7.el6.noarch.rpm

x86_64:
httpd24-2.4.6-62.ep7.el6.x86_64.rpm
httpd24-debuginfo-2.4.6-62.ep7.el6.x86_64.rpm
httpd24-devel-2.4.6-62.ep7.el6.x86_64.rpm
httpd24-tools-2.4.6-62.ep7.el6.x86_64.rpm
mod_ldap24-2.4.6-62.ep7.el6.x86_64.rpm
mod_proxy24_html-2.4.6-62.ep7.el6.x86_64.rpm
mod_session24-2.4.6-62.ep7.el6.x86_64.rpm
mod_ssl24-2.4.6-62.ep7.el6.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://access.redhat.com/security/team/key/

7. References:

https://access.redhat.com/security/cve/CVE-2016-5387
https://access.redhat.com/security/cve/CVE-2016-5388
https://access.redhat.com/security/updates/classification/#important
https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Web_Server/3/html-single/3.0.3_Release_Notes/index.html
https://access.redhat.com/security/vulnerabilities/httpoxy
https://access.redhat.com/solutions/2435491

8. Contact:

The Red Hat security contact is <secalert@redhat.com>. More contact
details at https://access.redhat.com/security/team/contact/

Copyright 2016 Red Hat, Inc.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iD8DBQFXtgWwXlSAg2UNWIIRAmYtAKCt1GMyj/1saSBI4Trbvo4+tEo+zwCgqpfw
YHcp8NBXB62jrNUt/AFvxis=
=Blrv
-----END PGP SIGNATURE-----

--
RHSA-announce mailing list
RHSA-announce@redhat.com
https://www.redhat.com/mailman/listinfo/rhsa-announce
 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2021, SecurityGlobal.net LLC