October 19th, 2002, 07:01 PM
automagically opening a file in MS Word with a Virus
I just discovered that it's possible to automagically open an application like M$ Word with PHP's headers function. When you force Word to open a file infected with a virus the visitor gets infected with a virus.
I'm running linux (hehe) so i'm not able to test it but isn't this quite a big security risk???
Please correct me if i'm wrong, Filip de Waard
PHP code from a alper at http://www.php.net/manual/en/function.header.php :
header("Content-type: application/x-msword"); header("Content-Disposition: filename="labels.doc");
November 1st, 2002, 07:17 AM
Anything made by Microsoft is a security risk.
November 1st, 2002, 12:13 PM