Hey all, I am testing out my friends website atm however I noticed that within his image file upload he has screwed up the section where he gets to rename it.
For instance:
You upload a file in the admin menu and have to give it a name.
so file name might be x.jpg he's done it so you have to rename the file upon upload. so let's say that I call it x again. thats all fine
however in the management tab you can delete the image or rename it.
If you choose to rename the image it replaces anything like %00 / with a different value (str_replace), so after testing around I found out that I can change the location of his images by going: \..\..\..\image.jpg
which now will not be displayed in the list of uploaded files. He wants to fix it yet I am not quite sure what is going on, I know he displays his code within a loop (for displaying the images) or so he says. Any ideas? or even possibly how to fix the \..\..\, i tried using a null byte on his site upload so for instance:
maliciousScript.php%00.jpg and thats fine it gets turned to maliciousScript.php_.jpg
yet as previously mentioned if an ordinary image rename is changed to \..\..\..\ then it screws up.
thanks.
For instance:
You upload a file in the admin menu and have to give it a name.
so file name might be x.jpg he's done it so you have to rename the file upon upload. so let's say that I call it x again. thats all fine
however in the management tab you can delete the image or rename it.
If you choose to rename the image it replaces anything like %00 / with a different value (str_replace), so after testing around I found out that I can change the location of his images by going: \..\..\..\image.jpg
which now will not be displayed in the list of uploaded files. He wants to fix it yet I am not quite sure what is going on, I know he displays his code within a loop (for displaying the images) or so he says. Any ideas? or even possibly how to fix the \..\..\, i tried using a null byte on his site upload so for instance:
maliciousScript.php%00.jpg and thats fine it gets turned to maliciousScript.php_.jpg
yet as previously mentioned if an ordinary image rename is changed to \..\..\..\ then it screws up.
thanks.