You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2010/07/20 17:37:01 UTC

DO NOT REPLY [Bug 49623] New: CVE-2003-1418 - all httpd versions seem to expose inode values in FileEtag

https://issues.apache.org/bugzilla/show_bug.cgi?id=49623

           Summary: CVE-2003-1418 - all httpd versions seem to expose
                    inode values in FileEtag
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: a.nurwono@f5.com


Apache seems to simply hex-encodes inodes retrieved by fstat() directly into
etags through simple encoding.

Apache 2.2.3 in httpd-2.2.3/modules/http/http_etag.c:
    next = etag_ulong_to_hex(next, (unsigned long)r->finfo.inode);

httpd-2.2.3/srclib/apr/file_io/unix/filestat.c:
    if (fstat(thefile->filedes, &info) == 0) {
...
    finfo->inode = info->st_ino;


This shows up as a security vulnerability through exposure of inode information
for files hosted by httpd:

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2003-1418

An example solution to the problem was posted on OpenBSD, which is to use a
hash of the inode instead of directly presenting an encoded inode into the etag
value:

http://ftp.openbsd.org/pub/OpenBSD/patches/3.2/common/008_httpd.patch


I propose that future versions of Apache would either have FileEtag -Inode
turned on or have the inode be hashed by default.  (Preferably the original
behavior could be optional instead i.e.  FileEtag -noInodehash )

This would prevent security scanners from flagging all apache implementations
as vulnerable.

Thanks!

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 49623] CVE-2003-1418 - all httpd versions seem to expose inode values in FileEtag

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49623

Tomas Hoger <th...@redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thoger@redhat.com

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 49623] CVE-2003-1418 - all httpd versions seem to expose inode values in FileEtag

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49623

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |covener@gmail.com

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 49623] CVE-2003-1418 - all httpd versions seem to expose inode values in FileEtag

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49623

--- Comment #4 from Phil Dietz <pe...@west.com> 2011-09-15 15:34:13 UTC ---
I proprose that 'FileETag MTime Size' become the default along with the fix for
the hex problem.  why expose inode in the 1st place... unless you need it.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 49623] CVE-2003-1418 - all httpd versions seem to expose inode values in FileEtag

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49623

Stefan Fritsch <sf...@sfritsch.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from Stefan Fritsch <sf...@sfritsch.de> 2012-02-26 17:07:13 UTC ---
fixed in 2.4.1

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 49623] CVE-2003-1418 - all httpd versions seem to expose inode values in FileEtag

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49623

--- Comment #3 from Tomas Hoger <th...@redhat.com> 2011-09-05 13:21:08 UTC ---
Comment suggests this part is probably redundant now after the change:
http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/byterange_filter.c?view=markup&pathrev=1165268#l22

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 49623] CVE-2003-1418 - all httpd versions seem to expose inode values in FileEtag

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49623

Stefan Fritsch <sf...@sfritsch.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |FixedInTrunk

--- Comment #5 from Stefan Fritsch <sf...@sfritsch.de> 2012-01-23 22:22:55 UTC ---
fixed in r1199086

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 49623] CVE-2003-1418 - all httpd versions seem to expose inode values in FileEtag

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49623

--- Comment #1 from William A. Rowe Jr. <wr...@apache.org> 2011-09-01 21:21:54 UTC ---
Please provide a citation of how possessing an arbitrary identifier, the inode,
represents either a local or remote exploit?

No, not the respective validation test that is failing, but an actual citation 
w.r.t. the value of an inode to exploiting a machine.  Validation vendors are
famous for not actually probing for vulnerabilities, but regurgitating them
based on version numbers.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 49623] CVE-2003-1418 - all httpd versions seem to expose inode values in FileEtag

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49623

--- Comment #2 from Joe Orton <jo...@redhat.com> 2011-09-05 13:07:21 UTC ---
Tomas Hoger pointed out that CVE-2003-1418 also mentions a pid leak in the
byterange filter; I fixed that part in r1165268 since it seems cheap and
harmless.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org