logo       

[UNIX] mutt mutt_decode_xbit() Buffer Overflow: msg#00037

security.securiteam

Subject: [UNIX] mutt mutt_decode_xbit() Buffer Overflow

The following security advisory is sent to the securiteam mailing list, and can
be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

The SecuriTeam alerts list - Free, Accurate, Independent.

Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html

- - - - - - - - -



mutt mutt_decode_xbit() Buffer Overflow
------------------------------------------------------------------------


SUMMARY

" <http://www.mutt.org/> Mutt is a small but very powerful text-based mail
client for UNIX operating systems."

By sending a maliciously crafted email to the mutt program an attacker can
cause the program to execute arbitrary code.

DETAILS

The problem is in the mutt attachment/encoding/decoding functions,
specifically handler.c:mutt_decode_xbit() and the buffer bufi[BUFI_SIZE].

The variable 'l' is used as a counter to reference a position in the
buffer and under certain circumstances its value can be manipulated and
becomes much larger than the size of this buffer, thus overwriting other
memory with many possible consequences.

This counter should never exceed the size and I believe the logic in the
convert_to_state() function is supposed to reset it to 0, however there is
a flaw - There are other functions affected in the same way due to
copy/paste, such as mutt_decode_uuencoded().

Proof of Concept :
Mutt buffer overflow POC.
Discovered by Frank Denis <j@xxxxxxxxxxxxxxx>


-- snip snip --
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise