CVE-2024-8541
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.
Affected WordPress components
-
Discount Rules for WooCommerce Plugin · woo-discount-rulesUp to and including 2.6.5View on WordPress.org
A confirmed match is backed by the plugin or theme slug. A possible match is based on the product name only and should be verified.
Affected products and versions
- flycart Discount Rules for WooCommerce — Up to and including 2.6.5
- flycart discount_rules_for_woocommerce — Up to and including 2.6.5
References
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/browser/woo-discount-rules/tags/2.6.5/v2/App/Views/Admin/review-notice.php Product
- plugins.trac.wordpress.org https://plugins.trac.wordpress.org/changeset/3149013/ Patch
- www.wordfence.com https://www.wordfence.com/threat-intel/vulnerabilities/id/3529044f-c3d8-4370-8ba5-9df0fb71ab3c?source=cve Third Party Advisory
- nvd.nist.gov Official NVD record