Jump to content

Question for those who host web sites.


Recommended Posts

Posted

My brother has a website set up and wants to be able to host user uploaded images. He has had a couple attacks from what i think are called "code injection" or maybe XXS attacks. Basically it's a malicious script in a .JPG file. When the php code loads the image, it either gets an error and jumps to the script or just runs the script outright. ( i didn't know .jpg's could have viruses till 30 minutes ago)

The script can create files and or retrieve information and/or scripts on the server . I only know a couple programming languages and those aren't going to help him.

I have told him, just make users put images on third party sites and link to them. Why waste his storage space a try to deal with more risk than he has to. But he has his mind set on this.

That being said, I was just wondering what you system admins do to protect yourselves from these attacks. I am trying to help him out here but don't know where to begin.

Posted

My brother has a website set up and wants to be able to host user uploaded images. He has had a couple attacks from what i think are called "code injection" or maybe XXS attacks. Basically it's a malicious script in a .JPG file. When the php code loads the image, it either gets an error and jumps to the script or just runs the script outright. ( i didn't know .jpg's could have viruses till 30 minutes ago)

The script can create files and or retrieve information and/or scripts on the server . I only know a couple programming languages and those aren't going to help him.

I have told him, just make users put images on third party sites and link to them. Why waste his storage space a try to deal with more risk than he has to. But he has his mind set on this.

That being said, I was just wondering what you system admins do to protect yourselves from these attacks. I am trying to help him out here but don't know where to begin.

I knew that jpg's could have viruses, any can. I know a guy who could infect a state's office. Send a "harmless" email just asking what time someone is available, setting up an appointment, but in reality... it does whatever the virus is programmed to do. And that's without a pic at all, so including a pic? Definitely.

As for how to help... there may be a way to scan the files through an anti-virus before it's officially uploaded to the site. Like don't go to norton and scan it, but somehow incorporate it through the submission. I only know of this because of college. We submit our assignments and once we hit submit, it checks for viruses and then posts it for our professor to see/grade/whatever. Obviously it's not 100% accurate but it's better than nothing.

Sheena = pedobear

Posted

Well, he is running on Linux. I don't know if he has antivirus or not. Or even if antivirus will detect it since it's just php code in a jpg which could be there anyway. Like i said, i am not much help to him.

Posted

I'll try to ask this guy. He seems to know almost everything about computers, programming, languages, and more. I mean hell... he's building a game online. Just not sure if he'll respond or if he does... when he will. Could be months. Anything else so I know to include it in the message?

Linux, viruses and shit are php code....

And Idk but I think, OS don't matter. I mean sure, the attacks can be poised to attack linux but anti virus may catch any virus... for any OS. Could be wrong though. But I do agree with you that they should link it from a page like photobucket or whatnot. Shouldn't submit it to him. Or, if he's that damn set on having the image... they could still link it and he can save it from there. Sites like that should have anti virus or whatever to delete the attacks or reject the image if it can't.

Sheena = pedobear

Posted

I'll try to ask this guy. He seems to know almost everything about computers, programming, languages, and more. I mean hell... he's building a game online. Just not sure if he'll respond or if he does... when he will. Could be months. Anything else so I know to include it in the message?

Linux, viruses and shit are php code....

And Idk but I think, OS don't matter. I mean sure, the attacks can be poised to attack linux but anti virus may catch any virus... for any OS. Could be wrong though. But I do agree with you that they should link it from a page like photobucket or whatnot. Shouldn't submit it to him. Or, if he's that damn set on having the image... they could still link it and he can save it from there. Sites like that should have anti virus or whatever to delete the attacks or reject the image if it can't.

I don't know for sure what else to include. Your friend is probably pretty aware of the issue. It took down godaddy a couple of years ago and the hackers keep finding ways to re-implement it. It has to do more with the actual PHP function for loading the image. So i think it needs to be screened before hand.

Places like photobucket don't seem to have any issues, but i don't think they are using PHP functions, probably their own hand coded stuff to screen and display images. If i could write PHP I would make something for him. But I am sure it isn't as simple as it sounds.

I think this technique is very similar to what is used to root PSP's. If any of you ave ever done that you will get the idea.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Who's Online   0 Members (See full list)

    • There are no registered users currently online
×
×
  • Create New...