http://domain.com/showpic.php?album=../../../../../../../../../../../../../../../../../../../../../../etc&pic=passwd&dispsize=Original
I was able to grab a couple of /etc/passwds off of some webservers.
Logged In: YES user_id=1009311
'../' shouldn't ever be in the $album, correct? blast it away?
$album = preg_replace('/..\//', '', stripslashes($_GET['album']));
$album = preg_replace('/\.\.\//', '',stripslashes($_GET['album']));
would work better..
Log in to post a comment.
Logged In: YES
user_id=1009311
'../' shouldn't ever be in the $album, correct? blast it away?
$album = preg_replace('/..\//', '',
stripslashes($_GET['album']));
Logged In: YES
user_id=1009311
$album = preg_replace('/\.\.\//',
'',stripslashes($_GET['album']));
would work better..