Debian Security Advisory

DSA-392-1 webfs -- buffer overflows, file and directory exposure

Date Reported:
29 Sep 2003
Affected Packages:
Security database references:
In the Bugtraq database (at SecurityFocus): BugTraq ID 8724, BugTraq ID 8726.
In Mitre's CVE dictionary: CVE-2003-0832, CVE-2003-0833.
More information:

Jens Steube reported two vulnerabilities in webfs, a lightweight HTTP server for static content.

CAN-2003-0832 - When virtual hosting is enabled, a remote client could specify ".." as the hostname in a request, allowing retrieval of directory listings or files above the document root.

CAN-2003-0833 - A long pathname could overflow a buffer allocated on the stack, allowing execution of arbitrary code. In order to exploit this vulnerability, it would be necessary to be able to create directories on the server in a location which could be accessed by the web server. In conjunction with CAN-2003-0832, this could be a world-writable directory such as /var/tmp.

For the current stable distribution (woody) these problems have been fixed in version 1.17.2.

For the unstable distribution (sid) these problems have been fixed in version 1.20.

We recommend that you update your webfs package.

Fixed in:

Debian GNU/Linux 3.0 (woody)

Intel IA-32:
Intel IA-64:
Motorola 680x0:
Big endian MIPS:
Little endian MIPS:
IBM S/390:
Sun Sparc:

MD5 checksums of the listed files are available in the original advisory.