<?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: httpd security and bug fix 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:0542</ID></Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
       <Revision>
         <Number>1</Number>
         <Date>2012-05-07T18:09:00Z</Date>
         <Description>Current version</Description>
       </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2012-05-07T18:09:00Z</InitialReleaseDate>
    <CurrentReleaseDate>2012-05-07T18:09:00Z</CurrentReleaseDate>
    <Generator>
      <Engine>Red Hat rhsa-to-cvrf 1.0.1478</Engine>
      <Date>2012-05-07T19:13:02Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="Topic" Type="Summary" Ordinal="1" xml:lang="en">
Updated httpd packages that fix multiple security issues and one bug are
now available for JBoss Enterprise Web Server 1.0.2 for Red Hat Enterprise
Linux 5 and 6.

The Red Hat Security Response Team has rated this update as having moderate
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">
The Apache HTTP Server (&quot;httpd&quot;) is the namesake project of The Apache
Software Foundation.

It was discovered that the Apache HTTP Server did not properly validate the
request URI for proxied requests. In certain configurations, if a reverse
proxy used the ProxyPassMatch directive, or if it used the RewriteRule
directive with the proxy flag, a remote attacker could make the proxy
connect to an arbitrary server, possibly disclosing sensitive information
from internal web servers not directly accessible to the attacker.
(CVE-2011-3368)

It was discovered that mod_proxy_ajp incorrectly returned an &quot;Internal
Server Error&quot; response when processing certain malformed HTTP requests,
which caused the back-end server to be marked as failed in configurations
where mod_proxy was used in load balancer mode. A remote attacker could
cause mod_proxy to not send requests to back-end AJP (Apache JServ
Protocol) servers for the retry timeout period or until all back-end
servers were marked as failed. (CVE-2011-3348)

The httpd server included the full HTTP header line in the default error
page generated when receiving an excessively long or malformed header.
Malicious JavaScript running in the server's domain context could use this
flaw to gain access to httpOnly cookies. (CVE-2012-0053)

An integer overflow flaw, leading to a heap-based buffer overflow, was
found in the way httpd performed substitutions in regular expressions. An
attacker able to set certain httpd settings, such as a user permitted to
override the httpd configuration for a specific directory using a
&quot;.htaccess&quot; file, could use this flaw to crash the httpd child process or,
possibly, execute arbitrary code with the privileges of the &quot;apache&quot; user.
(CVE-2011-3607)

A NULL pointer dereference flaw was found in the httpd mod_log_config
module. In configurations where cookie logging is enabled, a remote
attacker could use this flaw to crash the httpd child process via an HTTP
request with a malformed Cookie header. (CVE-2012-0021)

A flaw was found in the way httpd handled child process status information.
A malicious program running with httpd child process privileges (such as a
PHP or CGI script) could use this flaw to cause the parent httpd process to
crash during httpd service shutdown. (CVE-2012-0031)

Red Hat would like to thank Context Information Security for reporting the
CVE-2011-3368 issue.

This update also fixes the following bug:

