Avatar Thumb.Php

Started on the old forum in December 2010 · view the original in the archive · old links redirect here

16 replies · 901 views · started 15 years ago · 1 min read

5 participants
Jervy Senior · 250 posts #1

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?

Download: Click Here

frostymarvelous Senior · 266 posts #2

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.

Perfection comes at a cost

I accept liberty!

Jervy Senior · 250 posts #3

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 Senior · 250 posts #5

Ok wait dude, i'll check.

frostymarvelous Senior · 266 posts #6

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.

Perfection comes at a cost

I accept liberty!

Jervy Senior · 250 posts #7

@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.

frostymarvelous Senior · 266 posts #8

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.

Perfection comes at a cost

I accept liberty!

Jervy Senior · 250 posts #9

My only folder which is chmod to 777 is the "avatars" and "attachments". Is it possible to inject a shell in a folder which is chmod to 755?

frostymarvelous Senior · 266 posts #12

Once again! NEVER EVER CHMOD 777. If 755 won't work, just notch it up a bit. But never 777.

Perfection comes at a cost

I accept liberty!

Jervy Senior · 250 posts #13

But chmod 755 or 775 cant be use for uploading files, only 777.

Wintch Developer · 68 posts #14

Y are people s0 wicked.

Jervy u mean till n0w u stil cant delete the file?

Jervy Senior · 250 posts #15

Already deleted.

frostymarvelous Senior · 266 posts #16

That may be from your server. I my uploads folder on my site is 755. Don't ask me how, I don't know. I'm not a perfect security buff.

Perfection comes at a cost

I accept liberty!

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close