You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/03/16 01:37:54 UTC
[Bug 3180] New: rewrite_no_report_safe() can lose non-SA headers
http://bugzilla.spamassassin.org/show_bug.cgi?id=3180
Summary: rewrite_no_report_safe() can lose non-SA headers
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P3
Component: Libraries
AssignedTo: spamassassin-dev@incubator.apache.org
ReportedBy: richard+spamassassin@musicbox.net
A problem with the handling of whitespace in rewrite_no_report_safe()
(PerMsgStatus.pm) causes headers which do NOT begin "X-Spam-" to be lost if they
immediately follow a blank X-Spam-* header. This can happen, for example, when
an upstream version of SA gives a negative score, and the last header to be
added is X-Spam-Level. I suppose it could also potentially be exploited to hide
tracking information, given knowledge of the header ordering.
By contrast, the whitespace handling in remove_spamassassin_markup() (ie.
"spamassassin -d") seems to be correct.
For example:
---------- message before passing through SA -----------
Message-ID: <04...@example.com>
X-Spam-Checker-Version: SpamAssassin
X-Spam-Status: No, hits=-4.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham
X-Spam-Level:
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
test test test
---------- message after passing through SA -----------
Message-ID: <04...@example.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII
test test test
-------------------------------------------------------
Note that MIME-Version has disappeared!
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.