Description Preview
A Cross-Site Scripting (XSS) vulnerability was discovered in Contao CMS versions 4.5.x through 4.9.x (before 4.9.16) and 4.10.x through 4.11.x (before 4.11.5). This vulnerability allows attackers to inject malicious code into the tl_log table that will be executed in the browser when an administrator views the system log in the back end. This could lead to session hijacking, credential theft, or other malicious actions performed in the context of the authenticated administrator.
Overview
This vulnerability (CVE-2021-35210) affects the system log functionality in Contao CMS. The issue stems from insufficient input validation and output encoding in the system log display mechanism. Attackers can craft special inputs that get stored in the system log database table (tl_log) without proper sanitization. When an administrator later accesses the system log through the back end interface, the injected JavaScript code executes in their browser with their privileges. This is a stored XSS vulnerability that specifically targets administrative users who have access to the system logs, making it particularly dangerous as it can compromise administrative accounts.
Remediation
To remediate this vulnerability, take the following actions:
- Update Contao CMS to version 4.9.16 or later (if using the 4.9.x branch) or to version 4.11.5 or later (if using the 4.11.x branch).
- If immediate updating is not possible, consider restricting access to the system log functionality to only essential administrative users.
- Implement additional web application firewall rules to detect and block potential XSS payloads.
- Review system logs for any suspicious entries that might indicate exploitation attempts.
- After updating, consider clearing or purging old system logs that might contain malicious payloads.
- Ensure that all administrative users are using modern browsers with XSS protection features enabled.
References
- Vendor Security Advisory: https://contao.org/en/security-advisories/cross-site-scripting-in-the-system-log-2021.html
- GitHub Security Advisory: https://github.com/contao/contao/security/advisories/GHSA-h58v-c6rf-g9f7
- Common Weakness Enumeration: CWE-79 (Improper Neutralization of Input During Web Page Generation - 'Cross-site Scripting')
- MITRE CVE Entry: CVE-2021-35210
Industry ExposureMost to leastThis section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.
This section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.
- Accommodation & Food ServicesAccommodation & Food Services
- Administrative, Support, Waste Management & Remediation ServicesAdministrative, Support, Waste Management & Remediation Services
- Agriculture, Forestry Fishing & HuntingAgriculture, Forestry Fishing & Hunting
- Arts, Entertainment & RecreationArts, Entertainment & Recreation
- ConstructionConstruction
- Educational ServicesEducational Services
- Finance and InsuranceFinance and Insurance
- Health Care & Social AssistanceHealth Care & Social Assistance
- InformationInformation
- Management of Companies & EnterprisesManagement of Companies & Enterprises
- ManufacturingManufacturing
- MiningMining
- Other Services (except Public Administration)Other Services (except Public Administration)
- Professional, Scientific, & Technical ServicesProfessional, Scientific, & Technical Services
- Public AdministrationPublic Administration
- Real Estate Rental & LeasingReal Estate Rental & Leasing
- Retail TradeRetail Trade
- Transportation & WarehousingTransportation & Warehousing
- UtilitiesUtilities
- Wholesale TradeWholesale Trade