Hash: SHA1

             AUSCERT External Security Bulletin Redistribution

                       ESB-2007.0184 -- [UNIX/Linux]
    Horde Project Cleanup Script Arbitrary File Deletion Vulnerability
                               21 March 2007


        AusCERT Security Bulletin Summary

Product:              Horde Framework 3.1.3 and prior
                      Horde IMP 3.2.8 and prior
Publisher:            iDEFENSE
Operating System:     UNIX variants (UNIX, Linux, OSX)
Impact:               Delete Arbitrary Files
Access:               Existing Account

Original Bulletin:    http://labs.idefense.com/intelligence/vulnerabilities/

- --------------------------BEGIN INCLUDED TEXT--------------------

Horde Project Cleanup Script Arbitrary File Deletion Vulnerability

iDefense Security Advisory 03.15.07
Mar 15, 2007


The Horde Project provides a PHP-based framework, as well as applications
for web-based group collaboration. IMP is their web-mail application. More
information is available from the Horde Project web site at the following



Local exploitation of an input processing vulnerability within Horde
Project's Horde and IMP allows attackers to delete arbitrary files.

This vulnerability specifically exists due to the improper handling of the
output from an execution of find(1). The output from find(1) is passed
directly to a "for X in Y; do" as the Y value. Since the Y value is
delimited by spaces, the for loop will process files containing spaces in
their path as separate files. An attacker can create a file path
containing spaces to manipulate the output from find(1).

For example, creating the file "/tmp/x /etc/passwd /tmp/mswordx", the
following files will be deleted by the cron script; "/tmp/x",
"/etc/passwd", and "/tmp/mswordx".


Exploitation allows attackers to delete arbitrary files with the privileges
of the user configured to run the cron script. Since a specially created
path must be created on the local file system, local access is required.

In some cases this script may be installed to run as root. If installed
with lesser privileges, such as that of the web server, this vulnerability
is not quite as severe.

By deleting arbitrary files an attacker could possibly remove access
controls, deny access to the system, or reset configurations. In some
cases, it may be possible for an attacker to gain elevated privileges from
this vulnerability.


iDefense has confirmed the existence of this vulnerability in the cleanup
cron scripts included in the following software packages:

Horde Framework; versions 3.0, 3.0.4, 3.1.3

Horde IMP; versions 2.0.8, 2.0.9, 2.2.8, 2.3.6, 3.0, 3.1, 3.2.1, 3.2.6,

The cleanup script was originally contained within the IMP package. The
script was moved into the Horde Framework with the release of Horde
Framework (H3) 3.0.


Disabling the vulnerable cron script will effectively prevent exploitation
of this vulnerability.


The Horde Project has corrected the vulnerable cron script within version
3.1.4 of the Horde Application Framework.


A Mitre Corp. Common Vulnerabilities and Exposures (CVE) number has not
been assigned yet.


03/07/2007  Initial vendor notification
03/07/2007  Initial vendor response
03/15/2007  Coordinated public disclosure


The discoverer of this vulnerability wishes to remain anonymous.

Get paid for vulnerability research

Free tools, research and upcoming events


Copyright © 2007 iDefense, Inc.

Permission is granted for the redistribution of this alert electronically.
It may not be edited in any way without the express written consent of
iDefense. If you wish to reprint the whole or any part of this alert in
any other medium other than electronically, please e-mail
customerservice@idefense.com for permission.

Disclaimer: The information in the advisory is believed to be accurate at
the time of publishing based on currently available information. Use of
the information constitutes acceptance for use in an AS IS condition.
There are no warranties with regard to this information. Neither the
author nor the publisher accepts any liability for any direct, indirect,
or consequential loss or damage arising from use of, or reliance on, this

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:


If you believe that your computer system has been compromised or attacked in 
any way, we encourage you to let us know by completing the secure National IT 
Incident Reporting Form at:


Australian Computer Emergency Response Team
The University of Queensland
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.

Comment: http://www.auscert.org.au/render.html?it=1967