Search: Home Bugtraq Vulnerabilities Mailing Lists Jobs Tools Beta Programs

PHPMailer Remote Shell Command Execution Vulnerability

Solution:
Fixes from multiple vendors are available. Please see the references for details.

The following unofficial patch is available to address this issue. Symantec has not confirmed the integrity of this fix.

Patch:
Index: class.phpmailer.php
===================================================================
--- class.phpmailer.php (revisión: 161)
+++ class.phpmailer.php (copia de trabajo)
@@ -424,9 +424,9 @@
function SendmailSend($header, $body)
{
if ($this->Sender != "") {
- $sendmail = sprintf("%s -oi -f %s -t", $this->Sendmail,
$this->Sender);
+ $sendmail = sprintf("%s -oi -f %s -t",
escapeshellcmd($this->Sendmail), escapeshellarg($this->Sender));
} else {
- $sendmail = sprintf("%s -oi -t", $this->Sendmail);
+ $sendmail = sprintf("%s -oi -t",
escapeshellcmd($this->Sendmail));
}

if (!@$mail = popen($sendmail, "w")) {


Ubuntu Ubuntu Linux 8.04 LTS powerpc

Ubuntu Ubuntu Linux 8.10 powerpc

Ubuntu Ubuntu Linux 8.04 LTS sparc

Ubuntu Ubuntu Linux 8.10 i386

Ubuntu Ubuntu Linux 8.04 LTS amd64

Ubuntu Ubuntu Linux 8.04 LTS lpia

Ubuntu Ubuntu Linux 8.10 lpia

Ubuntu Ubuntu Linux 8.10 sparc

Ubuntu Ubuntu Linux 8.04 LTS i386

Ubuntu Ubuntu Linux 8.10 amd64







 

Privacy Statement
Copyright 2008, SecurityFocus