CVE-2025-13516: CWE-434 Unrestricted Upload of File with Dangerous Type in brainstormforce SureMail – SMTP and Email Logs Plugin with Amazon SES, Postmark, and Other Providers
The SureMail – SMTP and Email Logs Plugin for WordPress is vulnerable to Unrestricted Upload of File with Dangerous Type in versions up to and including 1.9.0. This is due to the plugin's save_file() function in inc/emails/handler/uploads.php which duplicates all email attachments to a web-accessible directory (wp-content/uploads/suremails/attachments/) without validating file extensions or content types. Files are saved with predictable names derived from MD5 hashes of their content. While the plugin attempts to protect this directory with an Apache .htaccess file to disable PHP execution, this protection is ineffective on nginx, IIS, and Lighttpd servers, or on misconfigured Apache installations. This makes it possible for unauthenticated attackers to achieve Remote Code Execution by uploading malicious PHP files through any public form that emails attachments, calculating the predictable filename, and directly accessing the file to execute arbitrary code granted they are exploiting a site running on an affected web server configuration.
AI Analysis
Technical Summary
The SureMail plugin's save_file() function duplicates email attachments to wp-content/uploads/suremails/attachments/ without validating file extensions or content types. Files are named using MD5 hashes of their content, making filenames predictable. The plugin attempts to block PHP execution in this directory using an Apache .htaccess file, but this measure is ineffective on non-Apache or misconfigured servers. Consequently, attackers can upload malicious PHP files through any public form that sends email attachments, then access these files directly to achieve remote code execution on vulnerable WordPress sites.
Potential Impact
Successful exploitation results in remote code execution with no authentication required, allowing attackers to execute arbitrary code on the affected server. This can lead to full site compromise, data theft, or further network penetration. The vulnerability is critical due to the ability to execute code remotely and the lack of required privileges or user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, administrators should verify their web server configuration to ensure that execution of PHP files is disabled in the wp-content/uploads/suremails/attachments/ directory. On non-Apache servers or misconfigured Apache servers, additional manual restrictions should be applied to prevent execution of uploaded files. Consider disabling or restricting the plugin's file upload features if possible until an official fix is released.
CVE-2025-13516: CWE-434 Unrestricted Upload of File with Dangerous Type in brainstormforce SureMail – SMTP and Email Logs Plugin with Amazon SES, Postmark, and Other Providers
Description
The SureMail – SMTP and Email Logs Plugin for WordPress is vulnerable to Unrestricted Upload of File with Dangerous Type in versions up to and including 1.9.0. This is due to the plugin's save_file() function in inc/emails/handler/uploads.php which duplicates all email attachments to a web-accessible directory (wp-content/uploads/suremails/attachments/) without validating file extensions or content types. Files are saved with predictable names derived from MD5 hashes of their content. While the plugin attempts to protect this directory with an Apache .htaccess file to disable PHP execution, this protection is ineffective on nginx, IIS, and Lighttpd servers, or on misconfigured Apache installations. This makes it possible for unauthenticated attackers to achieve Remote Code Execution by uploading malicious PHP files through any public form that emails attachments, calculating the predictable filename, and directly accessing the file to execute arbitrary code granted they are exploiting a site running on an affected web server configuration.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The SureMail plugin's save_file() function duplicates email attachments to wp-content/uploads/suremails/attachments/ without validating file extensions or content types. Files are named using MD5 hashes of their content, making filenames predictable. The plugin attempts to block PHP execution in this directory using an Apache .htaccess file, but this measure is ineffective on non-Apache or misconfigured servers. Consequently, attackers can upload malicious PHP files through any public form that sends email attachments, then access these files directly to achieve remote code execution on vulnerable WordPress sites.
Potential Impact
Successful exploitation results in remote code execution with no authentication required, allowing attackers to execute arbitrary code on the affected server. This can lead to full site compromise, data theft, or further network penetration. The vulnerability is critical due to the ability to execute code remotely and the lack of required privileges or user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, administrators should verify their web server configuration to ensure that execution of PHP files is disabled in the wp-content/uploads/suremails/attachments/ directory. On non-Apache servers or misconfigured Apache servers, additional manual restrictions should be applied to prevent execution of uploaded files. Consider disabling or restricting the plugin's file upload features if possible until an official fix is released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2025-11-21T18:57:45.563Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 692ef5303a1612a9372cbaba
Added to database: 12/2/2025, 2:18:24 PM
Last enriched: 4/9/2026, 9:33:45 AM
Last updated: 5/8/2026, 6:28:21 PM
Views: 250
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.