Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2006
    Location
    U.K.
    Posts
    103
    Plugin Contributions
    0

    bug PHPMailer Vulnerability ?

    Does this affect Zen Cart in any way?

    http://sourceforge.net/tracker/index...31&atid=385707

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: PHPMailer Vulnerability ?

    It could only affect you IF ALL of the following are true:

    1. You're using Zen Cart v1.3.6, or v1.3.7

    2. You are using the "sendmail" or "Qmail" method for email-transport. (Default is PHP instead).

    3. You have allowed folks to edit your PHP files on your server and specifically alter the sendmail executable/binary path.

    4. You have a mis-formed "Email-From" address in your Admin->Configuration->Email Options or have allowed folks into your admin area so that they can set a rogue email address for the "email from" setting.


    Even so, v1.3.8 will be altered to protect against the vulnerability in this integrated 3rd-party class.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jun 2006
    Location
    U.K.
    Posts
    103
    Plugin Contributions
    0

    Default Re: PHPMailer Vulnerability ?

    According to the advisory, there is a fix you can apply:

    includes/classes/class.phpmailer.php

    replace:

    Code:
    function SendmailSend($header, $body) {
            if ($this->Sender != "")
            $sendmail = sprintf("%s -oi -f %s -t", $this->Sendmail, $this->Sender);
            else
            $sendmail = sprintf("%s -oi -t", $this->Sendmail);
    with:

    Code:
    function SendmailSend($header, $body) {
             if ($this->Sender != "") {
             $sendmail = sprintf("%s -oi -f %s -t", escapeshellcmd($this->Sendmail), escapeshellarg($this->Sender));
             } else {
             $sendmail = sprintf("%s -oi -t", escapeshellcmd($this->Sendmail));
             }
    Backup first, of course.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: PHPMailer Vulnerability ?

    Quote Originally Posted by Peekay View Post
    According to the advisory, there is a fix you can apply
    yes, thanks for pointing that out.
    That fix will plug the vulnerability, and is incorporated into v1.3.8, as mentioned:
    Quote Originally Posted by DrByte View Post
    Even so, v1.3.8 will be altered to protect against the vulnerability in this integrated 3rd-party class.
    However, it's important to note that the vulnerability is nearly impossible to trigger if using a default Zen Cart install.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jun 2006
    Location
    U.K.
    Posts
    103
    Plugin Contributions
    0

    Default Re: PHPMailer Vulnerability ?

    Thx DrByte.

 

 

Similar Threads

  1. 2008 PHPMailer v1.7.2 Vunerability Patch
    By shocker in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 16 Jan 2008, 01:26 PM
  2. phpmailer - wrapper
    By kobra in forum General Questions
    Replies: 7
    Last Post: 24 Apr 2007, 10:55 AM
  3. phpmailer linefeed problem
    By patski in forum General Questions
    Replies: 7
    Last Post: 23 May 2006, 06:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg