ghsa-58mj-pw57-4vm2
Vulnerability from github
PHPMailer versions prior to 5.2.24 (released July 26th 2017) have an XSS vulnerability in one of the code examples, CVE-2017-11503. The code_generator.phps example did not filter user input prior to output. This file is distributed with a .phps
extension, so it it not normally executable unless it is explicitly renamed, and the file is not included when PHPMailer is loaded through composer, so it is safe by default. There was also an undisclosed potential XSS vulnerability in the default exception handler (unused by default). Patches for both issues kindly provided by Patrick Monnerat of the Fedora Project.
Impact
PHPMailer 5.2.23 has XSS in the "From Email Address" and "To Email Address" fields of code_generator.php.
Patches
Fixed in 5.2.24
Workarounds
None.
References
https://nvd.nist.gov/vuln/detail/CVE-2017-11503
For more information
If you have any questions or comments about this advisory: * Open a private issue in the PHPMailer project
{ "affected": [ { "package": { "ecosystem": "Packagist", "name": "phpmailer/phpmailer" }, "ranges": [ { "events": [ { "introduced": "5.0.0" }, { "fixed": "5.2.24" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2017-11503" ], "database_specific": { "cwe_ids": [ "CWE-79" ], "github_reviewed": true, "github_reviewed_at": "2020-03-05T22:06:39Z", "nvd_published_at": null, "severity": "MODERATE" }, "details": "PHPMailer versions prior to 5.2.24 (released July 26th 2017) have an XSS vulnerability in one of the code examples, CVE-2017-11503. The code_generator.phps example did not filter user input prior to output. This file is distributed with a `.phps` extension, so it it not normally executable unless it is explicitly renamed, and the file is not included when PHPMailer is loaded through composer, so it is safe by default. There was also an undisclosed potential XSS vulnerability in the default exception handler (unused by default). Patches for both issues kindly provided by Patrick Monnerat of the Fedora Project.\n\n### Impact\nPHPMailer 5.2.23 has XSS in the \u0026quot;From Email Address\u0026quot; and \u0026quot;To Email Address\u0026quot; fields of code_generator.php.\n\n### Patches\nFixed in 5.2.24\n\n### Workarounds\nNone.\n\n### References\nhttps://nvd.nist.gov/vuln/detail/CVE-2017-11503\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open a private issue in [the PHPMailer project](https://github.com/PHPMailer/PHPMailer)", "id": "GHSA-58mj-pw57-4vm2", "modified": "2021-08-19T19:44:10Z", "published": "2020-03-05T22:09:13Z", "references": [ { "type": "WEB", "url": "https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-58mj-pw57-4vm2" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-11503" }, { "type": "WEB", "url": "https://cxsecurity.com/issue/WLB-2017060181" }, { "type": "WEB", "url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/phpmailer/phpmailer/CVE-2017-11503.yaml" }, { "type": "WEB", "url": "https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.24" }, { "type": "WEB", "url": "https://packetstormsecurity.com/files/143138/phpmailer-xss.txt" }, { "type": "WEB", "url": "http://www.securityfocus.com/bid/99293" }, { "type": "WEB", "url": "http://www.securitytracker.com/id/1039026" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "type": "CVSS_V3" } ], "summary": "Cross-site scripting in PHPMailer" }
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.