ZeroHour
Help Net Securitypublished ()ingested @zeljkazorz

Optionsbleed bug makes Apache HTTP Server leak data from memory

mediumVulnerabilityimportance 35CVE-2017-9798

Vulnerabilities mentionedAll →

CVEVulnerabilityCVSSEPSSFlagsAffectedExposurePublished
CVE-2017-9798
Apache httpd 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

Apache httpd 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. This affects the Apache HTTP Server through 2.2.34 and 2.4.x through 2.4.27. The attacker sends an unauthenticated OPTIONS HTTP request when attempting to read secret data. This is a use-after-free issue and thus secret data is not always sent, and the specific data depends on many factors including configuration. Exploitation with .htaccess can be blocked with a patch to the ap_limit_section function in server/core.c.

NVD description · AI analysis pending
7.595% PoC ×3
  • apache http server
  • apache debian linux
Full article395 words · extracted from helpnetsecurity.com · click to collapse

On Monday, security researcher Hanno Böck detailed a memory-leaking vulnerability in Apache HTTP Server that’s similar to the infamous OpenSSL Heartbleed bug uncovered in April 2014.

Unlike Heartbleed, Optionsbleed (as Böck dubbed it) affects a relatively limited number of servers.

Apache HTTP Server Optionsbleed

About Optionsbleed (CVE-2017-9798)

The bug affects Apache HTTP Server 2.2.x through 2.2.34 and 2.4.x through 2.4.27, and only those that sport a certain configuration in the .htaccess file.

The vulnerability is actually a use after free error that causes a corrupted Allow header to be constructed in response to HTTP OPTIONS requests.

“The bug appears if a webmaster tries to use the ‘Limit’ directive [which allows restricting access to certain HTTP methods to a specific user] with an invalid HTTP method,” Böck explained. “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.”

After scanning the Alexa Top 1 Million sites, he found only 466 hosts with corrupted Allow headers, but he says there could be more as it’s difficult to reproduce. In any case, the danger is not high as that of Heartbleed, but administrators shouldn’t ignore it.

“There’s an additional risk in shared hosting environments,” Böck pointed out. “The corruption is not limited to a single virtual host. One customer of a shared hosting provider could deliberately create an .htaccess file causing this corruption hoping to be able to extract secret data from other hosts on the same system.”

He advised admins to implement the patch as soon as possible. There’s also one available for Apache 2.2. Several Linux and Unix-like distributions have already fixed it and pushed out updates.

The issue was described three years ago

After Böck went public with his findings, researcher Sawood Alam noted that he and his colleagues discovered the same issue in 2014 and described it in a whitepaper (section 5.3), but didn’t sound the alarm as he “didn’t look into it from the security perspective at that time.”

this is even crazier if you consider that this was published ~1 month after heartbleed. https://t.co/Xuk26R7tLa

— hanno (@hanno) September 19, 2017

As the team from RedTeam Pentesting noted, “Sadly they didn’t realize what they saw. Seeing and identifying a vulnerability are not the same thing. Requires an experienced eye.”

Text extracted automatically; images, tables and formatting may be missing. Original: https://www.helpnetsecurity.com/2017/09/20/apache-http-server-optionsbleed/