25 Years of Programming Community Forum
Blog  Sitemap  Services
June 19, 2013, 10:12:03 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: If you get a (403 - Forbidden) error while trying to browse the forum, it is because your browser is disallowing cookies.
 
   Home   Help Search Login Register  
This is a link to the Chat Room (for Firefox+ChatZilla) when you are logged in.
View help topic about using Live Chat
Pages: 1   Go Down
  Print  
Author Topic: Hidden malicious scripts on images?  (Read 1599 times)
0 Members and 1 Guest are viewing this topic.
gelay
Newbie
*
Offline Offline

Posts: 1


« on: May 05, 2011, 03:23:12 AM »

I'm a moderator of a particular forum and I see gradually see some suspicious posts with images. Is it possible that malicious scripts can be concealed inside an image? If yes, is there necessary steps how to detect such?
Report to moderator   Logged
SteveW
Administrator
Sr. Member
*****
Offline Offline

Posts: 285


WWW
« Reply #1 on: May 05, 2011, 05:31:18 AM »

I found a few reports about malicious scripts concealed inside images, but it appears possible they're all referring to the same one incident. Here's one of the articles: http://www.pcworld.com/article/133275/innocentlooking_gifs_host_malware_attacks.html

People discussing the incident don't seem to agree about how much of a threat it really is. 

If you download an image to your PC and open it with a text editor like Notepad, you should be able to see if there is PHP code embedded in it. Or you could "type" it in Windows, or "cat" it in Linux:

type someimage.gif
cat someimage.gif

The contents would mostly be garbage, with some plain text mixed in. 

More dangerous would be PHP scripts whose names try to make them look like an image, even though they're really not. Example: image.gif.php

Your forum software probably allows you to limit what file types users can upload.
Report to moderator   Logged
ciara1
Newbie
*
Offline Offline

Posts: 6


« Reply #2 on: October 02, 2011, 08:00:49 AM »

Stevew, that's really a technical advice, you have helped thousands of people with the solution you posted.
Am greatly helped, cause i have a victim of such malware for long.
thanx
Report to moderator   Logged

Pages: 1   Go Up
  Print  
 
Jump to:  

Yahoo! Search
Search the web Search this site
Mazeguy Smilies Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!