CVE-2020-5226
Last modified
CVE-2020-5226 is a medium-severity vulnerability rated 5.4/10 on the CVSS scale. Cross-site scripting in SimpleSAMLphp before version 1.18.4. The www/erroreport.php script allows error reports to be submitted and sent to the system administrator. EPSS estimates a 0.54% chance of exploitation in the next 30 days.
Description
Cross-site scripting in SimpleSAMLphp before version 1.18.4. The www/erroreport.php script allows error reports to be submitted and sent to the system administrator. Starting with SimpleSAMLphp 1.18.0, a new SimpleSAML\Utils\EMail class was introduced to handle sending emails, implemented as a wrapper of an external dependency. This new wrapper allows us to use Twig templates in order to create the email sent with an error report. Since Twig provides automatic escaping of variables, manual escaping of the free-text field in www/errorreport.php was removed to avoid double escaping. However, for those not using the new user interface yet, an email template is hardcoded into the class itself in plain PHP. Since no escaping is provided in this template, it is then possible to inject HTML inside the template by manually crafting the contents of the free-text field.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Simplesamlphp | Simplesamlphp | < 1.18.4 |
References
- https://simplesamlphp.org/security/202001-01Vendor Advisory
- https://simplesamlphp.org/security/202001-01Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2020-5226?
How severe is CVE-2020-5226?
How do I fix CVE-2020-5226?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2020
- CVE-2020-5220Sylius ResourceBundle accepts and uses any serialisation gro…5.3
- CVE-2020-5221In uftpd before 2.11, it is possible for an unauthenticated …7.2
- CVE-2020-5222Opencast before 7.6 and 8.1 enables a remember-me cookie bas…8.8
- CVE-2020-5223In PrivateBin versions 1.2.0 before 1.2.2, and 1.3.0 before …4.4
- CVE-2020-5224In Django User Sessions (django-user-sessions) before 1.7.1,…8.8
- CVE-2020-5225Log injection in SimpleSAMLphp before version 1.18.4. The ww…5.4
- CVE-2020-5227Feedgen (python feedgen) before 0.9.0 is susceptible to XML …7.5
- CVE-2020-5228Opencast before 8.1 and 7.6 allows unauthorized public acces…7.5
- CVE-2020-5229Opencast before 8.1 stores passwords using the rather outdat…8.1
- CVE-2020-5230Opencast before 8.1 and 7.6 allows almost arbitrary identifi…7.5
- CVE-2020-5231In Opencast before 7.6 and 8.1, users with the role ROLE_COU…6.5
- CVE-2020-5232A user who owns an ENS domain can set a trapdoor, allowing t…8.7
Are you affected by CVE-2020-5226?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
