![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: $_SERVER['SCRIPT_NAME'] versus $_SERVER['PHP_SELF'] (or other?)
From: Jim Carlock <anonymous@127.0.0.1>
Date: Sun Feb 26 2006 - 03:43:22 CET
Jim Carlock wrote:
> And the subject... is one of the variables better than the other? One
<?php phpinfo(); ?>
> The try accessing it with:
Okay, that specific example didn't reference $_SERVER['SCRIPT_NAME']
Did you forget to include something?
I tested it out. phpinfo() reported the following:
----
Apache Environment Variables
PATH_INFO: /"><script>alert('hacked')</script><blahblah
REQUEST_URI: /test.php/%22%3E%3Cscript%3Ealert('hacked')%3C/script%3E%3Cblahblah
----
HTTP Headers Information
HTTP Request: GET /test.php/%22%3E%3Cscript%3Ealert('hacked')%3C/script%3E%3Cblahblah HTTP/1.1
It looks like that "script" depends upon some sort of CGI capability,
perhaps PHP.EXE configured into the PATH. Is that related to the
subject in some way ?
<g> You lost me there.
Jim Carlock
Post replies to the group.
Received on Mon May 1 02:21:43 2006
|