Gentoo: qmailAdmin Buffer overflow
Posted by Benjamin D. Thomas   
Gentoo qmailAdmin is vulnerable to a buffer overflow that could lead to the remote execution of arbitrary code.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200611-15
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: High
     Title: qmailAdmin: Buffer overflow
      Date: November 21, 2006
      Bugs: #153896
        ID: 200611-15

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
========

qmailAdmin is vulnerable to a buffer overflow that could lead to the
remote execution of arbitrary code.

Background
==========

qmailAdmin is a free software package that provides a web interface for
managing a qmail system with virtual domains.

Affected packages
=================

    -------------------------------------------------------------------
     Package              /  Vulnerable  /                  Unaffected
    -------------------------------------------------------------------
  1  net-mail/qmailadmin      < 1.2.10                       >= 1.2.10

Description
===========

qmailAdmin fails to properly handle the "PATH_INFO" variable in
qmailadmin.c. The PATH_INFO is a standard CGI environment variable
filled with user supplied data.

Impact
======

A remote attacker could exploit this vulnerability by sending
qmailAdmin a maliciously crafted URL that could lead to the execution
of arbitrary code with the permissions of the user running qmailAdmin.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All qmailAdmin users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=net-mail/qmailadmin-1.2.10"

References
==========

  [ 1 ] CVE-2006-1141
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-1141

Availability
============

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

  http://security.gentoo.org/glsa/glsa-200611-15.xml

Concerns?
=========

Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users machines is of utmost
importance to us. Any security concerns should be addressed to
security@gentoo.org or alternatively, you may file a bug at
http://bugs.gentoo.org.

License
=======

Copyright 2006 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

http://creativecommons.org/licenses/by-sa/2.5