CVE-2024-8872

Store Hours for WooCommerce <= 4.3.20 - Reflected Cross-Site Scripting

2024-09-25 00:00
vgo0

Strategic Overview

Status
Patched in 4.3.22
Affected Version
<= 4.3.20
CVSS
6.1Medium
Weakness type
CWE-80 · Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)
CVE
CVE-2024-8872
View all Store Hours for WooCommerce vulnerabilities

At a glance

CVE-2024-8872 is a medium-severity Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) vulnerability in the Store Hours for WooCommerce WordPress plugin, affecting versions <= 4.3.20. It carries a CVSS score of 6.1 (reachable over the network; low attack complexity). Exploitation requires no authentication. The issue is fixed in version 4.3.22; sites on affected versions should update now. Disclosed September 2024, reported by vgo0.

Vulnerability Overview

The Store Hours for WooCommerce 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, 4.3.20. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.

Technical Analysis

The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no privileges on the target site.

CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)

The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as <, >, and & that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages.

Remediation

Update to version 4.3.22, or a newer patched version

How does WordSec protect against this?

The attempt arrives as an ordinary request to Store Hours for WooCommerce: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: Store Hours for WooCommerce 4.3.22 closes this, and updating the plugin is the step that ends it.

  • Firewall
  • Alerts

External References

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C