Re: Which file "Included" me?
| From: | Michael A. Peters | Date: | Wed, 18 Feb 2009 21:51:23 +0000 |
| Subject: | Re: Which file "Included" me? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-288571@lists.php.net to get a copy of this message | ||
Dotan Cohen wrote:
Did you actually try his example? Some browsers may have some client side protection and not execute it. I believe suhosin protects against it server side. NoScript would block it, even if you had scripts enabled globally. <html> <head><title>foo</title></head> <body> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <input type="submit" value="submit" /> </form> </body> </html> Put that on a server w/o suhosin, turn off NoScript, and try it. If it doesn't work with current firefox - try with an older version of IE.http://www.gfx-depot.com/forum/-php-server-php-self-validation-t-1636.html explains a technique to validate the input as well (don't trust that is clean)I do not understand the exploit. How is he spoofing any $_SERVER variables? The attack description doesn't make sense.