in reply to Re: Re: escaping filenames taken in via user input
in thread escaping filenames taken in via user input
the problem is I don't have access to the web server logs or configuration
so it seems that your "evil user" has more access than you do. You are only escaping .. s/\.\./\\\.\\\./g; so if I supply /etc/passwd as my input, how does your script handle it?
You probably should split the path into its components, and then decide from there what the file is.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: escaping filenames taken in via user input
by revdiablo (Prior) on Oct 31, 2002 at 07:02 UTC |