SA Bugzilla – Bug 3899
"Insecure dependency" error from SA3
Last modified: 2005-02-15 07:31:07 UTC
On a Red Hat Linux 9 PC, with SA3 installed (upgraded over 2.64, no patches or custom rules), I'm seeing the following error: 1 message(s) examined. Insecure dependency in connect while running with -T switch at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/IO/Socket.pm line 114. This particular instance was from a spamassassin --report run, but it happens on plain spamassassin invocations as well. This is not the razor2 problem, I'm running the latest 2.61. How do I track down what's tainted?
Subject: Re: New: "Insecure dependency" error from SA3 On Wed, Oct 13, 2004 at 02:29:22PM -0700, bugzilla-daemon@bugzilla.spamassassin.org wrote: > 1 message(s) examined. > Insecure dependency in connect while running with -T switch > at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/IO/Socket.pm line 114. > > This particular instance was from a spamassassin --report run, but it happens > on plain spamassassin invocations as well. This is not the razor2 problem, > I'm running the latest 2.61. IIRC, that message is caused by the Razor code as well, which calls IO::Socket, which isn't completely taint friendly.
Is there a simple way to temporarily "fool" SpamAssassin into thinking razor2 is not present? I can then do that and see if it runs clean... Thanks.
Subject: Re: "Insecure dependency" error from SA3 On Wed, Oct 13, 2004 at 02:42:28PM -0700, bugzilla-daemon@bugzilla.spamassassin.org wrote: > Is there a simple way to temporarily "fool" SpamAssassin into thinking razor2 > is not present? I can then do that and see if it runs clean... I don't know about fooling it, but you can just disable it. "use_razor2 0"
Thanks, tried that, razor2 disabled and still get the error. Any other suggestions?
could you attach a debug log of that command or commands? just re-run them with "-D". that will include plenty of extra info we need ;)
Created attachment 2453 [details] Debug log OK, here's the debug log.
Any ideas on what's my next step on this? Does the debug log show anything anomolous? Thanks...
I now find that SA does not report the insecure dependency error when SpamCop reporting is not run. That is, when a message is older than 3 days, I get the "message older than 3 days not reporting to spamcop" error and no insecure dependency error. That suggests to me the issue may be with the spamcop reporting. I tried to find a way to turn that off but apparently there's no "use_spamcop" configuration item, which seems inconsistent since it exists for the other three reporting services. The API does have an option though ("dont_report_to_spamcop"). Does this trigger any thoughts? Or can you suggest how I could disable spamcop reporting to see if that works around the issue? FYI, I upgraded to 3.01 with no change of behavior in this regard. Thanks.
I upgraded the system in question to Fedora Core 2 and the problem disappeared. Weird! Perhaps there was something funky in a Perl library? Anyway, this is solved for me.
looks like a non-taint friendly library outside of SA.
Workaround: Add 'score RCVD_IN_BL_SPAMCOP_NET 0' to your scoring prefs. This will disable spamcop reporting and eliminate the 'Insecure dependency in connect while running with -T switch at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/IO/Socket.pm line 114.' I can reproduce this with RHEL3 and SA 3.0.2