You are here: Re: Mail Attachment Security « PHP Programming Language « IT news, forums, messages
Re: Mail Attachment Security

Posted by Gordon Burditt on 01/31/07 00:31

>I have created a script which attaches form uploaded files to an
>email. What security is suggested to prevent attachments which may
>contain viruses, etc. from being uploaded?

If the uploaded file is coming from an untrusted source, don't trust
it. It's probably SPAM. The worst stuff is just straight text
files that contain stuff that infects human minds (like MAKE MONEY
FAST chain letters).

>I am running finfo_file()
>to determine the mime-types of the files being uploaded, so it should
>easy to exclude certain types of files based on this, or the file's
>extension.

Not nearly enough. MIME types and file names can be arbitrarly set to
misrepresent the contents.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация