Skip Ribbon Commands
Skip to main content
Computer Security Incident Response Team of Mauritius (CERT-MU)

VN-2017-107


PHPMailer Input Validation Flaw in 'code_generator.phps' Example Code Lets Remote Users Conduct Cross-Site Scripting Attacks
Severity Rating: Medium
Systems Affected:
  •  PHPMailer versions prior to 5.2.24

 Description

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.
 
Solution
Users are advised to apply updates.
More information about the update is available on:
 
CVE Information
 
Vendor Information
Github
 
References
Security Tracker
 
Github
 
Contact Information
 
Postal address
Mauritian Computer Emergency Response Team (CERT-MU)
National Computer Board
7th Floor, Stratton Court
La Poudriere Street
Port Louis