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.
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.
Ideas, suggestions, and other feedback are most welcome.