[UNIX] SQL Injection Vulnerability Found in PHPMyShop

From: support@securiteam.com
Date: 03/05/03

  • Next message: support@securiteam.com: "[NT] Buffer Overflow Vulnerability in Dr. Web"
    From: support@securiteam.com
    To: list@securiteam.com
    Date: 5 Mar 2003 20:52:27 +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

    In the US?

    Contact Beyond Security at our new California office
    housewarming rates on automated network vulnerability
    scanning. We also welcome ISPs and other resellers!

    Please contact us at: 323-882-8286 or ussales@beyondsecurity.com
    - - - - - - - - -

      SQL Injection Vulnerability Found in PHPMyShop


    phpMyShop is a shopping system based on mySQL and the PHP Scripting
    A vulnerability found in this program allows a remote user to be able to
    log on to the system without authorization.


    Vulnerable versions:
     * PHPMyShop Version 1.00

    Immune versions:
     * PHPMyShop Version 1.40

    The problem lies within the file:

     compte.php :

            if (isset($achat))


            echo"<td bgcolor=\"$barre1\"><strong>Identification</strong></td>

            if (isset($valider)) {
                    $sql = "SELECT id_cli,login_cli,pass_cli FROM
                             $table_client where login_cli='$identifiant' and
                    $sql = mysql_db_query($base,$sql); $test = mysql_num_rows($sql);
                    if ($test=="0") {
                            ?> <script language="javascript">
                            alert("Identifiant ou mot de passe non valide!");
                            echo"<center><strong>Identifiant ou mot de passe non
                    } else { $id_membre =
                            mysql_result($sql,0,"id_cli"); session_register("id_membre");
                            <script language="javascript"> document.location.href="valide.php"
                            </script> <? } }

            [...] ---------------------------------------------------------------


    Download latest version from
    PHPMyTools, or download a patch from <http://www.phpsecure.org>


    Information was provided by <mailto:frog-man@frog-man.org> Frog Man


    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


    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: support@securiteam.com: "[NT] Buffer Overflow Vulnerability in Dr. Web"