Rapid7 Vulnerability & Exploit Database

Apache "mod_userdir" User Enumeration

Back to Search

Apache "mod_userdir" User Enumeration



Apache with the UserDir directive enabled generates different error codes when a username exists and there is no public_html directory and when the username does not exist, which could allow remote attackers to determine valid usernames on the server.


  • Heyder Andrade <heyder.andrade@alligatorteam.org>


Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use auxiliary/scanner/http/apache_userdir_enum
msf auxiliary(apache_userdir_enum) > show actions
msf auxiliary(apache_userdir_enum) > set ACTION < action-name >
msf auxiliary(apache_userdir_enum) > show options
    ...show and set options...
msf auxiliary(apache_userdir_enum) > run 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security