Subject: | Mail::Header incorrect decoding |
Date: | Wed, 30 Mar 2016 23:31:25 +0200 |
To: | bug-MailTools [...] rt.cpan.org |
From: | Andrew Colin Kissa <andrew [...] topdog.za.net> |
Hi
Messages containing crafted mime headers do not get decoded correctly allowing for
malware loaded attachments to slip through filtering systems.
Content-Disposition: attachment; filename="Kebbekus1958_payment_38C587.rar"
Content-Type: application/x-rar-compressed; x-unix-mode=0600;
name="Kebbekus1958_payment_38C587.rar"
Content-Transfer-Encoding: base64
When a message with the above is parsed, the file Kebbekus1958_payment_38C587.rar
contains the base64 encoded data instead of the actual RAR file.
The proper mime header i believe should be.
Content-Disposition: attachment; filename="Kebbekus1958_payment_38C587.rar"
Content-Type: application/x-rar-compressed; x-unix-mode=0600;
name="Kebbekus1958_payment_38C587.rar"
Content-Transfer-Encoding: base64
Because the attachment is not decoded correctly, systems that extract archives to
check files inside can be bypassed to deliver malware payloads in the archive
attachments.
Maintainer of MIME-Tools indicates the issue is in Mail::Header and suggested i
report this to the upstream which is MailTools.
- Andrew
Message body not shown because it is not plain text.