CVE-2021-24405 Easy Cookie Policy <= 1.6.2 - Broken Access Control to Stored Cross-Site Scripting

Medium 6.5 Published Updated

Authenticated users or CSRF attackers can inject malicious scripts via unsanitized cookie policy settings, leading to stored XSS.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-24405?

CVE-2021-24405 is a medium-severity cross-site scripting vulnerability in IZSoft Easy Cookies Policy, published on 6 Jul 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The Easy Cookies Policy WordPress plugin through 1.6.2 is lacking any capability and CSRF check when saving its settings, allowing any authenticated users (such as subscriber) to change them. If users can't register, this can be done through CSRF. Furthermore, the cookie banner setting is not sanitised or validated before being output in all pages of the frontend and the backend settings one, leading to a Stored Cross-Site Scripting issue.

Weakness: CWE-863

Which versions are affected by CVE-2021-24405?

It affects 1 product.

Products include Izsoft Easy Cookies Policy.

How do I fix CVE-2021-24405?

No fix has been published for CVE-2021-24405 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-24405 being exploited?

There is no known exploitation of CVE-2021-24405 in the wild and no public exploit code.

Public exploit code: 1 Exploit-DB entry.

Sources

Also known as GHSA-95hr-f33r-v5jc.

Is CVE-2021-24405 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free