Re: php program can read /etc/passwd?
- From: Keith Keller <kkeller-usenet@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 22 Mar 2007 13:36:00 -0700
On 2007-03-22, C. <colin.mckinnon@xxxxxxxxx> wrote:
1) exposing /etc/passwd is not an issue if shadow passwords are used
Exposing /etc/passwd to the world *is* a security issue, as it gives
crackers account ids to attempt to crack, rather than making them guess
at both the id and password. If the users use strong passwords, this is
a relatively minor issue, but it still is one.
2) allowing PHP to read any file on the server is not an issue if the
system is dedicated (i.e. not shared)
Allowing PHP to read and publish any readable file on the server can
also be an issue, as it could expose potential weaknesses in the web
server by publishing the config file(s).
It may be that the system is insecure - there is no evidence here that
PHP is behaving in any way to undermine security.
The real problem is, why would anyone writing a PHP or other web process
that takes user input trust said user input? If the programmer wants to
limit access to a particular directory, say, then he should write the
program to do so, *not* rely on the language to do it for him.
--keith
--
kkeller-usenet@xxxxxxxxxxxxxxxxxxxxxxxxxx
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information
.
- Follow-Ups:
- Re: php program can read /etc/passwd?
- From: Unruh
- Re: php program can read /etc/passwd?
- References:
- php program can read /etc/passwd?
- From: Rocky Zhou
- Re: php program can read /etc/passwd?
- From: Lew Pitcher
- Re: php program can read /etc/passwd?
- From: Rocky Zhou
- Re: php program can read /etc/passwd?
- From: Ertugrul Soeylemez
- Re: php program can read /etc/passwd?
- From: mr.b
- Re: php program can read /etc/passwd?
- From: C.
- php program can read /etc/passwd?
- Prev by Date: Re: php program can read /etc/passwd?
- Next by Date: Re: php program can read /etc/passwd?
- Previous by thread: Re: php program can read /etc/passwd?
- Next by thread: Re: php program can read /etc/passwd?
- Index(es):
Relevant Pages
|