Apache UserDir Directive Username Enumeration

This script is Copyright (C) 2001-2014 Tenable Network Security, Inc.


Synopsis :

The remote Apache server can be used to guess the presence of a given
user name on the remote host.

Description :

When configured with the 'UserDir' option, requests to URLs containing
a tilde followed by a username will redirect the user to a given
subdirectory in the user home.

For instance, by default, requesting /~root/ displays the HTML
contents from /root/public_html/.

If the username requested does not exist, then Apache will reply with
a different error code. Therefore, an attacker may exploit this
vulnerability to guess the presence of a given user name on the remote
host.

Solution :

In httpd.conf, set the 'UserDir' to 'disabled'.

Risk factor :

Medium / CVSS Base Score : 5.0
(CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N)
CVSS Temporal Score : 4.5
(CVSS2#E:F/RL:W/RC:ND)
Public Exploit Available : true

Family: Web Servers

Nessus Plugin ID: 10766 (apache_username.nasl)

Bugtraq ID: 3335

CVE ID: CVE-2001-1013