qmailAdmin: Buffer overflow

Security Team  Contact Address

Updated November 21, 2006

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200611-15 / qmailadmin
Release Date November 21, 2006
Latest Revision November 21, 2006: 01
Impact high
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
net-mail/qmailadmin < 1.2.10 >= 1.2.10 All supported architectures

Related bugreports: #153896

Synopsis

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

2.  Impact Information

Background

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

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.

3.  Resolution Information

Workaround

There is no known workaround at this time.

Resolution

All qmailAdmin users should upgrade to the latest version:

Code Listing 3.1: Resolution

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

4.  References