<?xml version="1.0" encoding="utf-8"?>
<cvrfdoc xmlns="http://www.icasi.org/CVRF/schema/cvrf/1.1" xmlns:cvrf="http://www.icasi.org/CVRF/schema/cvrf/1.1">
  <DocumentTitle xml:lang="en">Red Hat Security Advisory: jbossas-web and jboss-naming security update</DocumentTitle>
  <DocumentType>Security Advisory</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>secalert@redhat.com</ContactDetails>
    <IssuingAuthority>Red Hat Security Response Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification><ID>RHSA-2012:1027</ID></Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
       <Revision>
         <Number>1</Number>
         <Date>2012-06-20T15:58:00Z</Date>
         <Description>Current version</Description>
       </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2012-06-20T15:58:00Z</InitialReleaseDate>
    <CurrentReleaseDate>2012-06-20T15:58:00Z</CurrentReleaseDate>
    <Generator>
      <Engine>Red Hat rhsa-to-cvrf 1.0.1484</Engine>
      <Date>2012-06-20T16:05:01Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="Topic" Type="Summary" Ordinal="1" xml:lang="en">
Updated jbossas-web and jboss-naming packages that fix two security issues
are now available for JBoss Enterprise Web Platform 5.1.2 for Red Hat
Enterprise Linux 4, 5, and 6.

The Red Hat Security Response Team has rated this update as having
important security impact. Common Vulnerability Scoring System (CVSS) base
scores, which give detailed severity ratings, are available for each
vulnerability from the CVE links in the References section.    </Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">
JBoss Application Server is the base package for JBoss Enterprise Web
Platform, providing the core server components. The Java Naming and
Directory Interface (JNDI) Java API allows Java software clients to locate
objects or services in an application server. The Java Authorization
Contract for Containers (Java ACC) specification defines Permission classes
and the binding of container access decisions to operations on instances of
these permission classes. JaccAuthorizationRealm performs authorization
based on Java ACC permissions and a Policy implementation.

It was found that the JBoss JNDI service allowed unauthenticated, remote
write access by default. The JNDI and HA-JNDI services, and the
HAJNDIFactory invoker servlet were all affected. A remote attacker able to
access the JNDI service (port 1099), HA-JNDI service (port 1100), or the
HAJNDIFactory invoker servlet on a JBoss server could use this flaw to add,
delete, and modify items in the JNDI tree. This could have various,
application-specific impacts. (CVE-2011-4605)

When a JBoss server is configured to use JaccAuthorizationRealm, the
WebPermissionMapping class creates permissions that are not checked and can
permit access to users without checking their roles. If the
ignoreBaseDecision property is set to true on JBossWebRealm, the web
authorization process is handled exclusively by JBossAuthorizationEngine,
without any input from JBoss Web. This allows any valid user to access an
application, without needing to be assigned the role specified in the
application's web.xml &quot;security-constraint&quot; tag. (CVE-2012-1167)

Red Hat would like to thank Christian Schlüter (VIADA) for reporting
CVE-2011-4605.

Warning: Before applying this update, back up your JBoss Enterprise Web
Platform's &quot;server/[PROFILE]/deploy/&quot; directory and any other customized
configuration files.

