Stored cross-site scripting in Add-on SweetAlert Contact Form 7 - #VU28514
Published: June 2, 2020
Add-on SweetAlert Contact Form 7
Camilo
Description
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 in "post-auth" in "tittle" field of the "Error Alert" and "Success Alert" sections of the plugin's settings page. A remote authenticated attacker can inject 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.
PoC:
Enter the following payload in the Title field of the Error Alert or Success Alert section in the plugin's settings: "onfocus=alert(/XSS/) autofocus="autofocus