Re: suspicious characters

Jan-Pieter Cornet <[email protected]> Thu, 5 Oct 2017 10:29:35 +0200
Newsgroups gmane.mail.mimedefang
Message-ID <[email protected]>
On 5-10-17 09:43, Michael Fox wrote:
> I'm trying to understand what triggers the setting of
> $SuspiciousCharsInHeaders and $SuspiciousCharsInBody?  All I can find are
> circular definitions that vaguely mention possible exploits.  But no
> specifics are given.  Before I use either of these, I'd like to understand
> better what constitutes "suspicious" in both cases.

In both header and body, a CR that is *NOT* followed by a LF is considered "suspicious".

In the body, a NUL character is also considered suspicious.

> Do you bounce every message that for which $SuspiciousCharsInHeaders is
> true?

Yes, we have been bouncing those for over a decade. No complaints so far. But it doesn't match a lot of messages (a handful each day out of a few million). And it occasionally also matches some seemingly "legitimate" messages that simply aren't formatted properly.

> How about every message for which $SuspiciousCharsInBody is true?

Tried that briefly and turned it off again. Can't remember why, probably because of false positives (that was in 2004). We currently ignore suspicious characters in body, don't even log it.

-- 
Jan-Pieter Cornet <[email protected]>
"Any sufficiently advanced incompetence is indistinguishable from malice."
     - Grey's Law

_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
signature.asc (application/pgp-signature, 963 B)
-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEERi08X+sQJ+Ye9TauIGpRrVHKNykFAlnV7W9fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDQ2
MkQzQzVGRUIxMDI3RTYxRUY1MzZBRTIwNkE1MUFENTFDQTM3MjkACgkQIGpRrVHK
NykeGQ//TROpcdRksTQV/jFlQH4Jhgg+1ECEBNn6Eb2nuTzdIDvq3ltsvmXmJfUs
wKlS5pyQnc5jFV8fD89C1v29k+MI02nQMLxhvumHJvgrG6YZPk47NI9vlTj7CkyD
qVV8RrC78VpPr67wOw18PWaRcCZhO6S0KDuSYlOba7unrjCWwIgBNYALqI6tDm4u
hgt6UOP5w/BmgKPZ9dTkLERPUmxzGN+W/gcoNtmNNk4Cqb6dZGC144T+9wXjujRH
PdTY+bcD01RheDnVYRZmoJg8woM3uov2t3YMjv8hiF+woCzLbX5/YrdgqfR+T0Nq
TRqYoEB/Coj9fU/4XvsXkBto5bBqmJzSFmAmf+CoS/tZroXZL/aWDazjPLKB6AyT
yC6nKnIPqWeBJg3Off8y3qZpvcpS3p2cmEXdDKKBFm4UOA+psU3OVNVGkO5UBdL9
lQ6/MZGW8Ve/HHs2nGobeSjymfrcIHXFBldtSpMA7pQvyDwbcO07vHgfkKF8GEfk
PUlKN3jTNXj7qVLZ+K8mZMTm3weRyY6OzVQUwN8H49RJNxsKVIVIFHMfQ6c2jszk
q7cQtU5LJDVXiYo+3F3Kh/8Z9vCXiy5nQgkePe8z+yGt9f9UWK22/IWNXdaGpBew
D1DP/E7JFxDGiOA5MnvhqCU2Si49tz2UZxxGRdkLZXmgtuhQ6bY=
=Ykz5
-----END PGP SIGNATURE-----