crashes with "IndexError: list index out of range"

Bug #621135 reported by Kai Krakow
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pypolicyd-spf
Invalid
Undecided
Unassigned
Gentoo Linux
Unknown
High

Bug Description

When receiving and parsing a mail which has an unqualified envelope-from, pypolicyd-spf generates the following backtrace:

Aug 20 15:04:27 aaaaa policyd-spf[18616]: Permerror; identity=helo; client-ip=dd.ddd.dd.ddd; helo=aaaa.aa-aaa.aa; envelope-from=aaaaaa; <email address hidden>
Aug 20 15:04:27 aaaaa policyd-spf[18616]: Traceback (most recent call last):
Aug 20 15:04:27 aaaaa policyd-spf[18616]: File "/usr/bin/policyd-spf", line 420, in <module>
Aug 20 15:04:27 aaaaa policyd-spf[18616]: instance_dict, configData)
Aug 20 15:04:27 aaaaa policyd-spf[18616]: File "/usr/bin/policyd-spf", line 343, in spfcheck
Aug 20 15:04:27 aaaaa policyd-spf[18616]: mfrom_resultpolicy, local = get_resultcodes(configData, 'mfrom')
Aug 20 15:04:27 aaaaa policyd-spf[18616]: File "/usr/bin/policyd-spf", line 122, in get_resultcodes
Aug 20 15:04:27 aaaaa policyd-spf[18616]: if spf.domainmatch(reject_domain_list, sender_domain[1]):
Aug 20 15:04:27 aaaaa policyd-spf[18616]: IndexError: list index out of range

Addresses and IPs have been obfuscated (a for chars, d for digits). Not sure if this problem can be used for DDOS attacks. Feel free to mark as security vulnerability.

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 621135] [NEW] crashes with "IndexError: list index out of range"

What version are you using?

Revision history for this message
Kai Krakow (hurikhan77) wrote :

Using 0.7.1... That's the latest stable version in gentoo.

Revision history for this message
In , Hurikhan77+bgo (hurikhan77+bgo) wrote :

When receiving and parsing a mail which has an unqualified envelope-from, pypolicyd-spf generates the following backtrace:

Aug 20 15:04:27 aaaaa policyd-spf[18616]: Permerror; identity=helo; client-ip=dd.ddd.dd.ddd; helo=aaaa.aa-aaa.aa; envelope-from=aaaaaa; <email address hidden>
Aug 20 15:04:27 aaaaa policyd-spf[18616]: Traceback (most recent call last):
Aug 20 15:04:27 aaaaa policyd-spf[18616]: File "/usr/bin/policyd-spf", line 420, in <module>
Aug 20 15:04:27 aaaaa policyd-spf[18616]: instance_dict, configData)
Aug 20 15:04:27 aaaaa policyd-spf[18616]: File "/usr/bin/policyd-spf", line 343, in spfcheck
Aug 20 15:04:27 aaaaa policyd-spf[18616]: mfrom_resultpolicy, local = get_resultcodes(configData, 'mfrom')
Aug 20 15:04:27 aaaaa policyd-spf[18616]: File "/usr/bin/policyd-spf", line 122, in get_resultcodes
Aug 20 15:04:27 aaaaa policyd-spf[18616]: if spf.domainmatch(reject_domain_list, sender_domain[1]):
Aug 20 15:04:27 aaaaa policyd-spf[18616]: IndexError: list index out of range

Addresses and IPs have been obfuscated (a for chars, d for digits). Not sure if this problem can be used for DDOS attacks. Feel free to mark as security vulnerability.

Reproducible: Always

Revision history for this message
Scott Kitterman (kitterman) wrote :

I suspect this is a bug I fixed in 0.7.2. Please see if you can replicate it with either the current release (0.8) or the latest in the 0.7 series (0.7.3).

I'm not at all familiar with how Gentoo packaging works, so I can't advise you on the best way to do that.

Changed in pypolicyd-spf:
status: New → Incomplete
Changed in gentoo:
status: Unknown → Confirmed
Revision history for this message
Kai Krakow (hurikhan77) wrote :

I cross-posted it to Gentoo's bugzilla so they can take the steps to stabilize 0.7.3 in the package tree.

Changed in gentoo:
importance: Unknown → High
Revision history for this message
Scott Kitterman (kitterman) wrote :

I see 0.7.3 is at least in Gentoo unstable now, so I'm closing this on this end.

Changed in pypolicyd-spf:
status: Incomplete → Invalid
Revision history for this message
In , Pacho-gentoo (pacho-gentoo) wrote :

Please re-test with 0.8.1

Changed in gentoo:
status: Confirmed → Unknown
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.