Hastymail IMAP and SMTP server command execution

hastymail-imap-command-execution (29407) The risk level is classified as MediumMedium Risk

Description:

Hastymail could allow a remote attacker to execute arbitrary commands on the system. A remote authenticated attacker could send a specially-crafted request using the mailbox or subject parameter containing an end of command sequence to the IMAP or SMTP server, which could allow the attacker to execute arbitrary commands on the server.

Platforms Affected:

  • Hastymail, Hastymail 1.0.2
  • Hastymail, Hastymail 1.5

Remedy:

For Hastymail 1.0.2:
Refer to Security Update 10-08-2006, available from the Hastymail Web page. See References.

For Hastymail 1.5:
Refer to Security Update 10-08-2006, available from the Hastymail Web page. See References.

Consequences:

Gain Access

References:

  • BugTraq Mailing List, Sat Dec 02 2006 - 15:21:59 CST , [ISecAuditors Security Advisories] IMAP/SMTP Injection in Hastymail at http://archives.neohapsis.com/archives/bugtraq/2006-12/0038.html.
  • Hastymail Web page, Hastymail - Security at http://hastymail.sourceforge.net/security.php.
  • Hastymail Web site, Hastymail - Main page at http://hastymail.sourceforge.net.
  • BID-20424: Hastymail IMAP SMTP Command Injection Vulnerability
  • CVE-2006-5262: CRLF injection vulnerability in lib/session.php in Hastymail 1.5 and earlier before 20061008 allows remote authenticated users to send arbitrary IMAP commands via a CRLF sequence in a mailbox name. NOTE: the attack crosses privilege boundaries if the IMAP server configuration prevents a user from establishing a direct IMAP session.
  • CVE-2006-5313: Hastymail 1.5 and earlier before 20061008 allows remote authenticated users to send arbitrary SMTP commands by placing them after a CRLF.CRLF sequence in the smtp_message parameter. NOTE: this crosses privilege boundaries if the SMTP server configuration prevents a user from establishing a direct SMTP session. NOTE: this is a different type of issue than CVE-2006-5262.
  • SA22308: Hastymail IMAP / SMTP Command Injection Vulnerability
  • VUPEN/ADV-2006-3956: Hastymail IMAP and SMTP Variable Handling Command Injection Vulnerability

Reported:

Oct 09, 2006

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.

For corrections or additions please email xforce@iss.net

Return to the main page