CVE-2022-1476

All-in-One WP Migration <= 7.58 - Directory Traversal to File Deletion on Windows Hosts

2022-04-28 00:00
haidv35

Strategic Overview

Status
Patched in 7.59
Affected Version
<= 7.58
CVSS
6.6Medium
Weakness type
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVE
CVE-2022-1476
View all All-in-One WP Migration and Backup vulnerabilities

At a glance

CVE-2022-1476 is a medium-severity Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in the All-in-One WP Migration and Backup WordPress plugin, affecting versions <= 7.58. It carries a CVSS score of 6.6 (reachable over the network; high confidentiality, integrity, availability impact). The issue is fixed in version 7.59; sites on affected versions should update now. Disclosed April 2022, reported by haidv35.

Vulnerability Overview

The All-in-One WP Migration plugin for WordPress is vulnerable to arbitrary file deletion via directory traversal due to insufficient file validation via the ~/lib/model/class-ai1wm-backups.php file, in versions up to, and including, 7.58. This can be exploited by administrative users, and users who have access to the site's secret key.

Technical Analysis

The vector marks this flaw as remotely reachable over the network, and no interaction from a victim user. A successful exploit has high impact on confidentiality, integrity, availability — full site compromise territory.

CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Reaching this weakness in All-in-One WP Migration and Backup <= 7.58 takes a caller who can reach the endpoint. Path traversal happens when user-controlled text is used to build a filesystem path without being constrained to an intended directory, so sequences like ../ walk the resolved path somewhere else.

Depending on the operation, it means reading files outside the intended folder — wp-config.php being the usual target — or writing to and deleting paths the web server can touch. For All-in-One WP Migration and Backup the fix is 7.59: builds <= 7.58 are affected, anything from 7.59 onward is not.

Remediation

Update to version 7.59, or a newer patched version

How does WordSec protect against this?

The attempt arrives as an ordinary request to All-in-One WP Migration and Backup: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: All-in-One WP Migration and Backup 7.59 closes this, and updating the plugin is the step that ends it.

  • Firewall
  • Alerts

External References

Related records

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