snappymail/snappymail/v/0.0.0/app/libraries/MailSo
the-djmaze b6607bf6e1 @ZaphodB fix(security): strip line breaks from decoded and outgoing header values
DecodeHeaderValue removed CR and LF before decoding encoded-words, so an
encoded-word could still decode to a line break. A message whose Message-ID
was =?utf-8?b?...?= with CRLF inside reached the client with the break intact,
the client copies Message-ID into In-Reply-To when replying or forwarding, and
SetInReplyTo only trimmed it. The reply then carried header lines chosen by the
sender of the original, or a body if the payload held a blank line, sent and
DKIM-signed as the user and saved to Sent. Subject on Edit-as-new had the same
shape through the ASCII path.

Strip CR, LF and NUL in two places: after decoding in DecodeHeaderValue, and in
Header itself, which every outgoing header is built through, so a value that
arrives by another route (client parameters, plugins) cannot break the line
either. Folding is unaffected; __toString adds it back.

test/header-injection.php covers B and Q encoded-words, parsing, outgoing
In-Reply-To and Subject, and that long values still fold.
2026-10-24 11:50:10 +02:00
..
Base @ZaphodB fix(security): strip line breaks from decoded and outgoing header values 2026-10-24 11:50:10 +02:00
Cache Resolve #1660 2024-07-11 00:25:26 +02:00
Imap PHP 8.4: Implicitly nullable parameter declarations deprecated 2024-09-17 15:58:37 +02:00
Log Resolve #1850 2024-11-26 01:47:34 +01:00
Mail Resolve #1716 2024-09-21 00:28:13 +02:00
Mime @ZaphodB fix(security): strip line breaks from decoded and outgoing header values 2026-10-24 11:50:10 +02:00
Net Update SSLContext.php: fixed typo in line 42, to reference correct class 2025-11-15 23:12:25 +01:00
Sieve Moved application.ini sieve_auth_plain_initial to per domain config 2024-03-24 16:49:00 +01:00
Smtp Resolve #1813 2024-10-27 13:26:05 +01:00
Config.php Move all imap config options to MailSo\Imap\Settings for per domain control 2022-12-13 09:54:19 +01:00
LICENSE Rename basefolder 'rainloop' to 'snappymail' 2020-10-15 16:21:52 +02:00
RuntimeException.php All MailSo Exceptions to a more logical \MailSo\RuntimeException base 2022-10-24 10:49:57 +02:00