+ Reply to Thread
Results 1 to 6 of 6

Thread: Is it Impossible to Add a Vius to Media Files?

  1. #1
    Newbie AtoZ is an unknown quantity at this point
    Join Date
    Jan 2010
    Posts
    14

    Is it Impossible to Add a Vius to Media Files?

    Just debating with a friend.

    Is it actually possible to add a virus to say the .avi format? or JPEG etc?

    Would the programs that open these format stop any non correct code from executing anyway?

    Thanks.

  2. #2
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,660
    Blog Entries
    57

    Re: Is it Impossible to Add a Vius to Media Files?

    Yes. They are generally activated by a trick called a "buffer overrun" where you break out of the media file to overwrite the player's code.
    CodeCall Blog | CodeCall Wiki | Shareware
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  3. #3
    Learning Programmer QuackWare is on a distinguished road
    Join Date
    Jan 2010
    Posts
    83

    Re: Is it Impossible to Add a Vius to Media Files?

    Isn't it buffer overflow?

  4. #4
    Super Moderator WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther has much to be proud of WingedPanther's Avatar
    Join Date
    Jul 2006
    Age
    36
    Posts
    11,660
    Blog Entries
    57

    Re: Is it Impossible to Add a Vius to Media Files?

    Yeah, my bad.
    CodeCall Blog | CodeCall Wiki | Shareware
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  5. #5
    MeTh0Dz is a name known to all MeTh0Dz is a name known to all MeTh0Dz is a name known to all MeTh0Dz is a name known to all MeTh0Dz is a name known to all MeTh0Dz is a name known to all
    Join Date
    May 2008
    Posts
    473

    Re: Is it Impossible to Add a Vius to Media Files?

    Of course you _can_.

    However it's only going to be worthwhile if you find an exploit in the file type, or the way a specific piece of software handles the file type.

  6. #6
    Learning Programmer Red_Shadow is an unknown quantity at this point Red_Shadow's Avatar
    Join Date
    Jan 2009
    Location
    over the rainbow
    Posts
    42

    Re: Is it Impossible to Add a Vius to Media Files?

    Quote Originally Posted by AtoZ View Post
    Just debating with a friend.

    Is it actually possible to add a virus to say the .avi format? or JPEG etc?

    Would the programs that open these format stop any non correct code from executing anyway?

    Thanks.
    Well, you could only really target one image viewer app. An exploit is usually pretty specific, and a "general" virus can't spread through image files (as they aren't executeable).

    However, many viruses/worms write copies of themselves to files, often image files. They do this by displacing the data already there, and adding the code to, say, the middle of the file. This is more frequently done with executable file formats though, as the code might not be executed otherwise.

    This sort of virus/worm is know as a file infecter. Please refer to: spamlaws.com/file-infectors.html

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Replies: 0
    Last Post: 12-27-2009, 04:59 PM
  2. Some Basic Linux Commands, For Beginners...
    By Onur in forum Linux Tutorials, Guides and Tips
    Replies: 5
    Last Post: 10-12-2009, 02:07 AM
  3. Detect Character Set
    By dargueta in forum General Programming
    Replies: 14
    Last Post: 09-10-2009, 04:55 PM
  4. Uploading unknown number of files using php & JS
    By amrosama in forum PHP Tutorials
    Replies: 4
    Last Post: 01-08-2009, 09:48 AM
  5. Replies: 0
    Last Post: 12-14-2008, 05:20 PM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts