Vulnerability in Popular WordPress Plugin Puts Over 300,000 Websites at Risk
A vulnerability in the popular WordPress Contact Form 7 plugin addon, installed in over 300,000 websites, enables attackers to upload malicious files and makes it possible for them to copy files from the server. This vulnerability is especially concerning because it can be exploited by unauthenticated attackers, meaning they don’t need to log in or have any user privileges to take advantage of the flaw.
About the Redirection for Contact Form 7 Plugin
The Redirection for Contact Form 7 plugin is an add-on to the popular Contact Form 7 plugin, created by Themeisle. It allows websites to redirect site visitors to any web page after a form submission and provides additional functions such as storing information in a database.
Vulnerability Details
The vulnerability exists due to missing file type validation in the ‘move_file_to_upload’ function in all versions up to and including 3.2.7. This makes it possible for unauthenticated attackers to copy arbitrary files on the affected site’s server. According to Wordfence, a security firm that discovered the vulnerability, “The Redirection for Contact Form 7 plugin for WordPress is vulnerable to arbitrary file uploads… This makes it possible for unauthenticated attackers to copy arbitrary files on the affected site’s server.”
Exploitation Mitigated by PHP Setting
However, the exploitation of this vulnerability is slightly mitigated by the fact that it relies on the PHP ‘allow_url_fopen’ setting to be “on”. This setting controls how PHP handles files, and while it is set to “on” by default, most shared hosting providers set it to “off” to prevent security vulnerabilities. This reduces the likelihood of the flaw being exploited, although it is still a significant risk.
Recommendations
Users of the plugin are encouraged to update to version 3.2.8 or newer to patch the vulnerability. It is essential to keep plugins and software up to date to prevent such vulnerabilities from being exploited.
Conclusion
In conclusion, the vulnerability in the Redirection for Contact Form 7 plugin poses a significant risk to over 300,000 websites. Although the exploitation of this vulnerability is slightly mitigated by the PHP ‘allow_url_fopen’ setting, it is still crucial for users to update their plugins to prevent potential attacks. By staying informed and taking proactive measures, website owners can protect their sites from such vulnerabilities and ensure the security of their online presence.

