WordPress Plugin Vulnerabilities

Cookie Notice & Compliance for GDPR / CCPA < 2.1.2 - Admin+ Stored Cross-Site Scripting

Description

The plugin does not escape the value of its Button Text setting when outputting it in an attribute in the frontend, allowing high privilege users such as admin to perform Cross-Site Scripting even when the unfiltered_html capability is disallowed.

Proof of Concept

Put the following payload in the Button text setting of the plugin (in the Notice Setting section)
" style=animation-name:twentytwentyone-close-button-transition onanimationend=alert(/XSS/)//
"onmouseover=alert(/XSS/)//

Then go on any page of the frontend to trigger the XSS (which may require some user interaction depending on the payload/theme used)

Affects Plugins

Fixed in 2.1.2

References

Classification

Type
XSS
CWE
CVSS

Miscellaneous

Original Researcher
Asif Nawaz Minhas
Submitter
Asif Nawaz Minhas
Verified
Yes

Timeline

Publicly Published
2021-08-30 (about 2 years ago)
Added
2021-08-30 (about 2 years ago)
Last Updated
2023-04-12 (about 1 years ago)

Other