QID 150759

Date Published: 2023-12-15

QID 150759: WordPress Contact Form 7 Plugin: Authenticated Arbitrary File Upload Vulnerability (CVE-2023-6449)

Contact Form 7 is a WordPress plugin which allows users to customize, manage multiple contact forms along with mail facility.

The Contact Form 7 plugin for WordPress is vulnerable to arbitrary file uploads due to insufficient file type validation in the 'validate' function and insufficient blocklisting on the 'wpcf7_antiscript_file_name' function. This makes it possible for authenticated attackers with editor-level capabilities or above to upload arbitrary files on the affected site's server, but due to the htaccess configuration, remote code cannot be executed in most cases. By default, the file will be deleted from the server immediately. However, in some cases, other plugins may make it possible for the file to live on the server longer. This can make remote code execution possible when combined with another vulnerability, such as local file inclusion.

Affected Versions:
Contact Form 7 prior to version 5.8.4

QID Detection Logic:(Unauthenticated)
This QID checks for vulnerable version of Contact Form 7 plugin running on the target application.

Successful exploitation of this vulnerability could allow an attacker to upload malicious file and execute arbitrary code on the target system.

  • CVSS V3 rated as High - 7.2 severity.
  • CVSS V2 rated as Critical - 9 severity.
  • Solution
    Customers are advised to upgrade to version 5.8.4 or later to remediate this vulnerability. For more information regarding this vulnerability please refer Contact Form 7 .
    Vendor References

    CVEs related to QID 150759

    Software Advisories
    Advisory ID Software Component Link
    Contact Form 7 URL Logo contactform7.com/2023/11/30/contact-form-7-584/