CVE-2022-3882

Memory Usage <= 2.45 - Missing Authorization to Arbitrary Plugin Installation

2022-11-18 00:00
István Márton

Strategic Overview

At a glance

CVE-2022-3882 is a medium-severity Missing Authorization vulnerability in the Memory Usage, Memory Limit, PHP and Server Memory Health Check and Provide Suggestions WordPress plugin, affecting versions <= 2.45. It carries a CVSS score of 6.5 (reachable over the network; low attack complexity; high integrity impact). The root cause is a missing authorization check on a reachable function. The issue is fixed in version 2.46; sites on affected versions should update now. Disclosed November 2022, reported by István Márton.

Vulnerability Overview

The Memory Usage plugin for WordPress is vulnerable to authorization bypass due to a missing capability check on the wpmemory_install_plugin() function in versions up to, and including, 2.45. This makes it possible for authenticated attackers with minimal permission, such as a subscriber, to install arbitrary plugins on the vulnerable site. This could be used to install additional vulnerable plugins that could aid in further compromise of the site.

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. A successful exploit has high impact on integrity.

CWE-862: Missing Authorization

Memory Usage, Memory Limit, PHP and Server Memory Health Check and Provide Suggestions <= 2.45 carries this weakness at wpmemory_install_plugin(), and reaching it takes a caller who can reach the endpoint. A missing authorization check means a function is reachable by anyone who can reach the endpoint, because the code never asks whether the caller is allowed to perform the action.

Any user who can reach the endpoint gets to run an action reserved for higher-privileged roles, from reading protected data to changing settings or content. For Memory Usage, Memory Limit, PHP and Server Memory Health Check and Provide Suggestions the fix is 2.46: builds <= 2.45 are affected, anything from 2.46 onward is not.

Remediation

Update to version 2.46, 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: Memory Usage, Memory Limit, PHP and Server Memory Health Check and Provide Suggestions 2.46 closes this, and updating the plugin is the step that ends it.

  • Login Security
  • Alerts

External References

Related records

Other vulnerabilities in Memory Usage, Memory Limit, PHP and Server Memory Health Check and Provide Suggestions

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