Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Clamav reports a virus: Exploit.Gif.PHPembedded
- Date: Thu, 5 Jun 2008 16:54:30 +0900
- From: "Edmund Edgar" <lists@example.com>
- Subject: Re: [tlug] Clamav reports a virus: Exploit.Gif.PHPembedded
- References: <78d7dd350806042138r226b625do6f30eb68cc80e732@mail.gmail.com> <b4d277190806042240l1b0d2cadme275cf77dccdd79a@mail.gmail.com> <78d7dd350806042336j65d47ec9n382205fe5f566e13@mail.gmail.com>
2008/6/5 Hung Nguyen Vu <vuhung16plus+shape@example.com>: > What do you mean by "execute the file"? > PHP can not execute the file, IIRC. All PHP Exif APIs can do is that read > JPEG's comment, and if we want, print it out. So if we just print/echo > the comment, > the malicious code will be executed by PHP. I'm talking about what happens if the jpeg file with the PHP content in it gets run by the PHP interpreter. The PHP interpreter wouldn't know it was an image file - it would just execute everything inside the <?php ?> tags and print out everything else. For example, if you ran PHP from the command line against that image file with something like: php yourimage.jpg ...you'd get something like [a load of binary junk] . .. various files in your current directory [a load more binary junk] Likewise, if you put the file up on a website with PHP enabled and loaded it in a web browser, you'd get some binary junk, followed by a directory listing, followed by some more binary junk. Hope that makes sense. Edmund
- Follow-Ups:
- Re: [tlug] Clamav reports a virus: Exploit.Gif.PHPembedded
- From: Hung Nguyen Vu
- References:
- [tlug] Clamav reports a virus: Exploit.Gif.PHPembedded
- From: Hung Nguyen Vu
- Re: [tlug] Clamav reports a virus: Exploit.Gif.PHPembedded
- From: Edmund Edgar
- Re: [tlug] Clamav reports a virus: Exploit.Gif.PHPembedded
- From: Hung Nguyen Vu
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] switch for small cluster
- Next by Date: Re: [tlug] Clamav reports a virus: Exploit.Gif.PHPembedded
- Previous by thread: Re: [tlug] Clamav reports a virus: Exploit.Gif.PHPembedded
- Next by thread: Re: [tlug] Clamav reports a virus: Exploit.Gif.PHPembedded
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links