PT-2024-31782 · Unknown · Snappymail

Oskar-Zeinomahmalat-Sonarsource

·

Published

2024-09-16

·

Updated

2024-09-20

·

CVE-2024-45800

CVSS v3.1

5.0

Medium

VectorAV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
Name of the Vulnerable Software and Affected Versions: SnappyMail versions prior to 2.38.0
Description: SnappyMail is an open source web-based email client that uses the cleanHtml() function to cleanup HTML and CSS in emails. Research discovered that the function has bugs which cause an mXSS exploit, allowing a motivated attacker to inject JavaScript. However, due to the default Content Security Policy, the impact of the exploit is minimal. It could be possible to create an attack that leaks some data when loading images through the proxy, or to load a JavaScript attachment of the email.
Recommendations: For versions prior to 2.38.0, users are advised to upgrade to version 2.38.0 or later. For older versions, an extension named "Security mXSS" can be installed as a mitigation, available at the administration area at /?admin#/packages. As a temporary workaround, consider disabling the cleanHtml() function until a patch is available. Restrict access to the vulnerable cleanHtml() function to minimize the risk of exploitation. Avoid using the cleanHtml() function in the affected API endpoint until the issue is resolved.

Exploit

Fix

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2024-45800
GHSA-2RQ7-79VP-FFXM

Affected Products

Snappymail