Description
Craft is a content management system (CMS). The dataUrl function can be exploited if an attacker has write permissions on system notification templates. This function accepts an absolute file path, reads the file's content, and converts it into a Base64-encoded string. By embedding this function within a system notification template, the attacker can exfiltrate the Base64-encoded file content through a triggered system email notification. Once the email is received, the Base64 payload can be decoded, allowing the attacker to read arbitrary files on the server. This is fixed in 5.4.9 and 4.12.8.
Remediation
References
Related Vulnerabilities
Magento CVE-2019-8122 Vulnerability (CVE-2019-8122)
SharePoint CVE-2020-1502 Vulnerability (CVE-2020-1502)
Joomla Permissions, Privileges, and Access Controls Vulnerability (CVE-2008-3226)
WordPress Plugin AB Press Optimizer Multiple Cross-Site Scripting Vulnerabilities (1.1.1)
WordPress Plugin WP eCommerce 'collected_data[]' SQL Injection (3.8.4)