in reply to How Internet is a mess. (Playing with HTTPD)
And they can't access things outside the DOCUMENT_ROOT.
Are you sure?
print normalize_path( "\\.\\./etc/passwd" ); __DATA__ ../etc/passwd
Hmmm, looks outside the document root to me. You also have a bug in your $symb_ok regex string. You go on to try to convert \\ to / but you have stripped them out with the $path =~ s/[^$symb_ok]//gs; regex. If you fix that problem to allow windows \ paths you need to be really careful otherwise...
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How Internet is a mess. (Playing with HTTPD)
by gmpassos (Priest) on Feb 27, 2003 at 21:51 UTC | |
by tachyon (Chancellor) on Feb 27, 2003 at 22:04 UTC | |
by gmpassos (Priest) on Feb 27, 2003 at 22:16 UTC | |
by tachyon (Chancellor) on Feb 27, 2003 at 22:42 UTC | |
by IlyaM (Parson) on Feb 28, 2003 at 09:42 UTC | |
| |
by perrin (Chancellor) on Feb 28, 2003 at 01:42 UTC | |
by gmpassos (Priest) on Feb 28, 2003 at 04:19 UTC | |
by perrin (Chancellor) on Feb 28, 2003 at 16:32 UTC |