I know this probably isn\'t an easy question but I\'m developing several webforms and want a PHP library that I can use to send the mail and have it automatically sanitize the d
As of now there is a highly recommended patch for vulnerabilities for Versions before 5.2.18 Download here https://github.com/PHPMailer/PHPMailer
The quote from Hacker News (http://thehackernews.com/2016/12/phpmailer-security.html) gives a brief summary:
Discovered by Polish security researcher Dawid Golunski of Legal Hackers, the critical vulnerability (CVE-2016-10033) allows an attacker to remotely execute arbitrary code in the context of the web server and compromise the target web application.
"To exploit the vulnerability an attacker could target common website components such as contact/feedback forms, registration forms, password email resets and others that send out emails with the help of a vulnerable version of the PHPMailer class," Golunski writes in the advisory published today.
The technical details will be posted here: https://legalhackers.com/papers/Pwning-PHP-mail-func-For-Fun-And-RCE-New-Exploit-Techniques-Vectors.html