* The fix for CVE-2011-3192 provided by the RHSA-2011:1329 update
introduced a regression in the way httpd handled certain Range HTTP header
values. This update corrects this regression. (BZ#749071)

All users of JBoss Enterprise Web Server 1.0.2 should upgrade to these
updated packages, which contain backported patches to correct these issues.
After installing the updated packages, users must restart the httpd
service for the 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/">Moderate</AggregateSeverity>
  <DocumentReferences>
    <Reference Type="Self">
       <URL>https://rhn.redhat.com/errata/RHSA-2012-0542.html</URL>
       <Description>https://rhn.redhat.com/errata/RHSA-2012-0542.html</Description>
    </Reference>
    <Reference>
       <URL>https://access.redhat.com/security/updates/classification/#moderate</URL>
       <Description>https://access.redhat.com/security/updates/classification/#moderate</Description>
    </Reference>
    <Reference>
       <URL>https://rhn.redhat.com/errata/RHSA-2011-1329.html</URL>
       <Description>https://rhn.redhat.com/errata/RHSA-2011-1329.html</Description>
    </Reference>
    <Reference>
       <URL>https://bugzilla.redhat.com/show_bug.cgi?id=749071</URL>
       <Description>https://bugzilla.redhat.com/show_bug.cgi?id=749071</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="JBoss Enterprise Web Server">
      <Branch Type="Product Name" Name="JBoss Enterprise Web Server 1.0 for RHEL 5 Server">
        <FullProductName ProductID="5Server-JBEWS-5.0.0">JBoss Enterprise Web Server 1.0 for RHEL 5 Server</FullProductName>
      </Branch>
      <Branch Type="Product Name" Name="JBoss Enterprise Web Server 1.0 for RHEL 6 Server">
        <FullProductName ProductID="6Server-JBEWS-1">JBoss Enterprise Web Server 1.0 for RHEL 6 Server</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="httpd-2.2.17-15.4.ep5.el5">
      <FullProductName ProductID="httpd-2.2.17-15.4.ep5.el5">httpd-2.2.17-15.4.ep5.el5.src.rpm</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="httpd-2.2.17-15.4.ep5.el6">
      <FullProductName ProductID="httpd-2.2.17-15.4.ep5.el6">httpd-2.2.17-15.4.ep5.el6.src.rpm</FullProductName>
    </Branch>
    <Relationship ProductReference="httpd-2.2.17-15.4.ep5.el5" RelationType="Default Component Of" RelatesToProductReference="5Server-JBEWS-5.0.0">
      <FullProductName ProductID="5Server-JBEWS-5.0.0:httpd-2.2.17-15.4.ep5.el5">httpd-2.2.17-15.4.ep5.el5 as a component of JBoss Enterprise Web Server 1.0 for RHEL 5 Server</FullProductName>
    </Relationship>
    <Relationship ProductReference="httpd-2.2.17-15.4.ep5.el6" RelationType="Default Component Of" RelatesToProductReference="6Server-JBEWS-1">
      <FullProductName ProductID="6Server-JBEWS-1:httpd-2.2.17-15.4.ep5.el6">httpd-2.2.17-15.4.ep5.el6 as a component of JBoss Enterprise Web Server 1.0 for RHEL 6 Server</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 discovered that mod_proxy_ajp incorrectly returned an &quot;Internal Server Error&quot; response when processing certain malformed HTTP requests, which caused the back-end server to be marked as failed in configurations where mod_proxy was used in load balancer mode. A remote attacker could cause mod_proxy to not send requests to back-end AJP (Apache JServ Protocol) servers for the retry timeout period or until all back-end servers were marked as failed. </Note></Notes>
    <DiscoveryDate>2011-09-08T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2011-09-14T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2011-3348</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>5Server-JBEWS-5.0.0:httpd-2.2.17-15.4.ep5.el5</ProductID>
      <ProductID>6Server-JBEWS-1:httpd-2.2.17-15.4.ep5.el6</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Moderate</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>5.0</BaseScore>
      <Vector>AV:N/AC:L/Au:N/C:N/I:N/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-0542.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>http://httpd.apache.org/security/vulnerabilities_22.html#2.2.21</URL>
        <Description>http://httpd.apache.org/security/vulnerabilities_22.html#2.2.21</Description>
      </Reference>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2011-3348.html</URL>
        <Description>CVE-2011-3348</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.redhat.com/show_bug.cgi?id=736690</URL>
        <Description>bz#736690: CVE-2011-3348 httpd: mod_proxy_ajp remote temporary DoS</Description>
      </Reference>
    </References>
  </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">It was discovered that the Apache HTTP Server did not properly validate the request URI for proxied requests. In certain configurations, if a reverse proxy used the ProxyPassMatch directive, or if it used the RewriteRule directive with the proxy flag, a remote attacker could make the proxy connect to an arbitrary server, possibly disclosing sensitive information from internal web servers not directly accessible to the attacker. </Note></Notes>
    <DiscoveryDate>2011-09-16T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2011-10-05T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2011-3368</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>5Server-JBEWS-5.0.0:httpd-2.2.17-15.4.ep5.el5</ProductID>
      <ProductID>6Server-JBEWS-1:httpd-2.2.17-15.4.ep5.el6</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Moderate</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>2.6</BaseScore>
      <Vector>AV:N/AC:H/Au:N/C:N/I:P/A:N</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-0542.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>http://www.contextis.com/research/blog/reverseproxybypass/</URL>
        <Description>http://www.contextis.com/research/blog/reverseproxybypass/</Description>
      </Reference>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2011-3368.html</URL>
        <Description>CVE-2011-3368</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.redhat.com/show_bug.cgi?id=740045</URL>
        <Description>bz#740045: CVE-2011-3368 httpd: reverse web proxy vulnerability</Description>
      </Reference>
    </References>
    <Acknowledgments><Acknowledgment><Description>Red Hat would like to thank Context Information Security for reporting this issue.</Description></Acknowledgment></Acknowledgments>
  </Vulnerability>

  <Vulnerability Ordinal="3" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
    <Notes><Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">An integer overflow flaw, leading to a heap-based buffer overflow, was found in the way httpd performed substitutions in regular expressions. An attacker able to set certain httpd settings, such as a user permitted to override the httpd configuration for a specific directory using a &quot;.htaccess&quot; file, could use this flaw to crash the httpd child process or, possibly, execute arbitrary code with the privileges of the &quot;apache&quot; user. </Note></Notes>
    <DiscoveryDate>2011-11-02T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2011-11-02T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2011-3607</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>5Server-JBEWS-5.0.0:httpd-2.2.17-15.4.ep5.el5</ProductID>
      <ProductID>6Server-JBEWS-1:httpd-2.2.17-15.4.ep5.el6</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Low</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>4.4</BaseScore>
      <Vector>AV:L/AC:M/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-0542.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2011-3607.html</URL>
        <Description>CVE-2011-3607</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.redhat.com/show_bug.cgi?id=769844</URL>
        <Description>bz#769844: CVE-2011-3607 httpd: ap_pregsub Integer overflow to buffer overflow</Description>
      </Reference>
    </References>
  </Vulnerability>

  <Vulnerability Ordinal="4" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
    <Notes><Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">A NULL pointer dereference flaw was found in the httpd mod_log_config module. In configurations where cookie logging is enabled, a remote attacker could use this flaw to crash the httpd child process via an HTTP request with a malformed Cookie header. </Note></Notes>
    <DiscoveryDate>2012-01-26T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2011-11-28T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2012-0021</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>5Server-JBEWS-5.0.0:httpd-2.2.17-15.4.ep5.el5</ProductID>
      <ProductID>6Server-JBEWS-1:httpd-2.2.17-15.4.ep5.el6</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Low</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>4.3</BaseScore>
      <Vector>AV:N/AC:M/Au:N/C:N/I:N/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-0542.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2012-0021.html</URL>
        <Description>CVE-2012-0021</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.redhat.com/show_bug.cgi?id=785065</URL>
        <Description>bz#785065: CVE-2012-0021 httpd: NULL pointer dereference crash in mod_log_config</Description>
      </Reference>
    </References>
  </Vulnerability>

  <Vulnerability Ordinal="5" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
    <Notes><Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">A flaw was found in the way httpd handled child process status information. A malicious program running with httpd child process privileges (such as a PHP or CGI script) could use this flaw to cause the parent httpd process to crash during httpd service shutdown. </Note></Notes>
    <DiscoveryDate>2012-01-12T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2012-01-11T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2012-0031</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>5Server-JBEWS-5.0.0:httpd-2.2.17-15.4.ep5.el5</ProductID>
      <ProductID>6Server-JBEWS-1:httpd-2.2.17-15.4.ep5.el6</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Low</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>2.6</BaseScore>
      <Vector>AV:N/AC:H/Au:N/C:N/I:N/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-0542.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2012-0031.html</URL>
        <Description>CVE-2012-0031</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.redhat.com/show_bug.cgi?id=773744</URL>
        <Description>bz#773744: CVE-2012-0031 httpd: possible crash on shutdown due to flaw in scoreboard handling</Description>
      </Reference>
    </References>
  </Vulnerability>

  <Vulnerability Ordinal="6" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
    <Notes><Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">The httpd server included the full HTTP header line in the default error page generated when receiving an excessively long or malformed header. Malicious JavaScript running in the server's domain context could use this flaw to gain access to httpOnly cookies. </Note></Notes>
    <DiscoveryDate>2012-01-26T00:00:00Z</DiscoveryDate>
    <ReleaseDate>2012-01-23T00:00:00Z</ReleaseDate>
    <Involvements><Involvement Party="Vendor" Status="Completed"></Involvement></Involvements>
    <CVE>CVE-2012-0053</CVE>
    <ProductStatuses><Status Type="Fixed">
      <ProductID>5Server-JBEWS-5.0.0:httpd-2.2.17-15.4.ep5.el5</ProductID>
      <ProductID>6Server-JBEWS-1:httpd-2.2.17-15.4.ep5.el6</ProductID>
    </Status></ProductStatuses>
    <Threats><Threat Type="Impact"><Description>Moderate</Description></Threat></Threats>
    <CVSSScoreSets><ScoreSet>
      <BaseScore>4.3</BaseScore>
      <Vector>AV:N/AC:M/Au:N/C:P/I:N/A:N</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-0542.html</URL></Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.redhat.com/security/data/cve/CVE-2012-0053.html</URL>
        <Description>CVE-2012-0053</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.redhat.com/show_bug.cgi?id=785069</URL>
        <Description>bz#785069: CVE-2012-0053 httpd: cookie exposure due to error responses</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
