Re: Mail Attachment Security
- From: gordonb.a68sj@xxxxxxxxxxx (Gordon Burditt)
- Date: Wed, 31 Jan 2007 00:31:40 -0000
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.
.
- Follow-Ups:
- Re: Mail Attachment Security
- From: Tyrone Slothrop
- Re: Mail Attachment Security
- References:
- Mail Attachment Security
- From: Tyrone Slothrop
- Mail Attachment Security
- Prev by Date: Re: PHP 4.4.4 vs Perl 5.8.7 for Object Oriented server code
- Next by Date: Re: Dumping an array to a web page
- Previous by thread: Mail Attachment Security
- Next by thread: Re: Mail Attachment Security
- Index(es):
Relevant Pages
|