Easy Media Replace <= 0.1.3 - Authenticated (Author+) Arbitrary File Deletion
Strategic Overview
- Status
- Patched in 0.2.0
- Affected Plugin
- Easy Media Replace
- Affected Version
<= 0.1.3- CVSS
- 8.1High
- Weakness type
- CWE-862 · Missing Authorization
- CVE
CVE-2022-46850
At a glance
CVE-2022-46850 is a high-severity Missing Authorization vulnerability in the Easy Media Replace WordPress plugin, affecting versions <= 0.1.3. It carries a CVSS score of 8.1 (reachable over the network; low attack complexity; high integrity, availability impact). Exploitation requires an authenticated account at Author level or above. The issue is fixed in version 0.2.0; sites on affected versions should update now. Disclosed March 2023, reported by Jeong Seong Ho.
Vulnerability Overview
The Easy Media Replace plugin for WordPress is vulnerable to arbitrary file deletion due to file path validation in the replace function in versions up to, and including, 0.1.3. This makes it possible for author-level attackers to delete arbitrary files on the affected site's server. File deletion is limited to files of the same mime type the attacker can upload.
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, availability.
CWE-862: Missing Authorization
Reaching this weakness in Easy Media Replace <= 0.1.3 takes an account at Author level or above. 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 Easy Media Replace the fix is 0.2.0: builds <= 0.1.3 are affected, anything from 0.2.0 onward is not.
Remediation
Update to version 0.2.0, 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: Easy Media Replace 0.2.0 closes this, and updating the plugin is the step that ends it.
- Login Security
- Alerts
External References
Related records
Other vulnerabilities in Easy Media Replace
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C