lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date: Mon, 29 Jun 2015 11:24:04 +0200
From: Hanno Böck <hanno@...eck.de>
To: oss-security@...ts.openwall.com, fulldisclosure@...lists.org,
	cve-assign@...re.org
Subject: [FD] Courier mail server: Write heap overflow in mailbot tool and
 out of bounds heap read in imap folder parser

https://blog.fuzzing-project.org/17-Courier-mail-server-Write-heap-overflow-in-mailbot-tool-and-out-of-bounds-heap-read-in-imap-folder-parser.html

Two memory access issues were found in the Courier mail server. These
issues were discovered by compiling the software with Address Sanitizer
(-fsanitize=address) and running the test suite.

In the file mailboxlist.c, part of the IMAP folder parser, there is a
memcmp call checking whether the fist six bytes of a string match
"SHARED". However the string can be less than six bytes, which will
cause an out of bounds read access. This issue is unlikely to cause
much trouble.

In the mailbot tool (mailbot.c) there is a memory allocation for a
zero-terminated list of pointers. The allocation only reserves one byte
for the zero termination, however it must be the size of the pointer (8
bytes on 64 bit systems). Therefore it causes a write heap overflow of
seven zero bytes. The code parses command line data, therefore it is
unlikely that any attacker controlled input is affected.

Both issues have been reported to Courier's developer Sam Varshavchik
on 27th June 2015 and were fixed with the release of courier 0.75 on
29th June 2015.

Commit / Patch (bundles some unrelated changes, the relevant parts are
in mailbot.c and mailboxlist.c)
https://github.com/svarshavchik/courier-libs/commit/174541a2e670c0ee70fd2fb3116209f96ecc173e

Courier 0.75 release announcement
http://sourceforge.net/p/courier/mailman/message/34249147/

-- 
Hanno Böck
http://hboeck.de/

mail/jabber: hanno@...eck.de
GPG: BBB51E42

Content of type "application/pgp-signature" skipped


_______________________________________________
Sent through the Full Disclosure mailing list
https://nmap.org/mailman/listinfo/fulldisclosure
Web Archives & RSS: http://seclists.org/fulldisclosure/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