WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact
WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact

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

cookie-notice
Fixed in version 2.1.2

References

CVE
CVE-2021-24569

Classification

Type

XSS

OWASP top 10
A7: Cross-Site Scripting (XSS)
CWE
CWE-79

Miscellaneous

Original Researcher

Asif Nawaz Minhas

Submitter

Asif Nawaz Minhas

Verified

Yes

WPVDB ID
38053e05-4b17-4fa9-acd3-85d8529b202b

Timeline

Publicly Published

2021-08-30 (about 8 months ago)

Added

2021-08-30 (about 8 months ago)

Last Updated

2021-08-30 (about 8 months ago)

Our Other Services

WPScan WordPress Security Plugin
WPScan

Vulnerabilities

WordPressPluginsThemesOur StatsSubmit vulnerabilities

About

How it worksPricingWordPress pluginNewsContact

For Developers

StatusAPI detailsCLI scanner

Other

PrivacyTerms of serviceDisclosure policy
jetpackIn partnership with Jetpack
githubtwitterfacebook
Angithubendeavor
Work With Us