WordPress security changelog
HIGH CVE-2021-24905 Modified

Advanced Contact form 7 DB: Arbitrary file deletion

Advanced Contact form 7 DB is affected by arbitrary file deletion. Exposure depends on how the affected operation is made reachable by the site. A successful request can remove files outside the intended scope and may make the site unavailable.

CVE / CNA score 8.0 CVSS · contact@wpscan.com
NVD score 8.0 CVSS 3.1 · nvd@nist.gov
Component
Advanced Contact form 7 DB
Plugin slug
advanced-cf7-db
Affected
See vendor advisory
Safe version
See mitigation notes
Published
Mar 21, 2022
Weakness
CWE-863 — Incorrect Authorization
CWE-352 — Cross-Site Request Forgery (CSRF)

This CVE was published Mar 21, 2022 and is one of 8 known issues for this plugin.

Update, patch or deactivate.

Update Advanced Contact form 7 DB to a release outside the affected range, or disable and remove it until a fixed version is available.

No confirmed safe version is listed. Consider a vendor-supported patch or temporarily restricting the affected functionality while you assess the risk.

Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.

Technical description

The Advanced Contact form 7 DB WordPress plugin before 1.8.7 does not have authorisation nor CSRF checks in the acf7_db_edit_scr_file_delete AJAX action, and does not validate the file to be deleted, allowing any authenticated user to delete arbitrary files on the web server. For example, removing the wp-config.php allows attackers to trigger WordPress setup again, gain administrator privileges and execute arbitrary code or display arbitrary content to the users.

NVD vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Primary and upstream sources