CVE-2021-24595 WP Cookie Choice <= 1.1.0 - CSRF to Stored Cross-Site Scripting
An attacker can trick a logged-in admin into saving malicious XSS payloads via CSRF, leading to script execution in the admin interface.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-24595?
CVE-2021-24595 is a medium-severity cross-site scripting vulnerability in Unknown Wp Cookie Choice, published on 18 Oct 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
The Wp Cookie Choice WordPress plugin through 1.1.0 is lacking any CSRF check when saving its options, and do not escape them when outputting them in attributes. As a result, an attacker could make a logged in admin change them to arbitrary values including XSS payloads via a CSRF attack.
Which versions are affected by CVE-2021-24595?
It affects 1 product.
Products include Wp Cookie Choice Project Wp Cookie Choice.
How do I fix CVE-2021-24595?
No fix has been published for CVE-2021-24595 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2021-24595 being exploited?
There is no known exploitation of CVE-2021-24595 in the wild and no public exploit code.
Sources
Also known as GHSA-qc26-5j5x-3jw8.