Well, I allow (within the script) to download certain types of files using the Forum Admin Defined approach! How can I find out if these files match the type set by the administrator to make sure they are not fake files. I am currently using a mime type approach, but different browsers can set different mime types, so this does not help much. Checking the file extension also does not help, because people can get around this by providing it with an extension that is allowed but will have a different file type.
Perhaps there is a link to a way to check for bytes in different files of different types to make sure that it is of the correct type? Perhaps this can also be tampered with, but at least it would be a little more accurate when using the form to upload files and submit them.
Can someone please help me with ideas about this?
Thanks:)
SoLoGHoST
source share