CVE Vulnerabilities

CVE-2017-12196

Incorrect Authorization

Published: Apr 18, 2018 | Modified: Oct 09, 2019
CVSS 3.x
5.9
MEDIUM
Source:
NVD
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS 2.x
4.3 MEDIUM
AV:N/AC:M/Au:N/C:P/I:N/A:N
RedHat/V2
RedHat/V3
4.8 MODERATE
CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N
Ubuntu
MEDIUM

undertow before versions 1.4.18.SP1, 2.0.2.Final, 1.4.24.Final was found vulnerable when using Digest authentication, the server does not ensure that the value of URI in the Authorization header matches the URI in HTTP request line. This allows the attacker to cause a MITM attack and access the desired content on the server.

Weakness

The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. This allows attackers to bypass intended access restrictions.

Affected Software

Name Vendor Start Version End Version
Undertow Redhat * 1.4.18 (including)
Undertow Redhat 1.4.24 (including) 1.4.24 (including)
Undertow Redhat 2.0.2 (including) 2.0.2 (including)
Red Hat Fuse 7.2 RedHat *
Red Hat Fuse Intergration Services 2.0 based on Fuse 6.3 R7 RedHat undertow *
Red Hat JBoss EAP 7 RedHat undertow *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-activemq-artemis-0:1.5.5.009-1.redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-apache-cxf-0:3.1.13-1.redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-glassfish-jsf-0:2.2.13-6.SP5_redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-hibernate-0:5.1.12-1.Final_redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-infinispan-0:8.2.9-1.Final_redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-ironjacamar-0:1.4.7-1.Final_redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-jackson-annotations-0:2.8.11-1.redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-jackson-core-0:2.8.11-1.redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-jackson-databind-0:2.8.11-1.redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-jackson-jaxrs-providers-0:2.8.11-1.redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-jackson-module-jaxb-annotations-0:2.8.11-1.redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-jackson-modules-java8-0:2.8.11-1.redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-jboss-logmanager-0:2.0.8-1.Final_redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-jboss-server-migration-0:1.0.3-6.Final_redhat_6.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-jbossws-cxf-0:5.1.10-1.Final_redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-narayana-0:5.5.31-1.Final_redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-picketlink-bindings-0:2.5.5-10.SP9_redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-picketlink-federation-0:2.5.5-10.SP9_redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-resteasy-0:3.0.25-1.Final_redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-undertow-0:1.4.18-4.SP2_redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-undertow-jastow-0:2.0.3-1.Final_redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-wildfly-0:7.1.1-4.GA_redhat_2.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-wildfly-elytron-0:1.1.8-1.Final_redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-wildfly-http-client-0:1.0.9-1.Final_redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-wildfly-javadocs-0:7.1.1-3.GA_redhat_2.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-wss4j-0:2.1.11-1.redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-xml-security-0:2.0.9-1.redhat_1.1.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 RedHat eap7-jboss-ec2-eap-0:7.1.1-3.1.GA_redhat_3.ep7.el6 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-activemq-artemis-0:1.5.5.009-1.redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-apache-cxf-0:3.1.13-1.redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-glassfish-jsf-0:2.2.13-6.SP5_redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-hibernate-0:5.1.12-1.Final_redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-infinispan-0:8.2.9-1.Final_redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-ironjacamar-0:1.4.7-1.Final_redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-jackson-annotations-0:2.8.11-1.redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-jackson-core-0:2.8.11-1.redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-jackson-databind-0:2.8.11-1.redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-jackson-jaxrs-providers-0:2.8.11-1.redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-jackson-module-jaxb-annotations-0:2.8.11-1.redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-jackson-modules-java8-0:2.8.11-1.redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-jboss-logmanager-0:2.0.8-1.Final_redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-jboss-server-migration-0:1.0.3-6.Final_redhat_6.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-jbossws-cxf-0:5.1.10-1.Final_redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-narayana-0:5.5.31-1.Final_redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-picketlink-bindings-0:2.5.5-10.SP9_redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-picketlink-federation-0:2.5.5-10.SP9_redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-resteasy-0:3.0.25-1.Final_redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-undertow-0:1.4.18-4.SP2_redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-undertow-jastow-0:2.0.3-1.Final_redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-wildfly-0:7.1.1-4.GA_redhat_2.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-wildfly-elytron-0:1.1.8-1.Final_redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-wildfly-http-client-0:1.0.9-1.Final_redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-wildfly-javadocs-0:7.1.1-3.GA_redhat_2.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-wss4j-0:2.1.11-1.redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-xml-security-0:2.0.9-1.redhat_1.1.ep7.el7 *
Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 RedHat eap7-jboss-ec2-eap-0:7.1.1-3.1.GA_redhat_3.ep7.el7 *
Red Hat JBoss Enterprise Application Platform Continuous Delivery RedHat undertow *
Red Hat JBoss Enterprise Application Platform Continuous Delivery RedHat undertow *
Red Hat Virtualization 4 for Red Hat Enterprise Linux 7 RedHat rhvm-appliance-0:4.2-20180504.0 *
Undertow Ubuntu artful *
Undertow Ubuntu bionic *
Undertow Ubuntu esm-apps/bionic *
Undertow Ubuntu esm-apps/xenial *
Undertow Ubuntu upstream *
Undertow Ubuntu xenial *

Extended Description

Assuming a user with a given identity, authorization is the process of determining whether that user can access a given resource, based on the user’s privileges and any permissions or other access-control specifications that apply to the resource. When access control checks are incorrectly applied, users are able to access data or perform actions that they should not be allowed to perform. This can lead to a wide range of problems, including information exposures, denial of service, and arbitrary code execution.

Potential Mitigations

  • Divide the product into anonymous, normal, privileged, and administrative areas. Reduce the attack surface by carefully mapping roles with data and functionality. Use role-based access control (RBAC) [REF-229] to enforce the roles at the appropriate boundaries.
  • Note that this approach may not protect against horizontal authorization, i.e., it will not protect a user from attacking others with the same role.
  • Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
  • For example, consider using authorization frameworks such as the JAAS Authorization Framework [REF-233] and the OWASP ESAPI Access Control feature [REF-45].
  • For web applications, make sure that the access control mechanism is enforced correctly at the server side on every page. Users should not be able to access any unauthorized functionality or information by simply requesting direct access to that page.
  • One way to do this is to ensure that all pages containing sensitive information are not cached, and that all such pages restrict access to requests that are accompanied by an active and authenticated session token associated with a user who has the required permissions to access that page.

References