Cross-site scripting in Smarty - CVE-2018-25047

 

Cross-site scripting in Smarty - CVE-2018-25047

Published: September 26, 2022


Vulnerability identifier: #VU67636
CSH Severity: Medium
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2018-25047
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

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

Smarty
Gentoo Linux
Ubuntu
smarty3 (Ubuntu package)
dev-php/smarty

How to mitigate CVE-2018-25047

Install update from vendor's website.

Smarty - addressed in versions 3.1.47, 4.2.1
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

External References

Related Security Bulletins