[UNIX] Wu-IMAP Buffer Overflow Condition (PARTIAL)

From: support@securiteam.com
Date: 05/14/02


From: support@securiteam.com
To: list@securiteam.com
Date: Tue, 14 May 2002 23:16:24 +0200 (CEST)

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

When was the last time you checked your server's security?
How about a monthly report?
http://www.AutomatedScanning.com - Know that you're safe.
- - - - - - - - -

  Wu-IMAP Buffer Overflow Condition (PARTIAL)
------------------------------------------------------------------------

SUMMARY

 <http://www.washington.edu/imap/> Wu-IMAPd is an easy to set-up IMAP
daemon created and distributed by Washington University. Malicious user is
able to construct a malformed request that will overflow an internal
buffer, and run code on the server with uid/gid of the e-mail owner. The
vulnerability mainly affects free e-mail providers/mail servers where the
user has no shell access to the system.

DETAILS

Affected version:
 * WU-IMAP 2000.283 default install
 * WU-IMAP 2000.284 default install
 * WU-IMAP 2000.287 default install
 * WU-IMAP 2001.315 compiled with RFC 1730 support

The bug in imapd.c code leads to internal buffer overflow. It may happen
when the user ask for fetching partial mailbox attributes.

    request will cause server to SIG11 : A0666 PARTIAL 1
BODY[AAA...1052bytes..AAA] 1 1

imapd.c
int main (int argc,char *argv[])
{
  unsigned long i,uid;
  long f;
  char *s,*t,*u,*v,tmp[MAILTMPLEN];

========================================

This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

====================
====================

DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.