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 2007/04/10 09:01:44 UTC
[Bug 5410] New: config options that cause DNS lookups should be privileged (is_priv = 1)
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5410
Summary: config options that cause DNS lookups should be
privileged (is_priv = 1)
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P5
Component: Plugins
AssignedTo: dev@spamassassin.apache.org
ReportedBy: spamassassin@dostech.ca
Lots of config options in the plugins (and possible elsewhere) can be used by
any user in their user_prefs to cause SA to do network checks against hosts
defined by the user. These settings should require allow_user_rules to be
enabled and thus should have is_priv = 1.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5410] config options that cause DNS lookups should be privileged (is_priv = 1)
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5410
------- Additional Comments From spamassassin@dostech.ca 2007-04-10 11:01 -------
(In reply to comment #1)
> can you give examples?
uridnsbl, urirhsbl, urirhssub from the URIDNSBL plugin for starters.
> does this have to be done for 3.2.0? ;)
Ideally, but certainly not a show stopper (we need to get 3.2 released soon!).
I hope to get to this today though.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5410] config options that cause DNS lookups should be privileged (is_priv = 1)
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5410
spamassassin@dostech.ca changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From spamassassin@dostech.ca 2007-04-11 18:30 -------
[dos@FC5-VPC trunk]$ svn ci --file comment.txt
Sending lib/Mail/SpamAssassin/Conf.pm
Sending lib/Mail/SpamAssassin/Plugin/ASN.pm
Sending lib/Mail/SpamAssassin/Plugin/DCC.pm
Sending lib/Mail/SpamAssassin/Plugin/DKIM.pm
Sending lib/Mail/SpamAssassin/Plugin/DomainKeys.pm
Sending lib/Mail/SpamAssassin/Plugin/MIMEHeader.pm
Sending lib/Mail/SpamAssassin/Plugin/Pyzor.pm
Sending lib/Mail/SpamAssassin/Plugin/Razor2.pm
Sending lib/Mail/SpamAssassin/Plugin/ReplaceTags.pm
Sending lib/Mail/SpamAssassin/Plugin/SPF.pm
Sending lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm
Sending lib/Mail/SpamAssassin/Plugin/URIDetail.pm
Sending t/config.dist
Transmitting file data .............
Committed revision 527740.
[dos@FC5-VPC trunk]$ vim t/config.dist
[dos@FC5-VPC trunk]$ svn ci -m "stray bit"
Sending t/config.dist
Transmitting file data .
Committed revision 527741.
[dos@FC5-VPC trunk]$
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5410] config options that cause DNS lookups should be privileged (is_priv = 1)
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5410
------- Additional Comments From jm@jmason.org 2007-04-12 02:37 -------
I should have shouted ;)
IMO, the "*_timeout" settings don't need to be is_priv or is_admin; they are
useful to leave under user control, and I don't see security issues. Ditto for
uridnsbl_max_domains. Am I missing something?
(I don't consider this to be something that we have to delay 3.2.0 for, however...)
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5410] config options that cause DNS lookups should be privileged (is_priv = 1)
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5410
------- Additional Comments From jm@jmason.org 2007-04-10 08:17 -------
can you give examples?
does this have to be done for 3.2.0? ;)
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5410] config options that cause DNS lookups should be privileged (is_priv = 1)
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5410
spamassassin@dostech.ca changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|Undefined |3.2.0
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5410] config options that cause DNS lookups should be privileged (is_priv = 1)
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5410
------- Additional Comments From spamassassin@dostech.ca 2007-04-10 14:20 -------
Here are the changes I propose to the config options found in the plugins (all
currently have no restrictions), shout now if you object:
Make Admin Settings (is_admin):
-------------------------------
ASN.pm: setting => 'asn_lookup',
DCC.pm: setting => 'dcc_timeout',
DKIM.pm: setting => 'dkim_timeout',
DomainKeys.pm: setting => 'domainkeys_timeout',
Pyzor.pm: setting => 'pyzor_timeout',
Razor2.pm: setting => 'razor_timeout',
Razor2.pm: setting => 'razor_config',
SPF.pm: setting => 'spf_timeout',
URIDNSBL.pm: setting => 'uridnsbl_timeout',
URIDNSBL.pm: setting => 'uridnsbl_max_domains',
Make Allow User Rules (is_priv):
--------------------------------
MIMEHeader.pm: setting => 'mimeheader',
ReplaceTags.pm: setting => 'replace_tag',
ReplaceTags.pm: setting => 'replace_pre',
ReplaceTags.pm: setting => 'replace_inter',
ReplaceTags.pm: setting => 'replace_post',
ReplaceTags.pm: setting => 'replace_rules',
ReplaceTags.pm: setting => 'replace_start',
ReplaceTags.pm: setting => 'replace_end',
URIDetail.pm: setting => 'uri_detail',
URIDNSBL.pm: setting => 'uridnsbl',
URIDNSBL.pm: setting => 'urirhsbl',
URIDNSBL.pm: setting => 'urirhssub',
Additionally, rbl_timeout should be an admin setting too.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5410] config options that cause DNS lookups should be privileged (is_priv = 1)
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5410
------- Additional Comments From spamassassin@dostech.ca 2007-04-12 10:16 -------
The timeouts could be used to DoS the machine by setting the timeouts to, say,
86400 and sending enough messages to tie up all the children. I believe they'll
all time out after 600 seconds no matter what, but that's still a long time.
uridnsbl_max_domains... it affects resource usage... potentially the resources
of third parties that the admin (not the user) would be responsible to. A
message with 50,000 domains in it (and a uridnsbl_max_domains setting to match)
sent a couple dozen times over the course of a day could quickly get you cut off
from public mirrors.
Although I still think they should all be is_admin, I could see the settings
being changed to is_priv.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5410] config options that cause DNS lookups should be privileged (is_priv = 1)
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5410
------- Additional Comments From maddoc@maddoc.net 2007-04-10 14:27 -------
(In reply to comment #3)
> Here are the changes I propose to the config options found in the plugins (all
> currently have no restrictions), shout now if you object:
>
> Make Admin Settings (is_admin):
> -------------------------------
>
> ASN.pm: setting => 'asn_lookup',
>
> DCC.pm: setting => 'dcc_timeout',
>
> DKIM.pm: setting => 'dkim_timeout',
>
> DomainKeys.pm: setting => 'domainkeys_timeout',
>
> Pyzor.pm: setting => 'pyzor_timeout',
>
> Razor2.pm: setting => 'razor_timeout',
> Razor2.pm: setting => 'razor_config',
>
> SPF.pm: setting => 'spf_timeout',
>
> URIDNSBL.pm: setting => 'uridnsbl_timeout',
> URIDNSBL.pm: setting => 'uridnsbl_max_domains',
>
>
> Make Allow User Rules (is_priv):
> --------------------------------
>
> MIMEHeader.pm: setting => 'mimeheader',
>
> ReplaceTags.pm: setting => 'replace_tag',
> ReplaceTags.pm: setting => 'replace_pre',
> ReplaceTags.pm: setting => 'replace_inter',
> ReplaceTags.pm: setting => 'replace_post',
> ReplaceTags.pm: setting => 'replace_rules',
> ReplaceTags.pm: setting => 'replace_start',
> ReplaceTags.pm: setting => 'replace_end',
>
> URIDetail.pm: setting => 'uri_detail',
>
> URIDNSBL.pm: setting => 'uridnsbl',
> URIDNSBL.pm: setting => 'urirhsbl',
> URIDNSBL.pm: setting => 'urirhssub',
>
>
> Additionally, rbl_timeout should be an admin setting too.
+1 (if you want a vote) And it all looks reasonable to me.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.