Likes Likes:  0
Resultaten 1 tot 2 van de 2
Geen
  1. #1
    Pedro Sanches
    Full path disclosure and sql injection on CubeCart 2.0.1
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    Full path disclosure and sql injection on CubeCart 2.0.1



    --------------------------------------------------------
    Full path disclosure and sql injection on CubeCart 2.0.1
    --------------------------------------------------------

    [1]Introduction
    [2]The Problem
    [3]The Solution
    [4]Timeline
    [5]Feddback

    ################################################## ############

    [1]Introduction

    "CubeCart is an eCommerce script written with PHP & MySQL. With CubeCart you can setup a powerful online store as long as you

    have hosting supporting PHP and one MySQL database."

    This info was taken from http://www.cubecart.com

    CubeCart, from Brooky (http://www.brooky.com), is a software formerly known as eStore.


    [2]The Problem

    A remote user can cause an error in index.php using the parameter 'cat_id' which is not properly validated, displaying the

    software's full installation path. It can also be used to inject sql commands. Examples follow:

    (a) http://example.com/store/index.php?cat_id='

    causes an error like this:

    "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in

    /home/example/public_html/store/link_navi.php on line 35

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in

    /home/example/public_html/store/index.php on line 170

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in

    /home/example/public_html/store/index.php on line 172"


    (b) http://example.com/store/index.php?cat_id=1 or 1=1--

    displays all categories in the database


    [3]The Solution

    None at this time. Vendor contacted and fix will be avaliable soon.


    [4]Timeline

    (2/10/2004) Vulnerability discovered
    (2/10/2004) Vendor notified
    (3/10/2004) Vendor response


    [5]Feedback

    Comments and stuff to cybercide@megamail.pt

  2. #2
    Full path disclosure and sql injection on CubeCart 2.0.1
    Gast
    n/a Berichten
    Berichten zijn liked



    Thread Starter

    Re: Full path disclosure and sql injection on CubeCart 2.0.1

    In-Reply-To: <20041006144016.28823.qmail@www.securityfocus.com>

    Solution

    INSERT

    if (!is_numeric($cat_id))
    unset($cat_id);

    BEFORE

    include("header.inc.php");

    IN

    index.php


Webhostingtalk.nl

Contact

  • Rokin 113-115
  • 1012 KP, Amsterdam
  • Nederland
  • Contact
© Copyright 2001-2026 Webhostingtalk.nl.
Web Statistics