CVE-2021-24821 Cost Calculator < 1.6 - Contributor+ Stored Cross-Site Scripting
Contributors can inject malicious scripts via Cost Calculator fields, potentially leading to code execution or account takeover on WordPress sites.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-24821?
CVE-2021-24821 is a medium-severity cross-site scripting vulnerability in Unknown Cost Calculator, published on 7 Mar 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
The Cost Calculator WordPress plugin before 1.6 allows users with a role as low as Contributor to perform Stored Cross-Site Scripting attacks via the Description fields of a Cost Calculator > Price Settings (which gets injected on the edit page as well as any page that embeds the calculator using the shortcode), as well as the Text Preview field of a Project (injected on the edit project page)
Weakness: CWE-79
Which versions are affected by CVE-2021-24821?
It affects 1 product.
Products include Nicdark Cost Calculator.
How do I fix CVE-2021-24821?
No fix has been published for CVE-2021-24821 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-24821 being exploited?
There is no known exploitation of CVE-2021-24821 in the wild and no public exploit code.
Other vulnerabilities in Unknown Cost Calculator
Sources
Also known as GHSA-p6g4-5hgj-p576.