YaySMTP <= 2.7.7 - Authenticated (Subscriber+) Arbitrary File Upload via Attachment Filename Extension
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
The YaySMTP – WP Mail SMTP with Email Logs, Tracking & Reports plugin for WordPress is vulnerable to Arbitrary File Upload in all versions up to, and including, 2.7.7 via the putFile function. This is due to insufficient file type validation in the putFile function, as sanitize_file_name() does not strip executable extensions and no allow-list, MIME check, or safe-extension rename is applied. This makes it possible for authenticated attackers, with subscriber-level access and above, to upload files that may be executable, which makes remote code execution possible. The only server-side guard is a .htaccess file containing 'Require all denied' written by writeGuards(), which is silently ignored by nginx and by Apache configured with AllowOverride None, meaning RCE is fully achievable on those server configurations.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- yaycommerce YaySMTP – WP Mail SMTP with Email Logs, Tracking & Reports
through 2.7.7
References 8
plugins.trac.wordpress.org
- browser/yaysmtp/tags/2.7.7/includes/Helper/EmailLogAttachments.php#L542
- browser/yaysmtp/tags/2.7.7/includes/Helper/EmailLogAttachments.php#L549
- browser/yaysmtp/tags/2.7.7/includes/Helper/EmailLogAttachments.php#L178
- browser/yaysmtp/tags/2.7.7/includes/Helper/EmailLogAttachments.php#L106
- browser/yaysmtp/tags/2.7.7/includes/Helper/Utils.php#L814
- browser/yaysmtp/tags/2.7.7/includes/PluginCore.php#L37
- changeset/3739875/yaysmtp/trunk/includes/Helper/EmailLogAttachments.php