Closed Thread
Results 1 to 6 of 6

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

  1. #1
    AtoZ is offline Learning Programmer
    Join Date
    Jan 2010
    Posts
    34
    Rep Power
    0

    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. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,478
    Blog Entries
    75
    Rep Power
    143

    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.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #3
    QuackWare is offline Learning Programmer
    Join Date
    Jan 2010
    Posts
    95
    Rep Power
    8

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

    Isn't it buffer overflow?

  5. #4
    Join Date
    Jul 2006
    Posts
    16,478
    Blog Entries
    75
    Rep Power
    143

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

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

  6. #5
    Join Date
    May 2008
    Posts
    2,126
    Blog Entries
    1
    Rep Power
    33

    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.

  7. #6
    Red_Shadow's Avatar
    Red_Shadow is offline Learning Programmer
    Join Date
    Jan 2009
    Location
    over the rainbow
    Posts
    58
    Rep Power
    0

    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

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Impossible, even for you??
    By rickyk586 in forum Programming Theory
    Replies: 13
    Last Post: 02-07-2011, 04:23 PM
  2. implementation of 4 round impossible differential of AES
    By stMuzak in forum General Programming
    Replies: 1
    Last Post: 01-08-2011, 03:59 PM
  3. How to play with windows media player multiple files ?
    By kresh7 in forum Visual Basic Programming
    Replies: 3
    Last Post: 12-27-2007, 03:11 PM
  4. An impossible algorithm?
    By crazyinstinct in forum General Programming
    Replies: 1
    Last Post: 03-03-2007, 12:54 PM

Tags for this Thread

Bookmarks

Posting Permissions

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