Ravens PHP Scripts

PHPMailer *Sender* Arbitrary Command Execution
Date: Tuesday, June 12, 2007 @ 17:08:35 CDT
Topic: Security


SECUNIA ADVISORY ID: SA25626

VERIFY ADVISORY: http://secunia.com/advisories/25626/

CRITICAL: Highly critical

IMPACT: System access

WHERE: >From remote

SOFTWARE: PHPMailer 1.x - http://secunia.com/product/5177/

DESCRIPTION: Thor Larholm has discovered a vulnerability in PHPMailer, which can be exploited by malicious people to compromise a vulnerable system.



Input passed to the Sender property in the PHPMailer class is not properly sanitised before being used as a command line argument. This can be exploited to inject arbitrary shell commands. Successful exploitation requires that the PHP script using PHPMailer is configured to send e-mails with the Sendmail method, and that the script does not sanitise data before storing it in the Sender property. The vulnerability is confirmed in version 1.73. Other versions may also be affected.

SOLUTION: Edit the source code to ensure that input is properly sanitised.

PROVIDED AND/OR DISCOVERED BY: Thor Larholm

ORIGINAL ADVISORY: http://larholm.com/2007/06/11/phpmailer-0day-remote-execution/






This article comes from Ravens PHP Scripts
https://www.ravenphpscripts.com

The URL for this story is:
https://www.ravenphpscripts.com/modules.php?name=News&file=article&sid=2951