CVE-2012-0053
published 2012-01-28CVE-2012-0053: protocol.c in the Apache HTTP Server 2.2.x through 2.2.21 does not properly restrict header information during construction of Bad Request (aka 400) error…
PriorityP344medium4.3CVSS 2.0
AVNACMAuNCPINAN
EXPLOIT
EPSS
82.76%
99.6th percentile
protocol.c in the Apache HTTP Server 2.2.x through 2.2.21 does not properly restrict header information during construction of Bad Request (aka 400) error documents, which allows remote attackers to obtain the values of HTTPOnly cookies via vectors involving a (1) long or (2) malformed header in conjunction with crafted web script.
Affected
15 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| apache | http_server | >= 2.0.0 < 2.0.65 | 2.0.65 |
| apache | http_server | >= 2.2.0 < 2.2.22 | 2.2.22 |
| debian | apache2 | < apache2 2.2.22-1 (bookworm) | apache2 2.2.22-1 (bookworm) |
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| opensuse | opensuse | — | — |
| redhat | enterprise_linux_desktop | — | — |
| redhat | enterprise_linux_eus | — | — |
| redhat | enterprise_linux_server | — | — |
| redhat | enterprise_linux_workstation | — | — |
| redhat | jboss_enterprise_web_server | — | — |
| redhat | storage | — | — |
| suse | linux_enterprise_server | — | — |
| suse | linux_enterprise_software_development_kit | — | — |
Detection & IOCsextracted from sources · hover to see the quote
- →Monitor for HTTP 400 Bad Request responses that contain 'Cookie:' header values in the response body — this indicates the server is leaking HTTPOnly cookie contents via the default error document. ↗
- →Detect exploitation attempts by looking for HTTP requests with abnormally long or malformed headers (exceeding LimitRequestFieldSize) that trigger 400 responses, especially when Cookie headers are present. ↗
- →Detect JavaScript-based exploitation: look for client-side scripts issuing XHR GET requests to '/' and parsing the response body for 'Cookie:' strings, consistent with the PoC exploit technique. ↗
- →Detect exploit PoC pattern: scripts setting large numbers of cookies (named xss0, xss1, etc.) to inflate Cookie header size beyond LimitRequestFieldSize, then stripping them from the 400 response to isolate victim cookies. ↗
- →Flag Apache httpd versions 2.2.0 through 2.2.21 (inclusive) as vulnerable; fixed in 2.2.22. Also note Apache 2.0.x is affected despite the CVE description scope. ↗
- →Note that a header line lacking a ':' separator (missing name/value delimiter) also triggers the vulnerable 400 error path and can be used as an attack vector. ↗
- ·This vulnerability is not standalone — it requires a pre-existing XSS flaw in a web application on the same server to be exploitable; it allows injected JavaScript to escalate access to HTTPOnly cookies. ↗
- ·Most browsers limit cookies to 4KB, so the exploit requires setting multiple cookies to overflow the Cookie header past LimitRequestFieldSize. ↗
CVSS provenance
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:P/I:N/A:N
osv4.3MEDIUM
vendor_ubuntu4.4MEDIUM
vendor_debian4.3LOW
vendor_redhat4.3MEDIUM
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-x2wg-fp56-xx79: protocol
ghsa_unreviewed·2022-05-04
CVE-2012-0053 [MEDIUM] GHSA-x2wg-fp56-xx79: protocol
protocol.c in the Apache HTTP Server 2.2.x through 2.2.21 does not properly restrict header information during construction of Bad Request (aka 400) error documents, which allows remote attackers to obtain the values of HTTPOnly cookies via vectors involving a (1) long or (2) malformed header in conjunction with crafted web script.
OSV
CVE-2012-0053: protocol
osv·2012-01-28·CVSS 4.3
CVE-2012-0053 [MEDIUM] CVE-2012-0053: protocol
protocol.c in the Apache HTTP Server 2.2.x through 2.2.21 does not properly restrict header information during construction of Bad Request (aka 400) error documents, which allows remote attackers to obtain the values of HTTPOnly cookies via vectors involving a (1) long or (2) malformed header in conjunction with crafted web script.
Ubuntu
Apache HTTP Server vulnerabilities
vendor_ubuntu·2012-02-16·CVSS 4.4
CVE-2011-3607 [MEDIUM] Apache HTTP Server vulnerabilities
Title: Apache HTTP Server vulnerabilities
Summary: Several security issues were fixed in the Apache HTTP Server.
It was discovered that the Apache HTTP Server incorrectly handled the
SetEnvIf .htaccess file directive. An attacker having write access to a
.htaccess file may exploit this to possibly execute arbitrary code.
(CVE-2011-3607)
Prutha Parikh discovered that the mod_proxy module did not properly
interact with the RewriteRule and ProxyPassMatch pattern matches in the
configuration of a reverse proxy. This could allow remote attackers to
contact internal webservers behind the proxy that were not intended for
external exposure. (CVE-2011-4317)
Rainer Canavan discovered that the mod_log_config module incorrectly
handled a certain format string when used with a threaded MPM. A remot
Red Hat
httpd: cookie exposure due to error responses
vendor_redhat·2012-01-23·CVSS 4.3
CVE-2012-0053 [MEDIUM] httpd: cookie exposure due to error responses
httpd: cookie exposure due to error responses
protocol.c in the Apache HTTP Server 2.2.x through 2.2.21 does not properly restrict header information during construction of Bad Request (aka 400) error documents, which allows remote attackers to obtain the values of HTTPOnly cookies via vectors involving a (1) long or (2) malformed header in conjunction with crafted web script.
Statement: This issue affects httpd packages as shipped with Red Hat Enterprise Linux 3 and 4, which are now in the Extended Life Phase of their life cycle. Therefore this issue is not planned to be addressed in future updates. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/
Mitigation: As noted in the original reporter's adviso
Debian
CVE-2012-0053: apache2 - protocol.c in the Apache HTTP Server 2.2.x through 2.2.21 does not properly rest...
vendor_debian·2012·CVSS 4.3
CVE-2012-0053 [MEDIUM] CVE-2012-0053: apache2 - protocol.c in the Apache HTTP Server 2.2.x through 2.2.21 does not properly rest...
protocol.c in the Apache HTTP Server 2.2.x through 2.2.21 does not properly restrict header information during construction of Bad Request (aka 400) error documents, which allows remote attackers to obtain the values of HTTPOnly cookies via vectors involving a (1) long or (2) malformed header in conjunction with crafted web script.
Scope: local
bookworm: resolved (fixed in 2.2.22-1)
bullseye: resolved (fixed in 2.2.22-1)
forky: resolved (fixed in 2.2.22-1)
sid: resolved (fixed in 2.2.22-1)
trixie: resolved (fixed in 2.2.22-1)
No detection rules found.
Bugzilla
CVE-2012-4407 moodle: Blog file access issue (MSA-12-0053)
bugzilla·2012-09-17·CVSS 5.0
CVE-2012-4407 [MEDIUM] CVE-2012-4407 moodle: Blog file access issue (MSA-12-0053)
CVE-2012-4407 moodle: Blog file access issue (MSA-12-0053)
A security flaw was found in the way file serving functionality of Moodle course management system enforced file access restrictions on blog post(s). A remote attacker could use this flaw to deliver files embedded as part of a blog without the publication state to be checked properly.
Upstream patch:
[1] http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-34585
References:
[2] http://www.openwall.com/lists/oss-security/2012/09/17/1
Discussion:
This issue affects the version of the moodle package, as shipped with Fedora release of 17. Please schedule an update.
--
This issue did NOT affect the versions of the moodle package, as shipped with Fedora release of 16, Fedora EPEL 6 and Fedora EPEL 5.
---
Update
Bugzilla
CVE-2012-2922 drupal7: full path disclosure vulnerability
bugzilla·2012-05-23·CVSS 5.0
CVE-2012-2922 [MEDIUM] CVE-2012-2922 drupal7: full path disclosure vulnerability
CVE-2012-2922 drupal7: full path disclosure vulnerability
Common Vulnerabilities and Exposures assigned an identifier CVE-2012-2922 to
the following vulnerability:
Name: CVE-2012-2922
URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-2922
Assigned: 20120521
Reference: BUGTRAQ:20120510 Drupal 7.14 <= Full Path Disclosure Vulnerability
Reference: http://archives.neohapsis.com/archives/bugtraq/2012-05/0052.html
Reference: BUGTRAQ:20120510 Drupal 7.14 <= Full Path Disclosure Vulnerability (Update)
Reference: http://archives.neohapsis.com/archives/bugtraq/2012-05/0053.html
Reference: BUGTRAQ:20120510 Re: Drupal 7.14 <= Full Path Disclosure Vulnerability
Reference: http://archives.neohapsis.com/archives/bugtraq/2012-05/0055.html
Reference: http://www.securityfocus.com/bid/53454
Refer
Bugzilla
CVE-2012-0053 httpd: cookie exposure due to error responses
bugzilla·2012-01-27·CVSS 4.3
CVE-2012-0053 [MEDIUM] CVE-2012-0053 httpd: cookie exposure due to error responses
CVE-2012-0053 httpd: cookie exposure due to error responses
A flaw was found in the default error response for status code 400. This could be used by an attacker to expose "httpOnly" cookies, when no custom ErrorDocument was specified.
This affects all versions of Apache from 2.2.0 up to and including 2.2.21. It will be fixed upstream in 2.2.22 (via r1235454 [1]).
[1] http://svn.apache.org/viewvc?view=revision&revision=1235454
Discussion:
Created httpd tracking bugs for this issue
Affects: fedora-all [bug 785070]
---
Name: CVE-2012-0053
protocol.c in the Apache HTTP Server 2.2.x through 2.2.21 does not
properly restrict header information during construction of Bad
Request (aka 400) error documents, which allows remote attackers to
obtain the values of HTTPOnly cookies via vectors
Bugzilla
CVE-2011-3368 CVE-2012-0053 CVE-2012-0031 CVE-2012-0021 CVE-2011-3607 httpd: multiple vulnerabilities [fedora-all]
bugzilla·2012-01-27·CVSS 5.0
CVE-2011-3368 [MEDIUM] CVE-2011-3368 CVE-2012-0053 CVE-2012-0031 CVE-2012-0021 CVE-2011-3607 httpd: multiple vulnerabilities [fedora-all]
CVE-2011-3368 CVE-2012-0053 CVE-2012-0031 CVE-2012-0021 CVE-2011-3607 httpd: multiple vulnerabilities [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected Fedora
versions.
For comments that are specific to the vulnerability please use bugs filed
against "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When creating a Bodhi update request, please include this bug ID and the
bug IDs of this bug's parent bugs filed against the "Security Response"
product (the top-level CVE bugs). Please mention the CVE IDs being fixed
in the RPM changelog when available.
Bodhi update submission link:
https://admin.fedora
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041http://httpd.apache.org/security/vulnerabilities_22.htmlhttp://kb.juniper.net/JSA10585http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.htmlhttp://lists.opensuse.org/opensuse-security-announce/2012-02/msg00026.htmlhttp://lists.opensuse.org/opensuse-security-announce/2012-03/msg00002.htmlhttp://marc.info/?l=bugtraq&m=133294460209056&w=2http://marc.info/?l=bugtraq&m=133494237717847&w=2http://marc.info/?l=bugtraq&m=133951357207000&w=2http://marc.info/?l=bugtraq&m=136441204617335&w=2http://rhn.redhat.com/errata/RHSA-2012-0128.htmlhttp://rhn.redhat.com/errata/RHSA-2012-0542.htmlhttp://rhn.redhat.com/errata/RHSA-2012-0543.htmlhttp://secunia.com/advisories/48551http://support.apple.com/kb/HT5501http://svn.apache.org/viewvc?view=revision&revision=1235454http://www.debian.org/security/2012/dsa-2405http://www.mandriva.com/security/advisories?name=MDVSA-2012:012http://www.mandriva.com/security/advisories?name=MDVSA-2013:150http://www.oracle.com/technetwork/topics/security/cpujan2015-1972971.htmlhttp://www.oracle.com/technetwork/topics/security/cpujul2012-392727.htmlhttp://www.securityfocus.com/bid/51706https://bugzilla.redhat.com/show_bug.cgi?id=785069https://lists.apache.org/thread.html/54a42d4b01968df1117cea77fc53d6beb931c0e05936ad02af93e9ac%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/5df9bfb86a3b054bb985a45ff9250b0332c9ecc181eec232489e7f79%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/8d63cb8e9100f28a99429b4328e4e7cebce861d5772ac9863ba2ae6f%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/f7f95ac1cd9895db2714fa3ebaa0b94d0c6df360f742a40951384a53%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r0276683d8e1e07153fc8642618830ac0ade85b9ae0dc7b07f63bb8fc%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r05b5357d1f6bd106f41541ee7d87aafe3f5ea4dc3e9bde5ce09baff8%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r1d201e3da31a2c8aa870c8314623caef7debd74a13d0f25205e26f15%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r2cb985de917e7da0848c440535f65a247754db8b2154a10089e4247b%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r476d175be0aaf4a17680ef98c5153b4d336eaef76fb2224cc94c463a%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r57608dc51b79102f3952ae06f54d5277b649c86d6533dcd6a7d201f7%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r5f9c22f9c28adbd9f00556059edc7b03a5d5bb71d4bb80257c0d34e4%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r75cbe9ea3e2114e4271bbeca7aff96117b50c1b6eb7c4772b0337c1f%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r8828e649175df56f1f9e3919938ac7826128525426e2748f0ab62feb%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r9b4b963760a3cb5a4a70c902f325c6c0337fe51d5b8570416f8f8729%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r9e8622254184645bc963a1d47c5d47f6d5a36d6f080d8d2c43b2b142%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r9ea3538f229874c80a10af473856a81fbf5f694cd7f471cc679ba70b%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r9f93cf6dde308d42a9c807784e8102600d0397f5f834890708bf6920%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/rad01d817195e6cc871cb1d73b207ca326379a20a6e7f30febaf56d24%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/rb9c9f42dafa25d2f669dac2a536a03f2575bc5ec1be6f480618aee10%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/rdca61ae990660bacb682295f2a09d34612b7bb5f457577fe17f4d064%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/rf6449464fd8b7437704c55f88361b66f12d5b5f90bcce66af4be4ba9%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/rfbaf647d52c1cb843e726a0933f156366a806cead84fbd430951591b%40%3Ccvs.httpd.apache.org%3Ehttp://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041http://httpd.apache.org/security/vulnerabilities_22.htmlhttp://kb.juniper.net/JSA10585http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.htmlhttp://lists.opensuse.org/opensuse-security-announce/2012-02/msg00026.htmlhttp://lists.opensuse.org/opensuse-security-announce/2012-03/msg00002.htmlhttp://marc.info/?l=bugtraq&m=133294460209056&w=2http://marc.info/?l=bugtraq&m=133494237717847&w=2http://marc.info/?l=bugtraq&m=133951357207000&w=2http://marc.info/?l=bugtraq&m=136441204617335&w=2http://rhn.redhat.com/errata/RHSA-2012-0128.htmlhttp://rhn.redhat.com/errata/RHSA-2012-0542.htmlhttp://rhn.redhat.com/errata/RHSA-2012-0543.htmlhttp://secunia.com/advisories/48551http://support.apple.com/kb/HT5501http://svn.apache.org/viewvc?view=revision&revision=1235454http://www.debian.org/security/2012/dsa-2405http://www.mandriva.com/security/advisories?name=MDVSA-2012:012http://www.mandriva.com/security/advisories?name=MDVSA-2013:150http://www.oracle.com/technetwork/topics/security/cpujan2015-1972971.htmlhttp://www.oracle.com/technetwork/topics/security/cpujul2012-392727.htmlhttp://www.securityfocus.com/bid/51706https://bugzilla.redhat.com/show_bug.cgi?id=785069https://lists.apache.org/thread.html/54a42d4b01968df1117cea77fc53d6beb931c0e05936ad02af93e9ac%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/5df9bfb86a3b054bb985a45ff9250b0332c9ecc181eec232489e7f79%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/8d63cb8e9100f28a99429b4328e4e7cebce861d5772ac9863ba2ae6f%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/f7f95ac1cd9895db2714fa3ebaa0b94d0c6df360f742a40951384a53%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r0276683d8e1e07153fc8642618830ac0ade85b9ae0dc7b07f63bb8fc%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r05b5357d1f6bd106f41541ee7d87aafe3f5ea4dc3e9bde5ce09baff8%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r1d201e3da31a2c8aa870c8314623caef7debd74a13d0f25205e26f15%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r2cb985de917e7da0848c440535f65a247754db8b2154a10089e4247b%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r476d175be0aaf4a17680ef98c5153b4d336eaef76fb2224cc94c463a%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r57608dc51b79102f3952ae06f54d5277b649c86d6533dcd6a7d201f7%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r5f9c22f9c28adbd9f00556059edc7b03a5d5bb71d4bb80257c0d34e4%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r75cbe9ea3e2114e4271bbeca7aff96117b50c1b6eb7c4772b0337c1f%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r8828e649175df56f1f9e3919938ac7826128525426e2748f0ab62feb%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r9b4b963760a3cb5a4a70c902f325c6c0337fe51d5b8570416f8f8729%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r9e8622254184645bc963a1d47c5d47f6d5a36d6f080d8d2c43b2b142%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r9ea3538f229874c80a10af473856a81fbf5f694cd7f471cc679ba70b%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/r9f93cf6dde308d42a9c807784e8102600d0397f5f834890708bf6920%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/rad01d817195e6cc871cb1d73b207ca326379a20a6e7f30febaf56d24%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/rb9c9f42dafa25d2f669dac2a536a03f2575bc5ec1be6f480618aee10%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/rdca61ae990660bacb682295f2a09d34612b7bb5f457577fe17f4d064%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/rf6449464fd8b7437704c55f88361b66f12d5b5f90bcce66af4be4ba9%40%3Ccvs.httpd.apache.org%3Ehttps://lists.apache.org/thread.html/rfbaf647d52c1cb843e726a0933f156366a806cead84fbd430951591b%40%3Ccvs.httpd.apache.org%3E
2012-01-28
Published