CVE-2022-0775

WooCommerce <= 6.2.0 - Incorrect Authorization Checks on REST API Endpoints

2022-02-22 00:00
Krzysztof Zając

Strategic Overview

Status
Patched in 6.2.1
Affected Plugin
WooCommerce
Affected Version
<= 6.2.0
CVSS
5.4Medium
Weakness type
CWE-285 · Improper Authorization
CVE
CVE-2022-0775
View all WooCommerce vulnerabilities

At a glance

CVE-2022-0775 is a medium-severity Improper Authorization vulnerability in the WooCommerce WordPress plugin, affecting versions <= 6.2.0. It carries a CVSS score of 5.4 (reachable over the network; low attack complexity). The issue is fixed in version 6.2.1; sites on affected versions should update now. Disclosed February 2022, reported by Krzysztof Zając.

Vulnerability Overview

The WooCommerce plugin for WordPress is vulnerable to authorization bypass due to an insufficient capability check on the /wc/v2/products/ REST API in versions up to, and including, 6.2.0. This makes it possible for authenticated attackers with minimal permissions such as a subscriber to delete, edit, and read arbitrary comments and reviews.

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 interaction from a victim user.

CWE-285: Improper Authorization

Reaching this weakness in WooCommerce <= 6.2.0 takes a caller who can reach the endpoint. Improper authorization means a permission check exists but does not cover the case being exercised, so a caller who is allowed to do one thing is allowed to do a neighbouring thing as well.

A lower-privileged account performs an action reserved for a higher one, which on a multi-author or membership site means an ordinary user reaching administrative behaviour. For WooCommerce the fix is 6.2.1: builds <= 6.2.0 are affected, anything from 6.2.1 onward is not.

Remediation

Update to version 6.2.1, or a newer patched version

How does WordSec protect against this?

Because it turns on account access, WordSec's login security is the relevant layer: role-based two-factor, captcha and brute-force limits raise the cost of getting the account this needs. None of that substitutes for the fix: WooCommerce 6.2.1 closes this, and updating the plugin is the step that ends it.

  • Login Security
  • Alerts

External References

Related records

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