PHP exploit code plants itself in GIF

By Dawn Kawamoto, CNET News.com
22 June 2007 10:01 AM
Tags: exploit, gif, php

Security researchers have found PHP exploit code embedded in a GIF on a major image-hosting site.

The exploit code slipped through the site's defences with the aid of a legitimate image at the beginning of the file, according to a blog post on the Sans Institute's Internet Storm Center.

"It is a clever way to pass exploit code to others without it setting off alarms or attracting attention all while bypassing network security tools," the SANS security blog noted.

Malicious attackers planted PHP coded exploit script within an image file. PHP is often used as a programming language to create dynamic Web sites.

Once this type of malicious GIF is uploaded to a server, it can create havoc by remotely allowing more exploits to be deployed on the system, said Johannes Ullrich, chief research officer for the SANS Institute.

When users download the image to view it, the server parses the PHP code and the exploit is executed, as it serves the image to the user.

Over the past six months, this type of technique has been cropping up with greater frequency from small family Web sites to, more recently, a major image hosting site, Ullrich said.

Advertisement

Talkback 3 comments

    Is there a solution for this exploit yet? BLOGMYWAY.org -- 24/06/07

    So is there a solution to this exploit yet? Or it is just too new and no one know how to stop this exploit to invade web servers? I really hope the solution is out there to be locate and in use. How about just update the PHP version and your linux server kernel, etc..., will this actually helps in anyway?

    <a href="http://www.blogmyway.org">Get a Blog</a>

    you're an idiot Anonymous -- 25/06/07 (in reply to #320081538)

    how does PHP/linux kernel have anything to do with it?? the programmer should sanitize uploads correctly.

    big woop ... david -- 26/06/07

    you can do the same exploit with server-side ruby code ... or perl code ...

    nothing new here. if you store images than sanitize the upload and store them in an appropriate location with appropriate permissions on the uploaded file. In fact something not covered in the pdf is renaming the uploaded file so that malicious users can't easily get to the path of their file.

    lalallala ... nothing new here, move along.

Add your opinion

Latest Videos

Sponsored content

Power Centre - Content from our premier sponsors

Blogs

  • David Braue Can not-so-smart meters help the NBN?
    It was interesting to witness Conroy's recent enthusiasm to spruik the NBN's role in supporting the Smart Grid, Smart City initiative. What a pity that Conroy hadn't yet seen the damning report from the Victorian auditor-general about that state's smart-meter roll-out.
  • Array Can the Telco Reform Act be win-win?
    In the second of our two programs looking at the Senate Inquiry into the Telecommunications Legislation Amendment Bill, we hear from shareholders, bureaucrats and industry groups.
  • Array Has New Zealand's smiling assassin delivered?
    One year into its tenure, how has the new New Zealand Government performed on issues of technology and telecommunications?
  • More blogs »

Tags

Back to top

Featured