Is it safe to serve any user uploaded file under only white-listed MIME content types?

Let’s say I develop an application that,

Allows any user to upload a file of only white listed mime content type and extensions (word and pdf).
Serves those files with the allowed extension and content type.

Is this a security risk? W… Continue reading Is it safe to serve any user uploaded file under only white-listed MIME content types?

Using file extension and MIME type (as output by file -i -b) combination to determine unsafe files?

We allow users to upload a number of files, all of which we either send over to scribd (doc, xls, ppts, etc) or display as a video ourselves (flv, mov, mp4, etc in flowplayer).

To avoid users uploading unsafe files, we check… Continue reading Using file extension and MIME type (as output by file -i -b) combination to determine unsafe files?

Using file extension and MIME type (as output by file -i -b) combination to determine unsafe files?

We allow users to upload a number of files, all of which we either send over to scribd (doc, xls, ppts, etc) or display as a video ourselves (flv, mov, mp4, etc in flowplayer).

To avoid users uploading unsafe files, we check… Continue reading Using file extension and MIME type (as output by file -i -b) combination to determine unsafe files?