Common Vulnerabilities and Exposures assigned an identifier CVE-2014-0098 to the following vulnerability: Name: CVE-2014-0098 URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-0098 Assigned: 20131203 Reference: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/loggers/mod_log_config.c Reference: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/loggers/mod_log_config.c?r1=1575394&r2=1575400&diff_format=h Reference: http://www.apache.org/dist/httpd/CHANGES_2.4.9 The log_cookie function in mod_log_config.c in the mod_log_config module in the Apache HTTP Server before 2.4.8 allows remote attackers to cause a denial of service (segmentation fault and daemon crash) via a crafted cookie that is not properly handled during truncation.
Created httpd tracking bugs for this issue: Affects: fedora-all [bug 1077878]
Upstream describes the problem as thus: A flaw was found in mod_log_config. A remote attacker could send a specific truncated cookie causing a crash. This crash would only be a denial of service if using a threaded MPM.
Also note that the upstream description of this flaw (from http://httpd.apache.org/security/vulnerabilities_24.html) is: "A flaw was found in mod_log_config. A remote attacker could send a specific truncated cookie causing a crash. This crash would only be a denial of service if using a threaded MPM." By default, Red Hat Enterprise Linux uses the Prefork MPM.
The problem here is buffer over read triggered by malformed Cookie header in the HTTP request header. If httpd is configured to log values of a specific cookie (using %{Foobar}C format string in the LogFormat), remote attacker can cause httpd to read memory behind allocated buffer. http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#formats String processing functions are used (strspn, strlen), hence reading stops on the first \0 byte encountered. Depending on the memory layout, this may lead to a crash of httpd child process, which gets respawned by the httpd master process. Cookie logging can be disabled to mitigate this issue.
While log_cookie() implementation in Red Hat Enterprise Linux 5 (and Red Hat Enterprise Linux 6 before 6.4) is different, similar buffer over read can happen there too.
(In reply to Tomas Hoger from comment #12) > Cookie logging can be disabled to mitigate this issue. The default httpd configuration in Red Hat Enterprise Linux does not enabled cookie logging. Only configurations where the feature was enabled explicitly are affected by this issue.
httpd-2.4.9-2.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
This issue has been addressed in following products: Red Hat Enterprise Linux 5 Via RHSA-2014:0369 https://rhn.redhat.com/errata/RHSA-2014-0369.html
This issue has been addressed in following products: Red Hat Enterprise Linux 6 Via RHSA-2014:0370 https://rhn.redhat.com/errata/RHSA-2014-0370.html
I think it should also affect Fedora 19, but there are no updated packages for Fedora 19 available. Fedora 19 httpd package: httpd-2.4.7-1
I've just built https://admin.fedoraproject.org/updates/httpd-2.4.9-1.fc19
httpd-2.4.9-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
This issue has been addressed in following products: JBoss Enterprise Web Server 2.0.1 Via RHSA-2014:0784 https://rhn.redhat.com/errata/RHSA-2014-0784.html
This issue has been addressed in following products: JBEWS 2 for RHEL 5 JBEWS 2 for RHEL 6 Via RHSA-2014:0783 https://rhn.redhat.com/errata/RHSA-2014-0783.html
This issue has been addressed in following products: JBEAP 6.2 for RHEL 5 JBEAP 6.2 for RHEL 6 Via RHSA-2014:0826 https://rhn.redhat.com/errata/RHSA-2014-0826.html
This issue has been addressed in following products: Red Hat JBoss Enterprise Application Platform 6.2 Via RHSA-2014:0825 https://rhn.redhat.com/errata/RHSA-2014-0825.html