Can someone modify this uloki avatar coded by froztymarvelous. The upload section is in usercp.php the file path where avatar image lies in avatars folder and the thumb.php + palette.jpg is also in avatars folder. I just want to seperate the thumb.php. I want it outside the avatars folder but always got error. Anybody wanna help?
That's why I left it in the avatars folder. Of I remember correctly, I had a problem trying to save to a different dir so I just left it in the same dir. Its been almost a year so I can't really remember.
Try this solution instead of blocking all php extensions in the dir.. I know for sure it will prevent executing a php file in that dir directly, but I don't know about an remote call.
Upload to the avatar folder and try an avatar upload.
You can't remodify it frozty? As i tried to secured my forum all the files in avatars folder exept images ang disabled or unexecuted even if a php was uploaded it cant be use. Is there any solution for that?
Jervy wrote:
You can't remodify it frozty? As i tried to secured my forum all the files in avatars folder exept images ang disabled or unexecuted even if a php was uploaded it cant be use. Is there any solution for that?
Thing is, a php can't be uploaded.
It uses gd functions, and thus makes sure the file is an image. It then makes a thumbnail of the pic and saved that not the original. Zero chance of php upload or even pics with php hidden in them. The script created the image, not the user. So all in all, you are safe.
@frosty i let you handle my cpanel right? Havent you check my avatars folder? There's a hack.php uploaded and a sub dir created, and the m0st tricky thing is my .htaccess was replaced by Huwad (hacker). And when i check my attachments folder there's also a php file which is n0t renamed by md5. I w0nder how it happens thats why im over securing my folders.
Added after 2 minutes:
And also I encounter this thing. After hacking i tried to rem0ve the php file in avatars folder but the server says i dont have permissi0n! Wtf! I d0nt have permissi0n in my own server! How could it be?
Added after 3 minutes:
If its impossible to upload a php file in the avatars folder as you said then how come huwad was able to upload a php file in it and even create a sub dir? And the permission was stolen,and the htaccess was edited.Hmmm...You d0n't believe me right? But it's true. I've been hacked 32x already.Before Huwad came there's Xploder who c0mes 1st.
Jervy wrote:
@frosty i let you handle my cpanel right? Havent you check my avatars folder? There's a hack.php uploaded and a sub dir created, and the m0st tricky thing is my .htaccess was replaced by Huwad (hacker). And when i check my attachments folder there's also a php file which is n0t renamed by md5. I w0nder how it happens thats why im over securing my folders.
Added after 2 minutes:
And also I encounter this thing. After hacking i tried to rem0ve the php file in avatars folder but the server says i dont have permissi0n! Wtf! I d0nt have permissi0n in my own server! How could it be?
Added after 3 minutes:
If its impossible to upload a php file in the avatars folder as you said then how come huwad was able to upload a php file in it and even create a sub dir? And the permission was stolen,and the htaccess was edited.Hmmm...You d0n't believe me right? But it's true. I've been hacked 32x already.Before Huwad came there's Xploder who c0mes 1st.
It definitely was not through that script. Have u checked ur other uploaders?
Maybe shell hacking or something.