Users of JBoss Enterprise Web Platform 5.1.2 on Red Hat Enterprise Linux 4,
5, and 6 should upgrade to these updated packages, which correct these
issues. The JBoss server process must be restarted for this update to take
effect.    </Note>
    <Note Title="Terms of Use" Ordinal="3" Type="Legal Disclaimer" xml:lang="en">Please see https://www.redhat.com/footer/terms-of-use.html</Note>
  </DocumentNotes>
  <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
  <AggregateSeverity Namespace="https://access.redhat.com/security/updates/classification/">Important</AggregateSeverity>
  <DocumentReferences>
    <Reference Type="Self">
       <URL>https://rhn.redhat.com/errata/RHSA-2012-1027.html</URL>
       <Description>https://rhn.redhat.com/errata/RHSA-2012-1027.html</Description>
    </Reference>
    <Reference>
       <URL>https://access.redhat.com/security/updates/classification/#important</URL>
       <Description>https://access.redhat.com/security/updates/classification/#important</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="JBoss Enterprise Web Platform">
      <Branch Type="Product Name" Name="JBoss Enterprise Web Platform 5 for RHEL 4 ES">
        <FullProductName ProductID="4ES-JBEWP-5">JBoss Enterprise Web Platform 5 for RHEL 4 ES</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="JBoss Enterprise Web Platform 5 for RHEL 5 Server">
        <FullProductName ProductID="5Server-JBEWP-5">JBoss Enterprise Web Platform 5 for RHEL 5 Server</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="JBoss Enterprise Web Platform 5 for RHEL 6 Server">
        <FullProductName ProductID="6Server-JBEWP-5">JBoss Enterprise Web Platform 5 for RHEL 6 Server</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="JBoss Enterprise Web Platform 5 for RHEL 4 AS">
        <FullProductName ProductID="4AS-JBEWP-5">JBoss Enterprise Web Platform 5 for RHEL 4 AS</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el4">
      <FullProductName ProductID="jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el4">jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el4.src.rpm</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el5">
      <FullProductName ProductID="jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el5">jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el5.src.rpm</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="jboss-naming-5.0.3-4.CP01_patch_01.2.ep5.el6">
      <FullProductName ProductID="jboss-naming-5.0.3-4.CP01_patch_01.2.ep5.el6">jboss-naming-5.0.3-4.CP01_patch_01.2.ep5.el6.src.rpm</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="jbossas-web-5.1.2-10.ep5.el4">
      <FullProductName ProductID="jbossas-web-5.1.2-10.ep5.el4">jbossas-web-5.1.2-10.ep5.el4.src.rpm</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="jbossas-web-5.1.2-10.ep5.el5">
      <FullProductName ProductID="jbossas-web-5.1.2-10.ep5.el5">jbossas-web-5.1.2-10.ep5.el5.src.rpm</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="jbossas-web-5.1.2-10.ep5.el6">
      <FullProductName ProductID="jbossas-web-5.1.2-10.ep5.el6">jbossas-web-5.1.2-10.ep5.el6.src.rpm</FullProductName>
    </Branch>
    <Relationship ProductReference="jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el4" RelationType="Default Component Of" RelatesToProductReference="4ES-JBEWP-5">
      <FullProductName ProductID="4ES-JBEWP-5:jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el4">jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el4 as a component of JBoss Enterprise Web Platform 5 for RHEL 4 ES</FullProductName>
    </Relationship>
    <Relationship ProductReference="jbossas-web-5.1.2-10.ep5.el4" RelationType="Default Component Of" RelatesToProductReference="4ES-JBEWP-5">
      <FullProductName ProductID="4ES-JBEWP-5:jbossas-web-5.1.2-10.ep5.el4">jbossas-web-5.1.2-10.ep5.el4 as a component of JBoss Enterprise Web Platform 5 for RHEL 4 ES</FullProductName>
    </Relationship>
    <Relationship ProductReference="jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el5" RelationType="Default Component Of" RelatesToProductReference="5Server-JBEWP-5">
      <FullProductName ProductID="5Server-JBEWP-5:jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el5">jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el5 as a component of JBoss Enterprise Web Platform 5 for RHEL 5 Server</FullProductName>
    </Relationship>
    <Relationship ProductReference="jbossas-web-5.1.2-10.ep5.el5" RelationType="Default Component Of" RelatesToProductReference="5Server-JBEWP-5">
      <FullProductName ProductID="5Server-JBEWP-5:jbossas-web-5.1.2-10.ep5.el5">jbossas-web-5.1.2-10.ep5.el5 as a component of JBoss Enterprise Web Platform 5 for RHEL 5 Server</FullProductName>
    </Relationship>
    <Relationship ProductReference="jboss-naming-5.0.3-4.CP01_patch_01.2.ep5.el6" RelationType="Default Component Of" RelatesToProductReference="6Server-JBEWP-5">
      <FullProductName ProductID="6Server-JBEWP-5:jboss-naming-5.0.3-4.CP01_patch_01.2.ep5.el6">jboss-naming-5.0.3-4.CP01_patch_01.2.ep5.el6 as a component of JBoss Enterprise Web Platform 5 for RHEL 6 Server</FullProductName>
    </Relationship>
    <Relationship ProductReference="jbossas-web-5.1.2-10.ep5.el6" RelationType="Default Component Of" RelatesToProductReference="6Server-JBEWP-5">
      <FullProductName ProductID="6Server-JBEWP-5:jbossas-web-5.1.2-10.ep5.el6">jbossas-web-5.1.2-10.ep5.el6 as a component of JBoss Enterprise Web Platform 5 for RHEL 6 Server</FullProductName>
    </Relationship>
    <Relationship ProductReference="jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el4" RelationType="Default Component Of" RelatesToProductReference="4AS-JBEWP-5">
      <FullProductName ProductID="4AS-JBEWP-5:jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el4">jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el4 as a component of JBoss Enterprise Web Platform 5 for RHEL 4 AS</FullProductName>
    </Relationship>
    <Relationship ProductReference="jbossas-web-5.1.2-10.ep5.el4" RelationType="Default Component Of" RelatesToProductReference="4AS-JBEWP-5">
      <FullProductName ProductID="4AS-JBEWP-5:jbossas-web-5.1.2-10.ep5.el4">jbossas-web-5.1.2-10.ep5.el4 as a component of JBoss Enterprise Web Platform 5 for RHEL 4 AS</FullProductName>
    </Relationship>
  </ProductTree>

  <Vulnerability Ordinal="1" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
    <Notes><Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">It was found that the JBoss JNDI service allowed unauthenticated, remote write access by default. The JNDI and HA-JNDI services, and the HAJNDIFactory invoker servlet were all affected. A remote attacker able to access the JNDI service (port 1099), HA-JNDI service (port 1100), or the HAJNDIFactory invoker servlet on a JBoss server could use this flaw to add, delete, and modify items in the JNDI tree. This could have various, application-specific impacts. </Note></Notes>
    <DiscoveryDate>2011-12-07T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2012-06-20T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2011-4605</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>4AS-JBEWP-5:jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el4</ProductID>
      <ProductID>4AS-JBEWP-5:jbossas-web-5.1.2-10.ep5.el4</ProductID>
      <ProductID>4ES-JBEWP-5:jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el4</ProductID>
      <ProductID>4ES-JBEWP-5:jbossas-web-5.1.2-10.ep5.el4</ProductID>
      <ProductID>5Server-JBEWP-5:jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el5</ProductID>
      <ProductID>5Server-JBEWP-5:jbossas-web-5.1.2-10.ep5.el5</ProductID>
      <ProductID>6Server-JBEWP-5:jboss-naming-5.0.3-4.CP01_patch_01.2.ep5.el6</ProductID>
      <ProductID>6Server-JBEWP-5:jbossas-web-5.1.2-10.ep5.el6</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Important</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>7.5</BaseScore>
      <Vector>AV:N/AC:L/Au:N/C:P/I:P/A:P</Vector>
    </ScoreSet></CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix"><Description xml:lang="en">
