Strategic Overview
- Status
- Patched in 8.7.5
- Affected Plugin
- BackupBuddy
- Affected Version
8.5.8.0 – 8.7.4.1- CVSS
- 7.5High
- Weakness type
- CWE-73 · External Control of File Name or Path
- CVE
CVE-2022-31474
At a glance
CVE-2022-31474 is a high-severity External Control of File Name or Path vulnerability in the BackupBuddy WordPress plugin, affecting versions 8.5.8.0 – 8.7.4.1. It carries a CVSS score of 7.5 (reachable over the network; low attack complexity; high confidentiality impact). Exploitation requires no authentication. The issue is fixed in version 8.7.5; sites on affected versions should update now. Disclosed September 2022.
Vulnerability Overview
The BackupBuddy plugin for WordPress is vulnerable to unauthenticated arbitrary file downloads via the 'local-download' found in the backupbuddy_local_download() function in versions 8.5.8.0 to 8.7.4.1. This is due to a missing capability check and nonce check on the affected function that is called via an admin_init hook along with insufficient file path validation on the supplied download file. This makes is possible for unauthenticated attackers to supply the complete path to a file, or use directory traversal techniques, to read any file hosted on the server. This includes sensitive files such as /etc/passwd and /wp-config.php.
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, and no interaction from a victim user. A successful exploit has high impact on confidentiality.
CWE-73: External Control of File Name or Path
The product allows user input to control or influence paths or file names that are used in filesystem operations.
Remediation
Update to version 8.7.5, or a newer patched version
How does WordSec protect against this?
The attempt arrives as an ordinary request to BackupBuddy: WordSec's web application firewall inspects request payloads before WordPress loads them. Classes like this one can leave something behind, so the staged malware scanner is the second half: it looks for dropped files and modified code rather than for the request that created them. None of that substitutes for the fix: BackupBuddy 8.7.5 closes this, and updating the plugin is the step that ends it.
- Firewall
- Scanner
- Alerts
External References
Related records
Other vulnerabilities in BackupBuddy
- 9.8CVE-2013-2741: BackupBuddy < 3.0 Authentication Bypass
CVE-2013-2741 - 9.8CVE-2013-2742: BackupBuddy < 3.0 Authentication Bypass
CVE-2013-2742 - 9.8CVE-2013-2743: BackupBuddy < 3.0 Authentication Bypass
CVE-2013-2743 - 6.1CVE-2022-4897: BackupBuddy <= 8.8.2 Reflected Cross-Site Scripting
CVE-2022-4897 - 5.3CVE-2013-2744: BackupBuddy <= 2.2.28 Sensitive Information Disclosure
CVE-2013-2744
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C