Re: List /home directory without logging in?

From: Jem Berkes (jb_at_users.pc9.org)
Date: 07/05/04


Date: 5 Jul 2004 13:31:31 GMT


> How could someone list /home without logging in? Is there a known
> vuln I'm missing?

Likely, any uid can list /home because of the permissions on it. Mode 755
on /home lets any user list the contents and this is not unusual in itself.
Any application that isn't chrooted and lets a remote user execute commands
(even if it is under nobody's uid) can list /home, and that _is_ a problem.
An insecure PHP or CGI application for instance.

Listing /home doesn't do much good, other than helping determine which user
accounts exist. Viewing /etc/passwd would have done the same thing.

-- 
Jem Berkes
http://www.sysdesign.ca/


Relevant Pages

  • Re: List /home directory without logging in?
    ... > vuln I'm missing? ... any uid can list /home because of the permissions on it. ...
    (comp.os.linux.security)
  • Re: UID number and userID
    ... that smb4k is using the UID # when setting up shares rather than user name. ... Looking at the permissions on the shared resources is showing a user ... the smb4k folks. ... many config files has the old login name hardcoded. ...
    (alt.os.linux.suse)
  • Re: general daemon specific questions
    ... system level process and user level process. ... Lets start with uid. ... is special, it bypasses permissions. ... you can have a number of pre-defined setups of commands to be run. ...
    (comp.unix.shell)
  • Re: [OT] Ghost icon on server
    ... It is possible to get undeletable (using FTP) files if you create files ... The PHP created files have the Apache UID and if the ... Can you check the permissions and UID ...
    (alt.html)
  • Re: How to setup an read-only user account for a whole server with useradd ?
    ... read-only permissions for ALL files on the server beginning with the root directory. ... How do I setup the account and the permissions correctly? ... from processes who's UID matches the UID of the file, ... values for accesses that come from processes who's GID matches the GID ...
    (comp.os.linux.setup)