Before applying this update, make sure all previously-released errata
relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
https://access.redhat.com/knowledge/articles/11258    </Description>      <URL>https://rhn.redhat.com/errata/RHSA-2012-1027.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2011-4605.html</URL>
        <Description>CVE-2011-4605</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.redhat.com/show_bug.cgi?id=766469</URL>
        <Description>bz#766469: CVE-2011-4605 JNDI: unauthenticated remote write access is permitted by default</Description>
      </Reference>
    </References>
    <Acknowledgments><Acknowledgment><Description>Red Hat would like to thank Christian Schlüter (VIADA) for reporting this issue.</Description></Acknowledgment></Acknowledgments>
  </Vulnerability>

  <Vulnerability Ordinal="2" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
    <Notes><Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">When a JBoss server is configured to use JaccAuthorizationRealm, the WebPermissionMapping class creates permissions that are not checked and can permit access to users without checking their roles. If the ignoreBaseDecision property is set to true on JBossWebRealm, the web authorization process is handled exclusively by JBossAuthorizationEngine, without any input from JBoss Web. This allows any valid user to access an application, without needing to be assigned the role specified in the application's web.xml &quot;security-constraint&quot; tag. </Note></Notes>
    <DiscoveryDate>2012-03-13T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2012-06-12T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2012-1167</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>4AS-JBEWP-5:jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el4</ProductID>
      <ProductID>4AS-JBEWP-5:jbossas-web-5.1.2-10.ep5.el4</ProductID>
      <ProductID>4ES-JBEWP-5:jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el4</ProductID>
      <ProductID>4ES-JBEWP-5:jbossas-web-5.1.2-10.ep5.el4</ProductID>
      <ProductID>5Server-JBEWP-5:jboss-naming-5.0.3-4.CP01_patch_01.1.ep5.el5</ProductID>
      <ProductID>5Server-JBEWP-5:jbossas-web-5.1.2-10.ep5.el5</ProductID>
      <ProductID>6Server-JBEWP-5:jboss-naming-5.0.3-4.CP01_patch_01.2.ep5.el6</ProductID>
      <ProductID>6Server-JBEWP-5:jbossas-web-5.1.2-10.ep5.el6</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Moderate</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>4.6</BaseScore>
      <Vector>AV:N/AC:H/Au:S/C:P/I:P/A:P</Vector>
    </ScoreSet></CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix"><Description xml:lang="en">
Before applying this update, make sure all previously-released errata
relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
https://access.redhat.com/knowledge/articles/11258    </Description>      <URL>https://rhn.redhat.com/errata/RHSA-2012-1027.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2012-1167.html</URL>
        <Description>CVE-2012-1167</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.redhat.com/show_bug.cgi?id=802622</URL>
        <Description>bz#802622: CVE-2012-1167 JBoss: authentication bypass when running under JACC with ignoreBaseDecision on JBossWebRealm</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
