Lucene search
+L

Apache HTTP Server 'httpOnly' Cookie Information Disclosure Vulnerability

🗓️ 26 Apr 2012 00:00:00Reported by Copyright (C) 2012 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 292 Views

Apache HTTP Server 'httpOnly' Cookie Information Disclosure Vulnerability. Vulnerability in Apache HTTP Server allows attackers to access sensitive information through 'httpOnly' cookies

Related
Refs
Code
# SPDX-FileCopyrightText: 2012 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

CPE = "cpe:/a:apache:http_server";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.902830");
  script_version("2026-02-24T05:57:09+0000");
  script_cve_id("CVE-2012-0053");
  script_tag(name:"cvss_base", value:"4.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:N/A:N");
  script_tag(name:"last_modification", value:"2026-02-24 05:57:09 +0000 (Tue, 24 Feb 2026)");
  script_tag(name:"creation_date", value:"2012-04-26 12:12:12 +0530 (Thu, 26 Apr 2012)");
  script_name("Apache HTTP Server 'httpOnly' Cookie Information Disclosure Vulnerability");

  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2012 Greenbone AG");
  script_family("Web Servers");
  script_require_ports("Services/www", 80);
  script_dependencies("gb_apache_http_server_consolidation.nasl");
  script_mandatory_keys("apache/http_server/http/detected");

  script_tag(name:"impact", value:"Successful exploitation will allow attackers to obtain sensitive information
  that may aid in further attacks.");

  script_tag(name:"affected", value:"Apache HTTP Server versions 2.2.0 through 2.2.21.");

  script_tag(name:"insight", value:"The flaw is due to an error within the default error response for
  status code 400 when no custom ErrorDocument is configured, which can be
  exploited to expose 'httpOnly' cookies.");

  script_tag(name:"solution", value:"Update to Apache HTTP Server version 2.2.22 or later.");

  script_tag(name:"summary", value:"Apache HTTP Server is prone to a cookie information disclosure vulnerability.");

  script_xref(name:"URL", value:"http://secunia.com/advisories/47779");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/51706");
  script_xref(name:"URL", value:"http://www.exploit-db.com/exploits/18442");
  script_xref(name:"URL", value:"http://rhn.redhat.com/errata/RHSA-2012-0128.html");
  script_xref(name:"URL", value:"http://httpd.apache.org/security/vulnerabilities_22.html");
  script_xref(name:"URL", value:"http://svn.apache.org/viewvc?view=revision&revision=1235454");
  script_xref(name:"URL", value:"http://lists.opensuse.org/opensuse-security-announce/2012-02/msg00026.html");

  script_tag(name:"solution_type", value:"VendorFix");
  script_tag(name:"qod_type", value:"remote_vul");

  exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("host_details.inc");

if( ! port = get_app_port( cpe:CPE, service:"www" ) )
  exit( 0 );

if( ! get_app_location( cpe:CPE, port:port, nofork:TRUE ) )
  exit( 0 );

exp = crap(820);

for(i=0; i<10; i++) {
  cookie += "c"+ i + "=" + exp + "; path=/; ";
}

host = http_host_name(port:port);

req = string( "GET / HTTP/1.1\r\n",
              "Host: ", host, "\r\n",
              "Cookie: ", cookie, "\r\n\r\n" );

res = http_keepalive_send_recv(port:port, data:req, bodyonly:TRUE);

if(res && "400 Bad Request" >< res &&
   res =~ "Cookie: c[0-9]=X{820}; path=/;" &&
   "Size of a request header field exceeds server limit" >< res){
  security_message(port:port);
  exit(0);
}

exit(99);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

24 Feb 2026 00:00Current
6.6Medium risk
Vulners AI Score6.6
CVSS 24.3
EPSS0.82756
292