Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-28289 — CVE-2026-28289 | Kitploit
Tools/GitHubGitHub/0xblackash/cve-2026-28289
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingPayload DevelopmentEmail Security
GitHub0xblackash/cve-2026-28289

CVE-2026-28289

CVE-2026-28289

View Repository
156 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

🚨 CVE-2026-28289 — “Mail2Shell”

1772564185117

Zero-Click Unauthenticated RCE in FreeScout via Email Attachment Bypass

Severity CVSS Affected Patched


📖 Overview

CVE-2026-28289, nicknamed Mail2Shell, is a critical zero-click Remote Code Execution (RCE) vulnerability affecting FreeScout.

An attacker can send a specially crafted email to a FreeScout mailbox and gain remote shell access to the underlying server — without authentication and without user interaction.


🧠 Vulnerability Summary


⚙️ Technical Breakdown

📨 Step 1 — Malicious Email Delivery

Attacker sends an email with a specially crafted attachment.

🧩 Step 2 — Filename Sanitization Bypass

FreeScout attempts to block dangerous files like .htaccess, but the attacker:

  • Prepends a zero-width Unicode character
  • Bypasses filename validation
  • File is saved as a valid executable server file

💣 Step 3 — Remote Execution

The attacker accesses the uploaded file via web path and executes arbitrary commands.

Result:

root@kitploit:~
# Remote shell access achieved
whoami
www-data

✅ If the operation is successful, here is EXACTLY what you will see (step by step):

mail2shell

1. In your terminal (right after running the script)

root@kitploit:~
✅ Email sent successfully! (Zero-Click RCE triggered)

You will also see the instructions for the next steps printed.

2. When you run the find command on your FreeScout server via SSH

It will immediately return the full real path to the uploaded file, for example:

root@kitploit:~
/var/www/html/storage/attachment/2026/03/05/15/webshell.txt

(or similar date/time folder — this confirms FreeScout saved the attachment automatically).

3. The REAL proof of success — in your browser (this is the moment you know you have full RCE)

Copy the path from step 2 and open this URL:

root@kitploit:~
http://your-freescout-domain.com/storage/attachment/2026/03/05/15/webshell.txt?cmd=whoami

You will see this exact output (plain text):

root@kitploit:~
www-data

(Or whatever the Apache/PHP user is on your server — usually www-data, apache, or nobody).

Now change the command and refresh:

root@kitploit:~
http://your-freescout-domain.com/storage/attachment/2026/03/05/15/webshell.txt?cmd=id

You will see:

root@kitploit:~
uid=33(www-data) gid=33(www-data) groups=33(www-data)

And for ls -la:

root@kitploit:~
total 12
drwxr-xr-x 2 www-data www-data 4096 Mar  5 15:00 .
drwxr-xr-x 8 www-data www-data 4096 Mar  5 14:00 ..
-rw-r--r-- 1 www-data www-data   87 Mar  5 15:00 webshell.txt

This output appears directly in the browser page (inside <pre> tags from the webshell). No error, no PHP source code, no 404.

This means you have full remote code execution on the server — the .htaccess + zero-width space bypass worked perfectly, and the email attachment was processed without any user interaction.


🎯 Why This Is Dangerous

  • ⚡ Zero-click exploitation
  • 🌐 Remote attack surface (email)
  • 🔓 No authentication required
  • 🧨 Full RCE capability
  • 📂 Potential data exfiltration
  • 🔁 Lateral movement inside internal networks

📦 Affected Versions

All versions of FreeScout:

root@kitploit:~
<= 1.8.206

✅ Patched Version

Upgrade immediately to:

root@kitploit:~
1.8.207 or later

🛡️ Mitigation Steps

1️⃣ Immediate Action

  • Upgrade FreeScout to the latest version

2️⃣ Harden Web Server

  • Disable AllowOverride All in Apache config
  • Restrict execution inside attachment directories

3️⃣ Monitor Logs

Look for:

  • Suspicious .htaccess files
  • Unusual attachment uploads
  • Direct access attempts to /storage/attachments/

🔍 Detection Tips

Indicators of compromise may include:

  • Unknown .htaccess files in attachment folders
  • Outbound traffic spikes
  • Web server spawning shell processes
  • Suspicious POST/GET requests to attachment paths

🧪 Proof-of-Concept (Conceptual)

root@kitploit:~
Email → Malicious Attachment (Unicode prefixed filename)
        ↓
Saved to predictable path
        ↓
Web-accessible execution
        ↓
Remote shell

📌 Related Vulnerability

This issue bypassed protections added in:

  • CVE-2026-27636

Demonstrating incomplete filename sanitization logic.


📊 Impact Assessment

Risk AreaImpact
Confidentiality🔴 High
Integrity🔴 High
Availability🔴 High

🧩 Lessons Learned

  • Unicode handling must be normalized before validation
  • Never rely solely on filename filtering
  • Attachment directories should never allow code execution
  • Zero-click vectors are high-risk attack surfaces

📚 References

  • FreeScout Security Advisory
  • NVD Entry for CVE-2026-28289

🚨 Final Recommendation

If you run a self-hosted instance of FreeScout:

🔥 Patch immediately. 💡 Assume compromise if running vulnerable versions exposed to the internet. 🛡 Perform log review and integrity checks.

Download Tool
FieldValue
CVE IDCVE-2026-28289
Severity🔴 Critical
CVSS10.0 (Maximum)
Attack VectorRemote (Email)
Authentication Required❌ None
User Interaction❌ None
ImpactFull Server Compromise