Apache HTTP Server OPTIONS Memory Leak Vulnerability (Optionsbleed) - Version Check
🗓️ 11 Oct 2017 00:00:00Reported by Copyright (C) 2017 Greenbone AGType
openvas🔗 plugins.openvas.org👁 242 Views
10
# SPDX-FileCopyrightText: 2017 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.108252");
script_version("2025-01-21T05:37:33+0000");
script_tag(name:"last_modification", value:"2025-01-21 05:37:33 +0000 (Tue, 21 Jan 2025)");
script_tag(name:"creation_date", value:"2017-10-11 10:53:35 +0200 (Wed, 11 Oct 2017)");
script_tag(name:"cvss_base", value:"5.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:N/A:N");
script_tag(name:"severity_vector", value:"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N");
script_tag(name:"severity_origin", value:"NVD");
script_tag(name:"severity_date", value:"2021-06-06 11:15:00 +0000 (Sun, 06 Jun 2021)");
script_cve_id("CVE-2017-9798");
script_name("Apache HTTP Server OPTIONS Memory Leak Vulnerability (Optionsbleed) - Version Check");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2017 Greenbone AG");
script_family("Web Servers");
script_dependencies("gb_apache_http_server_consolidation.nasl");
script_mandatory_keys("apache/http_server/detected");
script_xref(name:"URL", value:"http://openwall.com/lists/oss-security/2017/09/18/2");
script_xref(name:"URL", value:"https://blog.fuzzing-project.org/60-Optionsbleed-HTTP-OPTIONS-method-can-leak-Apaches-server-memory.html");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/100872");
script_xref(name:"URL", value:"https://archive.apache.org/dist/httpd/patches/apply_to_2.2.34/");
script_xref(name:"URL", value:"https://www.apache.org/dist/httpd/CHANGES_2.4.28");
script_tag(name:"summary", value:"Apache HTTP Server allows remote attackers to read
secret data from process memory if the Limit directive can be set in a user's .htaccess
file, or if httpd.conf has certain misconfigurations, aka Optionsbleed.");
script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");
script_tag(name:"insight", value:"Optionsbleed is a use after free error in the Apache
HTTP Server that causes a corrupted Allow header to be constructed in response to HTTP
OPTIONS requests. This can leak pieces of arbitrary memory from the server process that
may contain secrets. The memory pieces change after multiple requests, so for a vulnerable
host an arbitrary number of memory chunks can be leaked.
The bug appears if a webmaster tries to use the 'Limit' directive with an invalid HTTP
method.
Example .htaccess:
<Limit abcxyz>
</Limit>");
script_tag(name:"impact", value:"The successful exploitation allows the attacker to read
chunks of the host's memory.");
script_tag(name:"affected", value:"Apache HTTP Server 2.2.x versions up to 2.2.34 and
2.4.x below 2.4.28.");
script_tag(name:"solution", value:"Update to Apache HTTP Server 2.4.28. For Apache HTTP
Server running version 2.2.34 apply the patch linked in the references.
As a workaround the usage of .htaccess should be disabled completely via the
'AllowOverride None' directive within the webservers configuration. Furthermore all
<Limit> statements within the webserver configuration needs to be verified for
invalid HTTP methods.");
script_tag(name:"qod_type", value:"remote_banner_unreliable");
script_tag(name:"solution_type", value:"VendorFix");
exit(0);
}
include("version_func.inc");
include("host_details.inc");
if( isnull( port = get_app_port( cpe:CPE ) ) )
exit( 0 );
if( ! infos = get_app_version_and_location( cpe:CPE, port:port, exit_no_version:TRUE, version_regex:"^[0-9]+\.[0-9]+\.[0-9]+" ) )
exit( 0 );
vers = infos["version"];
path = infos["location"];
if( version_is_less_equal( version:vers, test_version:"2.2.34" ) ) {
vuln = TRUE;
fix = "Apply the referenced patch or upgrade to 2.4.28";
}
if( vers =~ "^2\.4\." && version_is_less( version:vers, test_version:"2.4.28" ) ) {
vuln = TRUE;
fix = "2.4.28";
}
if( vuln ) {
report = report_fixed_ver( installed_version:vers, fixed_version:fix, install_path:path );
security_message( port:port, data:report );
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
21 Jan 2025 00:00Current
6.8Medium risk
Vulners AI Score6.8
CVSS 25
CVSS 3.17.5
EPSS0.94651