[Esd-l] Sanitizer somehow left a .doc extension on a document

John D. Hardin jhardin at impsec.org
Wed Oct 3 20:15:01 PDT 2001


On Wed, 3 Oct 2001, Brett Glass wrote:

>   Content-type: application/msword; name="default.txt";
> Content-Disposition: attach; filename="cgiperl_C_XMLresume.6373DEFANGED-doc"
> 
> and the attachment came through with the file name
> 
> cgiperl_C_XMLresume.6373DEFANGED-doc.doc
> 
> Why?

The sanitizer mangles content-type when it mangles the filename, but
since it's stream processing it can't go back and change things it's
already seen.

The .txt file on the content-type line bypassed the content-type
mangling (that particular line was clean), and I bet your mail program
helpfully fixed the .doc filename to match the content-type.

I will fix this in the rewrite.

--
 John Hardin KA7OHZ   ICQ#15735746   http://www.wolfenet.com/~jhardin/
 jhardin at impsec.org        pgpk -a finger://gonzo.wolfenet.com/jhardin
  768: 0x41EA94F5 - A3 0C 5B C2 EF 0D 2C E5  E9 BF C8 33 A7 A9 CE 76 
 1024: 0xB8732E79 - 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  In 1998 more than three times as many people in the US were killed
  by incompetent physicians than were killed by handguns, yet the
  President of the A.M.A. is adopting "gun safety" as his platform.
-----------------------------------------------------------------------
   1126 days until the Presidential Election



More information about the esd-l mailing list