Mailtree Log Mail Security & Risk Analysis

wordpress.org/plugins/mailtree-log-mail

A solid mail logger with additional REST API support to backup your messages to an external WordPress automatically.

10 active installs v1.0.1 PHP + WP 4.0+ Updated Jul 24, 2024
loglog-mailmailmail-log
91
A · Safe
CVEs total1
Unpatched0
Last CVEJun 20, 2023
Safety Verdict

Is Mailtree Log Mail Safe to Use in 2026?

Generally Safe

Score 91/100

Mailtree Log Mail has a strong security track record. Known vulnerabilities have been patched promptly. It's a solid choice for most WordPress installations.

1 known CVELast CVE: Jun 20, 2023Updated 1yr ago
Risk Assessment

The 'mailtree-log-mail' v1.0.1 plugin presents a mixed security posture. On the positive side, it demonstrates good practices in handling SQL queries and output escaping, with a high percentage of prepared statements and properly escaped outputs. The presence of nonce and capability checks in several areas is also a positive indicator. However, there are significant concerns, particularly regarding its attack surface and past vulnerability history.

The static analysis reveals a notable risk with one of the two REST API routes lacking permission callbacks, creating an unprotected entry point. The use of the 'unserialize' function, while not directly flagged by taint analysis in this specific version, is a historically dangerous function that can lead to remote code execution if not handled with extreme care, especially when processing user-controlled input. The plugin also makes external HTTP requests, which, without proper validation and sanitization of the target URL or response, could be exploited.

The plugin's vulnerability history, specifically a past high-severity 'Cross-site Scripting' vulnerability, is a significant red flag. While currently unpatched CVEs are zero, the recurring nature of such vulnerabilities suggests potential recurring weaknesses in input sanitization or output encoding. The historical context implies a need for ongoing vigilance and robust security testing. Overall, while the plugin exhibits some good coding practices, the unprotected REST API endpoint and past vulnerabilities necessitate caution.

Key Concerns

  • REST API route without permission callback
  • Use of dangerous function (unserialize)
  • Past high severity vulnerability (XSS)
  • External HTTP requests
Vulnerabilities
1 published

Mailtree Log Mail Security Vulnerabilities

CVEs by Year

1 CVE in 2023
2023
Patched Has unpatched

Severity Breakdown

High
1

1 total CVE

CVE-2023-3135high · 7.2Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Mailtree Log Mail <= 1.0.0 - Unauthenticated Stored Cross-Site Scripting via Email Subject

Jun 20, 2023 Patched in 1.0.1 (217d)
Version History

Mailtree Log Mail Release Timeline

v1.0.1Current
Code Analysis
Analyzed Mar 17, 2026

Mailtree Log Mail Code Analysis

Dangerous Functions
3
Raw SQL Queries
4
7 prepared
Unescaped Output
7
103 escaped
Nonce Checks
7
Capability Checks
4
File Operations
1
External Requests
2
Bundled Libraries
0

Dangerous Functions Found

unserializeself::$settings = unserialize(get_option(self::$optionsName, null));src\Models\Settings.php:23
unserialize$b = unserialize($a);src\RestApiEndpoint.php:32
unserialize$b = unserialize($a);src\RestApiEndpoint.php:47

SQL Query Safety

64% prepared11 total queries

Output Escaping

94% escaped110 total outputs
Attack Surface
1 unprotected

Mailtree Log Mail Attack Surface

Entry Points2
Unprotected1

REST API Routes 2

GET/wp-json/mailtree/v1/record/mailsrc\RestApiEndpoint.php:26
POST/wp-json/mailtree/v1/record/errorsrc\RestApiEndpoint.php:42
WordPress Hooks 10
filterwpmu_drop_tablessrc\Bootstrap.php:43
actionadmin_enqueue_scriptssrc\Bootstrap.php:48
actionplugins_loadedsrc\Bootstrap.php:49
actionadmin_menusrc\Bootstrap.php:52
filtercron_schedulessrc\CronManager.php:14
actionwp_mailsrc\Loggers\Logger.php:20
actionwp_mail_failedsrc\Loggers\Logger.php:21
actionrest_api_initsrc\RestApiEndpoint.php:13
actionrest_api_initsrc\RestApiEndpoint.php:14
filterset-screen-optionsrc\ScreenOptions.php:18
Maintenance & Trust

Mailtree Log Mail Maintenance & Trust

Maintenance Signals

WordPress version tested6.5.8
Last updatedJul 24, 2024
PHP min version
Downloads945

Community Trust

Rating100/100
Number of ratings1
Active installs10
Developer Profile

Mailtree Log Mail Developer Profile

oacstudio

3 plugins · 510 total installs

73
trust score
Avg Security Score
92/100
Avg Patch Time
217 days
View full developer profile
Detection Fingerprints

How We Detect Mailtree Log Mail

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/mailtree-log-mail/assets/css/styles.min.css/wp-content/plugins/mailtree-log-mail/assets/js/index.min.js
Script Paths
/wp-content/plugins/mailtree-log-mail/assets/js/index.min.js
Version Parameters
mailtree-log-mail/assets/css/styles.min.css?v=mailtree-log-mail/assets/js/index.min.js?v=

HTML / DOM Fingerprints

HTML Comments
NOTE load all default variables for settings. NOTE later when there might be more logging types this will be important. NOTE Disable auto delete. NOTE Instantiate custom screen options.+11 more
Data Attributes
data-bulk-action="export"data-bulk-action="resend"data-bulk-action="delete"
JS Globals
mailtree
REST Endpoints
/wp-json/mailtree/v1/logs
FAQ

Frequently Asked Questions about Mailtree Log Mail