PHPMailer Input Validation Flaw in 'code_generator.phps' Example Code Lets Remote Users Conduct Cross-Site Scripting Attacks
Severity Rating: Medium
A vulnerability has been reported in PHPMailer and can be exploited by remote attackers to conduct cross-site scripting attacks. The vulnerability exists because the 'code_generator.phps' example script does not properly filter HTML code from user-supplied input before displaying the input. A remote user can cause arbitrary scripting code to be executed by the target user's browser. The code will originate from the site running the PHPMailer software and will run in the security context of that site. As a result, the code will be able to access the target user's cookies (including authentication cookies), if any, associated with the site, access data recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.
Users are advised to apply updates.
More information about the update is available on:
Mauritian Computer Emergency Response Team (CERT-MU)
National Computer Board
7th Floor, Stratton Court
La Poudriere Street