CVE-2024-8541 Cross-site scripting in Discount Rules for WooCommerce
Unauthenticated attackers can inject scripts via reflected XSS in the Discount Rules for WooCommerce plugin, potentially compromising admin accounts if specific notice conditions are met.
- 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-2024-8541?
CVE-2024-8541 is a medium-severity cross-site scripting vulnerability in flycart Discount Rules for WooCommerce, published on 16 Oct 2024. 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 Discount Rules for WooCommerce – Create Smart WooCommerce Coupons & Discounts, Bulk Discount, BOGO Coupons plugin for WordPress is vulnerable to Reflected Cross-Site Scripting due to the use of add_query_arg without appropriate escaping on the URL in all versions up to, and including, 2.6.5. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a site administrator into performing an action such as clicking on a link. Please note that this is only exploitable when the 'Leave a Review' notice is present, which occurs after 100 orders are made and disappears after a user dismisses the notice.
Weakness: CWE-79
Which versions are affected by CVE-2024-8541?
It affects 1 product.
Products include Flycart Discount Rules for Woocommerce.
How do I fix CVE-2024-8541?
No fix has been published for CVE-2024-8541 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-2024-8541 being exploited?
There is no known exploitation of CVE-2024-8541 in the wild and no public exploit code.
Other vulnerabilities in flycart Discount Rules for WooCommerce
Sources
Also known as GHSA-mjqf-c8r8-gxjg.