J-Security Center

Title: ghttpd Daemon Buffer Overflow Vulnerability

Severity: HIGH

Description:

ghttpd is a freely available, open source web server for Unix systems. ghttpd supports CGI and is easy to configure and use.

A buffer overflow is known to exist in ghttp which will allow arbitrary code to be executed with the privileges of the webserver.

The overflow occurs when the argument to a 'GET' request is of excessive length. It is a stack-based overflow which may allow for attackers to overwrite stack variables and execute arbitrary code on the underlying host.

The webserver minimizes the risk of root compromise by dropping privileges after it has binded to port 80. This vulnerability is still a serious threat however, as remote attackers can gain access. It is significantly easier for an attacker to completely compromise the host (gain root) if they have 'local' access, which exploitation of this vulnerability will provide.

Proof-of-concept code has demonstrated that this vulnerability can be exploited by remote attackers.

Affected Products:

  • ghttpd ghttpd 1.4.0
  • ghttpd ghttpd 1.4.1
  • ghttpd ghttpd 1.4.2
  • ghttpd ghttpd 1.4.3

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.