Home GnuPG
Diffusion GpgOL b2ed39c55af2

Block HTML for unsigned S/MIME messages

Description

Block HTML for unsigned S/MIME messages

* src/mail.cpp (Mail::set_block_status): New. Sets a MAPI prop
to disable automatic HTML external references.
(Mail::set_block_html): New. HTML content should be blocked.
(Mail::parsing_done): check for block html.
(Mail::update_body): Block HTML if necessary.
* src/parsecontroller.cpp (ParseController::shouldBlockHtml): New.
(is_valid_chksum): Check that the sig is valid even if it is
untrusted.
* src/mymapitags.h (PR_BLOCK_STATUS): New.
* src/oomhelp.h (PR_BLOCK_STATUS_DASL): New.

This blocks HTML display in unsigned S/MIME Mails to avoid
attacks that rely on HTML side channels. If there is
no text/plain part it will show the unparsed HTML. Trying
to parse it with Outlook and then inserting at as plain text
left the references intact and appears to be too risky.

Details

Provenance
aheineckeAuthored on Jun 1 2018, 10:06 AM
Parents
rOb6ddad7615a0: Remove unused engine based code
Branches
Unknown
Tags
Unknown
Tasks
T3986: GpgOL: Mitigate manipulations of encrypted S/MIME mails