Secunia Logo
Netsikker nu! 2008
 
PHPMailer "Sender" Arbitrary Command Execution
Secunia Advisory: SA25626
Release Date: 2007-06-12
Last Update: 2007-06-15
Popularity: 7,350 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. Trend Micro ServerProtect Multiple Buffer Overflow Vulnerabilities // 44 views
2. Sun Java System Web Proxy Server FTP Subsystem Buffer Overflow // 31 views
3. FUJITSU Interstage Products Apache Tomcat Security Bypass // 30 views
4. CA ARCserve Backup Multiple Vulnerabilities // 28 views
5. Apple Mac OS X Security Update Fixes Multiple Vulnerabilities // 26 views
6. VirtueMart Joomla! eCommerce Edition Multiple Vulnerabilities // 25 views
7. DFF PHP Framework API "DFF_config[dir_include]" File Inclusion Vulnerabilities // 24 views
8. Red Hat update for cups // 24 views
9. Built2go Real Estate Listings "event_id" SQL Injection // 24 views
10. Subdreamer Light Global Variables SQL Injection Vulnerability // 23 views