Cross-site scripting in Smarty - CVE-2018-25047
Published: September 26, 2022
Vulnerability details
The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.
The vulnerability exists due to insufficient sanitization of user-supplied data within the smarty_function_mailto() function in libs/plugins/function.mailto.php script. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website.
Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.
Affected software
Gentoo Linux
Ubuntu
smarty3 (Ubuntu package)
dev-php/smarty
How to mitigate CVE-2018-25047
smarty3 (Ubuntu package) - addressed in versions Ubuntu Pro, 3.1.34+20190228.1.c9f0de05+selfpack1-1ubuntu0.1, 3.1.39-2ubuntu1.22.04.2, 3.1.48-1ubuntu0.24.04.1, 3.1.48-1ubuntu0.24.10.1
dev-php/smarty - update to 4.2.1