SA Bugzilla – Bug 3157
SA vs. Sanitizer: defanged image tags?
Last modified: 2004-03-11 01:41:34 UTC
If the Procmail Sanitizer is in use and has web-bug sanitizing enabled, IMG tags become DEFANGED_IMG tags. Do the SA tests for images (size, proportion to text, etc.) take this into account, in case SA is being used after the Sanitizer? In other words, do the tests check for /<IMG/i or /<(DEFANGED_)?IMG/i If they don't consider defanged images as images, they should. Thanks.
> Do the SA tests for images (size, proportion to text, etc.) take this into > account, in case SA is being used after the Sanitizer? Nope. > If they don't consider defanged images as images, they should. I don't think so. We can't possibly support every type of filtering that could happen pre-SA.
Granted. Ok, how about some way for the end-user to make such a configuration change when the rules are looking for specific tags? Perhaps something like this in the config file: IMAGE_TAG_RE /<(DEFANGED_)?IMG\s/i to override the default RE? Extend to other specific HTML tags that are being checked.
I think that's going to make the code and any regular expressions used horribly complicated, and likely very slow. Again, we really do not want to get in the business of supporting what potentially could filter/markup/ etc the mail before it hits SA.
OK. Thanks.