<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>238180</bug_id>
          
          <creation_ts>2008-09-20 13:57 0000</creation_ts>
          <short_desc>www-servers/lighttpd &lt; 1.4.20 multiple issues (DoS, information disclosure) (CVE-2008-{4298,4359,4360})</short_desc>
          <delta_ts>2008-12-02 17:50:18 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Security</product>
          <component>Vulnerabilities</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://trac.lighttpd.net/trac/ticket/1774</bug_file_loc>
          <status_whiteboard>B3 [glsa]</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>hoffie@gentoo.org</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>arm@gentoo.org</cc>
    
    <cc>craig@gentoo.org</cc>
    
    <cc>sh@gentoo.org</cc>
    
    <cc>www-servers@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>hoffie@gentoo.org</who>
            <bug_when>2008-09-20 13:57:26 0000</bug_when>
            <thetext>lighttpd can be forced to leak memory by sending lots requests with duplicate request headers. Patch is available from the ticket and will be in the VCS in some minutes, lighty-1.4.20, which should include the patch, is supposed to be released in the near future.

By some testing it looks like it takes some time to get lighty use a dangerous amount of memory, but nevertheless it&apos;s an issue.

I&apos;ll handle bumping/patching.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hoffie@gentoo.org</who>
            <bug_when>2008-09-26 20:10:55 0000</bug_when>
            <thetext>JFI: CVE request has been sent by lighty upstream to coley directly some days ago already and by bressers from Redhat @ oss-sec as well.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-09-29 14:58:26 0000</bug_when>
            <thetext>CVE-2008-4298 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2008-4298):
  Memory leak in the http_request_parse function in request.c in
  lighttpd before 1.4.20 allows remote attackers to cause a denial of
  service (memory consumption) via a large number of requests with
  duplicate request headers.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hoffie@gentoo.org</who>
            <bug_when>2008-09-30 15:13:03 0000</bug_when>
            <thetext>www-servers: Apologies for not CC&apos;ing you, I seem to have missed this.

1.4.20 has been released and I just added it to the tree. It fixes two other security problems. The first (mod_userdir-related) does not affect us, as we tracked this in bug 213164. The second is:

(Quoting my mail to oss-sec)
&gt;   * Unexpected behavior of url.redirect / url.rewrite config options
&gt;
&gt;     While this is not a security issue in lighttpd, the user might
&gt;     rely on the fact, that those options are suppoosed to be matched
&gt;     against the urldecoded version of the URL. Depending on the
&gt;     configuration, this would allow for unwanted access to certain
&gt;     resources (information disclosure or even manipulation of data)
&gt;     References: [1] [2]

Two more references to the memory leak issue are at [5] and [6].

Arches, please test and mark stable:
  =www-servers/lighttpd-1.4.20
Target keywords: alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86
                 ~mips ~sparc-fbsd ~x86-fbsd
Already stable: amd64
To stable: alpha arm hppa ia64 ppc ppc64 sh sparc x86

Short note: FEATURES=test seems to be broken here (not only in .20), I&apos;ll try to work on either fixing or restricting (preferably the former). Testing can be done just by running it through the init script and browsing some files (or maybe even setting up a webapp).

[1] http://www.lighttpd.net/security/lighttpd_sa_2008_05.txt
[2]
http://www.lighttpd.net/security/lighttpd-1.4.x_rewrite_redirect_decode_url.patch
[5] http://www.lighttpd.net/security/lighttpd_sa_2008_07.txt
[6]
http://www.lighttpd.net/security/lighttpd-1.4.x_request_header_memleak.patch</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>keytoaster@gentoo.org</who>
            <bug_when>2008-09-30 16:43:24 0000</bug_when>
            <thetext>Actually adding arches.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>hoffie@gentoo.org</who>
            <bug_when>2008-09-30 18:54:19 0000</bug_when>
            <thetext>From oss-sec:

&gt;&gt; * Unexpected behavior of url.redirect / url.rewrite config options
&gt; Use CVE-2008-4359, to be filled in later.

&gt;&gt; * Information disclosure w/ mod_userdir on case-insensitive file
&gt;&gt;   systems
&gt; Use CVE-2008-4360, to be filled in later.

(And thanks for fixing my arch CC&apos;ing mess-up, keytoaster ;))</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fmccor@gentoo.org</who>
            <bug_when>2008-09-30 19:42:27 0000</bug_when>
            <thetext>Sparc stable.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2008-09-30 20:01:51 0000</bug_when>
            <thetext>Stable for HPPA.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2008-10-01 09:18:49 0000</bug_when>
            <thetext>alpha/ia64/x86 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>corsair@gentoo.org</who>
            <bug_when>2008-10-01 10:21:02 0000</bug_when>
            <thetext>ppc64 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2008-10-01 17:39:41 0000</bug_when>
            <thetext>ppc stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>keytoaster@gentoo.org</who>
            <bug_when>2008-10-01 21:22:09 0000</bug_when>
            <thetext>Ready for vote, I vote YES.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>craig@gentoo.org</who>
            <bug_when>2008-10-04 15:45:44 0000</bug_when>
            <thetext>*** Bug 239552 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-11-26 18:42:10 0000</bug_when>
            <thetext>Voting YES, request filed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-12-02 17:50:18 0000</bug_when>
            <thetext>GLSA 200812-04</thetext>
          </long_desc>
      
    </bug>

</bugzilla>