Secunia - Stay Secure
Gartner
Home Corporate Website Jobs Mailing Lists RSS Blog New entry Advertise
Software Inspectors
  Scan Online
  Personal (PSI)
  Network (NSI 2.0)
  - NEW -

Solutions For
  Security Professionals
  Security Vendors

Free Solutions For
  Open Communities
  Journalists & Media

Secunia Advisories
  Search
  Historic Advisories
  Listed By Product
  Listed By Vendor
  Statistics / Graphs
  Secunia Research
  Report Vulnerability
  About Advisories

Virus Information
  Chronological List
  Last 10 Virus Alerts
  About Virus Information

Secunia Customers
  Customer Area


SurgeMail Format String and Buffer Overflow Vulnerabilities

Secunia Advisory: SA29105  
Release Date: 2008-02-26
Last Update: 2008-03-27

Critical:
Moderately critical
Impact: DoS
System access
Where: From remote
Solution Status: Vendor Patch

Software:SurgeMail 3.x

CVE reference:CVE-2008-1054 (Secunia mirror)
CVE-2008-1055 (Secunia mirror)
CVE-2008-1497 (Secunia mirror)
CVE-2008-1498 (Secunia mirror)

Want to know the next time vulnerabilities are fixed in this product?
- Companies can be alerted via email and SMS!


Description:
Some vulnerabilities have been discovered in SurgeMail, which can be exploited by malicious users to compromise a vulnerable system and by malicious people to cause a DoS (Denial of Service) or potentially compromise a vulnerable system.

1) A format string error in the webmail.exe CGI application when handling e.g. strings assigned to the "page" parameter can be exploited via a specially crafted HTTP request containing format string specifiers.

Successful exploitation may allow execution of arbitrary code.

2) A boundary error in "_lib_spawn_user_getpid()" within swatch.exe and surgemail.exe can be exploited to cause a stack-based buffer overflow via a specially crafted HTTP request containing e.g. multiple overly long headers.

3) A boundary error exists within the IMAP service when processing "LIST" commands. This can be exploited to cause a stack-based buffer overflow via an overly long argument to a "LIST" command.

4) A boundary error exists within the IMAP service when processing "LSUB" commands. This can be exploited to cause a stack-based buffer overflow via an overly long argument to a "LSUB" command.

Successful exploitation of vulnerabilities #3 and #4 allow execution of arbitrary code, but requires valid user credentials.

The vulnerabilities are confirmed in version 38k4. Other versions may also be affected.

Solution:
Update to version 39c.
http://www.netwinsite.com/cgi-bin/keycgi.exe?cmd=download&product=surgemail

Provided and/or discovered by:
1, 2) Luigi Auriemma
3) Matteo Memelli a.k.a. ryujin
4) Leon Juranic, INFIGO IS

Changelog:
2008-02-29: Added CVE reference.
2008-03-17: Added vulnerability #3. Updated "Solution" section.
2008-03-24: Added vulnerability #4. Updated "Solution" section.
2008-03-27: Added CVE reference.

Original Advisory:
Luigi Auriemma:
http://aluigi.altervista.org/adv/surgemailz-adv.txt

Matteo Memelli:
http://milw0rm.com/exploits/5259

INFIGO-2008-03-07:
http://www.infigo.hr/en/in_focus/advisories/INFIGO-2008-03-07



Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.

6 Related Secunia Security Advisories

1. SurgeMail Webmail "Host" Header Processing Denial of Service
2. SurgeMail "SEARCH" Command Buffer Overflow
3. SurgeMail Payment Emails "amount" Format String Vulnerability
4. SurgeMail webmail Unspecified Security Bypass
5. SurgeMail Unspecified Cross-Site Scripting Vulnerabilities
6. SurgeMail Three Vulnerabilities


Send Feedback to Secunia

If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.








Secunia PSI
Scan | Patch | Track
Free Download

Secunia Poll

Do you think it's important to read Setup/User Guides for applications for use within your network?


See Results   


Most Popular Advisories

1.
Internet Explorer "DisableCaching OfSSLPages" Weakness
2.
Debian update for rdesktop
3.
Red Hat Directory Server Regular Expression Handler Buffer Overflow
4.
Gentoo update for moinmoin
5.
Debian update for php5
6.
Gentoo update for firebird
7.
Fedora Directory Server Regular Expression Handler Buffer Overflow
8.
Gentoo update for pngcrush
9.
Gentoo update for inspircd
10.
Pngcrush libpng Unknown Chunk Processing Uninitialized Memory Access





Vulnerability Management - Terms & Conditions - Copyright 2002-2008 Secunia - Compliance - Contact Secunia