Repository navigation
Version 6.1.4
- Fixes a path traversal issue
Reader.ExtractToFolder writes each attachment of a parsed .msg or .eml email to outputFolder + attachment.FileName. For attachments unpacked from an embedded TNEF (winmail.dat) part the filename is taken straight from the TNEF stream and never passes through the RemoveInvalidFileNameChars sanitiser that normal MAPI and MIME attachment names do. So a crafted email can give a TNEF attachment a filename containing ../ segments and have the extracted file written outside the output folder, with attacker-chosen contents.