View Single Post
  #7 (permalink)  
Old 09-16-04, 01:00 AM
mikaelf mikaelf is offline
Wannabe Coder
 
Join Date: Jun 2004
Location: php[dot]net
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
it's not php's fault. magic_quotes works by adding single backslash to escape special character. (this bug is actually be used in sql injection). if the exploit works it's the code fault, not php. what's the permission of /etc/passwd ?? it should not be able to be viewed by other users besides root and toor. if you're talking about php "index.php?page=/etc/passwd\0" which will barely include /etc/passwd, it's the author's fault. anyway, if you talk about php "index.php?act=more%20/etc/passwd\0" which will view the content of /etc/passwd, then your script will do nothing.
__________________
Useful PHP links:
bugs.php.net - for reporting PHP bugs
pear.php.net - PHP extension and application repository
pecl.php.net - get non standard PHP modules, submit yours
www.phpclasses.org - PHP classes repository
Reply With Quote