Hi!
I frequently use scripts that allow my visitors to upload pictures.
Of course I check for the right filetype etc. but the only way I get it to work is by having a directory with permission set to 0777.
A couple of times I found scripts in that directory that I had not put there!
Is there a way that maybe uses CHMOD to only allow uploads through the script, or another way to avoid this?
Maybe not 0777 but another value?
Or did I make a mistake?
Or is there another leak?
I frequently use scripts that allow my visitors to upload pictures.
Of course I check for the right filetype etc. but the only way I get it to work is by having a directory with permission set to 0777.
A couple of times I found scripts in that directory that I had not put there!
Is there a way that maybe uses CHMOD to only allow uploads through the script, or another way to avoid this?
Maybe not 0777 but another value?
Or did I make a mistake?
Or is there another leak?