Contact Manager <= 9.1.2 - Unauthenticated Arbitrary File Upload via Trailing-Dot Filename Blacklist Bypass
- Published
- Last modified
- Status
- published
- Known exploitation
- Not listed in CISA KEV
- Public exploit
- None on Exploit-DB
Summary
The Contact Manager WordPress plugin, up to and including version 9.1.2, is affected by a flaw that lets unauthenticated visitors upload files to the server. Under specific server configurations, this could allow an attacker to run malicious code remotely, giving them control over the affected website.
Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.
Read the original description
The Contact Manager plugin for WordPress is vulnerable to Arbitrary File Upload in all versions up to, and including, 9.1.2 via the add_message function. This is due to an incomplete extension blacklist that fails to detect dangerous extensions when a trailing dot causes the extension-derivation routine to return an empty string, which sanitize_file_name() then silently removes before the file is written to disk. This makes it possible for unauthenticated attackers to upload files that may be executable, which makes remote code execution possible. Successful code execution additionally requires the server to use Apache with libapache2-mod-php (which maps .phar to PHP by default) and the attacker to retrieve the uploaded file within the brief window before it is removed by unlink() at end of request.
Affected versions
- kleor Contact Manager
through 9.1.2
References 7
plugins.trac.wordpress.org
- browser/contact-manager/tags/9.1.2/includes/add-message.php#L256
- browser/contact-manager/tags/9.1.2/includes/add-message.php#L254
- browser/contact-manager/tags/9.1.2/contact-manager.php#L42
- browser/contact-manager/tags/9.1.2/includes/forms/processing.php#L102
- changeset?reponame=&new=3767815%40contact-manager%2Ftags%2F9.1.3&old=3661172%40contact-manager%2Ftags%2F9.1.2