You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Robert LeBlanc <rj...@renaissoft.com> on 2006/09/07 07:01:08 UTC
[PATCH] Hashdb poisoning vulnerability in FuzzyOcr 2.3b
FuzzyOcr 2.3b contains an exploitable vulnerability regarding the way it
handles the addition of hashes to the hash database.
Basically, FuzzyOcr examines all of the images attached to the mail and
keeps a running count of all the target words it finds, and if that sum
exceeds the minimum threshold (focr_counts_required, default: 2), /all/
of the images attached to the mail get added to the hashdb on the
(flawed) presumption that since the mail is likely spam, /all/ of the
images must be spam indicators as well.
The problem, of course, is that this makes it very easy for spammers to
poison the hashdb by simply including some innocuous images (e.g. logos
of popular businesses like eBay, Amazon, PayPal, banks, etc.) along with
their spam images. Once those logos get added to the hashdb, FuzzyOcr
will begin producing false positives on legitimate mail that bears those
logos.
I've implemented one possible solution in the attached patch, which
prevents images from getting added to the hashdb unless they contain at
least one matching word from the wordlist. That should prevent images
that don't contain any text from being databased in the first place, so
things like logos and other non-text graphics should be ignored.
--
Robert LeBlanc <rj...@renaissoft.com>
Renaissoft, Inc.
Maia Mailguard <http://www.maiamailguard.com/>