Secunia Logo
 
PHPMailer "Sender" Arbitrary Command Execution
Secunia Advisory: SA25626
Release Date: 2007-06-12
Last Update: 2007-06-15
Popularity: 7,851 views

Critical:
Highly critical
Impact: System access
Where: From remote
Solution Status: Unpatched

Software:PHPMailer 1.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2007-3215


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

Changelog:
2007-06-15: Added CVE reference.

Original Advisory:
http://larholm.com/2007/06/11/phpmailer-0day-remote-execution/


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
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.

Most Popular - 3 Hours

1. Active eWebquiz "useremail" and "password" SQL Injection Vulnerabilities // 105 views
2. Microsoft Office Communications Server SIP INVITE Denial of Service // 104 views
3. Minimal Ablog Multiple Vulnerabilities // 94 views
4. VLC Media Player Real Demuxer Integer Overflow Vulnerability // 81 views
5. Active Newsletter "email" and "password" SQL Injection Vulnerabilities // 77 views
6. Ocean12 FAQ Manager Pro "ID" SQL Injection Vulnerability // 74 views
7. Bluo CMS "id" SQL Injection Vulnerability // 69 views
8. Active Photo Gallery "username" and "password" SQL Injection // 69 views
9. Slackware update for ruby // 64 views
10. Zeroboard Multiple Vulnerabilities // 63 views