procmail heap overflow

2014.09.05
Credit: Tavis
Risk: High
Local: No
Remote: Yes
CWE: N/A


CVSS Base Score: 7.5/10
Impact Subscore: 6.4/10
Exploitability Subscore: 10/10
Exploit range: Remote
Attack complexity: Low
Authentication: No required
Confidentiality impact: Partial
Integrity impact: Partial
Availability impact: Partial

I noticed a heap overflow in procmail when parsing addresses with unbalanced quotes. I encountered this by accident when trying to organize a large usenet archive, this post to rec.arts.poems causes formail to crash. https://groups.google.com/forum/message/raw?msg=alt.arts.poetry.comments/DCuLO3qzovI/CZk15MlfqNkJ I've attached an mbox for reference. $ formail -s < mbox > /dev/null *** Error in `formail': free(): invalid next size (fast): 0x00007f103784a080 *** Segmentation fault (core dumped) $ rpm -q procmail procmail-3.22-33.fc20.x86_64 It looks like the fix is --- formisc.c 2013-08-04 00:13:33.000000000 -0700 +++ formisc.c 2014-09-03 11:42:25.986002396 -0700 @@ -84,12 +84,11 @@ case '"':*target++=delim='"';start++; } ;{ int i; - do + while(*start) if((i= *target++= *start++)==delim) /* corresponding delimiter? */ break; else if(i=='\\'&&*start) /* skip quoted character */ *target++= *start++; - while(*start); /* anything? */ } hitspc=2; } Tavis.

References:

https://groups.google.com/forum/message/raw?msg=alt.arts.poetry.comments/DCuLO3qzovI/CZk15MlfqNkJ
http://seclists.org/oss-sec/2014/q3/496


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top