Stored cross-site scripting in Add-on SweetAlert Contact Form 7 - #VU28514

 

Stored cross-site scripting in Add-on SweetAlert Contact Form 7 - #VU28514

Published: June 2, 2020


Vulnerability identifier: #VU28514
CSH Severity: Low
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P/U:Clear
CVE-ID: N/A
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
Add-on SweetAlert Contact Form 7
Software vendor:
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


Remediation

Install updates from vendor's website.

External links