Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1362735 - (CVE-2016-6311) CVE-2016-6311 (EAP7) Internal IP address disclosed on redirect when request header Host field is not set
CVE-2016-6311 (EAP7) Internal IP address disclosed on redirect when request h...
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20160703,repor...
: Reopened, Security
Depends On:
Blocks: 1362733 1520314
  Show dependency treegraph
 
Reported: 2016-08-02 23:30 EDT by Jason Shepherd
Modified: 2017-12-13 13:46 EST (History)
22 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
It was found that when issuing a GET request which results in a 302 redirect and when the request header 'Host' field was not set, the response header field 'Location' contains the internal IP address of the server. An attacker could use this disclose information which they are not authorized to access.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-12-15 00:17:30 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3454 normal SHIPPED_LIVE Important: Red Hat JBoss Enterprise Application Platform 7.1.0 security update 2017-12-13 17:48:09 EST
Red Hat Product Errata RHSA-2017:3455 normal SHIPPED_LIVE Important: Red Hat JBoss Enterprise Application Platform 7.1.0 security update 2017-12-13 17:57:25 EST
Red Hat Product Errata RHSA-2017:3456 normal SHIPPED_LIVE Important: Red Hat JBoss Enterprise Application Platform 7.1.0 security update 2017-12-13 17:31:03 EST
Red Hat Product Errata RHSA-2017:3458 normal SHIPPED_LIVE Important: eap7-jboss-ec2-eap security update 2017-12-13 18:26:13 EST

  None (edit)
Description Jason Shepherd 2016-08-02 23:30:06 EDT
When issuing a GET request which results in a 302 redirect and the request header Host field was not set, the response header field Location contains the internal IP address of the server

The example below can be reproduced by setting the <transport-guarantee>CONFIDENTIAL</transport-guarantee> in the web.xml of any webapp and using the http port to connect.

# telnet www.example.org 80
_Trying 52.52.52.52...
Connected to www.example.org.
Escape character is '^]'._
GET / HTTP/1.0

_HTTP/1.0 302 Found
Connection: close
X-XSS-Protection: 1; mode=block
Strict-Transport-Security: max-age=16070400
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
Location: https://10.0.0.91:443/
Content-Length: 0
Date: Fri, 29 Jul 2016 11:01:47 GMT_

The problem may be located in the HttpServerExchange class. Here the getHostAndPort() method always returns the local InetAddress if the Host header field wasn't set.
Comment 1 Jason Shepherd 2016-08-02 23:30:23 EDT
Acknowledgments:

Name: Luca Bueti
Upstream: WildFly
Comment 2 Jason Shepherd 2016-08-02 23:31:52 EDT
It's possible to workaround this issue by adding a filter that sets the host header to the default host if the host header is not present.
Comment 5 Jason Shepherd 2016-08-10 20:26:04 EDT
Added to Mojo tracking document for EAP 7
Comment 6 Jason Shepherd 2017-10-11 02:25:08 EDT
Mitigation:

You can add a filter in the JBoss CLI that sets the host header to the 'myvirtualhost.com' if the host header is not present. eg:

/subsystem=undertow/configuration=filter/expression-filter=hostname:add(expression="header(header=Host, value=myvirtualhost.com)")
/subsystem=undertow/server=default-server/host=default-host/filter-ref=hostname:add(predicate="not exists(%{i,Host})")
Comment 7 errata-xmlrpc 2017-12-13 12:32:49 EST
This issue has been addressed in the following products:

  Red Hat JBoss Enterprise Application Platform

Via RHSA-2017:3456 https://access.redhat.com/errata/RHSA-2017:3456
Comment 8 errata-xmlrpc 2017-12-13 13:19:40 EST
This issue has been addressed in the following products:

  Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6

Via RHSA-2017:3454 https://access.redhat.com/errata/RHSA-2017:3454
Comment 9 errata-xmlrpc 2017-12-13 13:41:04 EST
This issue has been addressed in the following products:

  Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7

Via RHSA-2017:3455 https://access.redhat.com/errata/RHSA-2017:3455
Comment 10 errata-xmlrpc 2017-12-13 13:46:06 EST
This issue has been addressed in the following products:

  Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7
  Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6

Via RHSA-2017:3458 https://access.redhat.com/errata/RHSA-2017:3458

Note You need to log in before you can comment on or make changes to this bug.