Rapid7 has published Part 2 of its four-part vulnerability research series on Zimbra Collaboration Suite (ZCS), following a coordinated disclosure of more than 80 vulnerabilities identified during a comprehensive assessment. While Part 1 (October) dealt with account compromise, email impersonation, and unauthorized mailbox access, this second installment details nine additional vulnerabilities across three attack classes: three calendar forgery flaws, four stored cross-site scripting (XSS) vulnerabilities, and two weaknesses in mailbox delegation.
The detail that should get every Zimbra administrator's attention: the attacker does not need a Zimbra account. The calendar manipulation vulnerabilities are triggered during email delivery — before the victim ever opens, previews, or reads the message. The stored XSS payloads execute when the victim subsequently interacts with the message in either the Classic or Modern Zimbra web client. This is an untrusted-email-to-browser-authority chain: a remote, unauthenticated sender can silently alter a target's calendar and then execute arbitrary JavaScript in the context of an authenticated Zimbra session.
If you run ZCS on-premises or manage hosted Zimbra tenants, treat this as an active patch-and-hunt event. Zimbra has been a consistently targeted platform — its webmail and collaboration surface has featured in multiple mass-exploitation campaigns in recent years, and research drops of this scale historically accelerate both proof-of-concept development and opportunistic scanning.
Technical Analysis
Affected Products
- Zimbra Collaboration Suite (ZCS) — the open-source and Network Edition collaboration platform
- Both the Classic web client and the Modern web client are affected by the stored XSS findings
- The calendar subsystem (iCalendar/CalDAV processing during message delivery) is affected by the forgery flaws
- The mailbox sharing/delegation mechanism is affected by two authorization weaknesses
The Nine Vulnerabilities by Class
1. Calendar Forgery (3 vulnerabilities). Zimbra automatically parses iCalendar (.ics) MIME parts during inbound message delivery — this is how meeting invites appear on a user's calendar without any user action. Rapid7's research demonstrates that an unauthenticated external sender can abuse this automatic processing pipeline to forge, alter, or delete calendar entries in a victim's calendar. Critically, the manipulation happens at delivery time in the mail store layer, not at render time in the client. The victim never has to open the email. From a threat-model perspective, this enables:
- Injecting fake meeting invitations containing attacker-controlled descriptions, locations (e.g., a malicious meeting link), and organizer identities
- Modifying or canceling legitimate existing meetings — enabling social-engineering pretexts ("your 2:00 PM was moved") or operational disruption
- Polluting executive or shared calendars at scale as a precursor to phishing
2. Stored Cross-Site Scripting (4 vulnerabilities). Four distinct stored XSS flaws affect ZCS, with payloads delivered via ordinary email and persisting in the mailbox store. The malicious script executes when the victim views or interacts with the content in the Classic or Modern web client. Stored XSS in a webmail context is functionally equivalent to session hijacking: the injected script runs with the victim's full Zimbra session authority and can read mailbox contents, send mail as the victim, extract session tokens, modify mail filters (a classic persistence technique — injecting a filter that forwards all inbound mail to an attacker address), and pivot to the calendar and delegation flaws above.
3. Mailbox Delegation Weaknesses (2 vulnerabilities). Two flaws in the delegation model allow abuse of mailbox sharing/grant relationships. Delegation grants (the mechanism behind shared mailboxes and assistant access) can be manipulated to obtain or extend unauthorized access to another user's mailbox. Combined with XSS, this provides a clean persistence path: execute script as the victim, create or escalate a grant, retain access even after the victim's session ends or password rotates.
Attack Chain Summary (Defender's View)
- Attacker sends a crafted email from any external address — no ZCS account required
- At SMTP/LMTP delivery, Zimbra's calendar processor parses the malicious iCalendar content and writes forged entries to the victim's calendar — no user interaction
- Victim later opens or previews the message in the Classic or Modern web client; the stored XSS payload executes in the authenticated session
- Script performs actions as the victim: read/exfiltrate mail, create mail-forwarding filters, and abuse delegation grants to persist access
- Forged calendar entries (e.g., a fake meeting with a credential-harvesting link) provide a secondary social-engineering lure
Exploitation Status
Rapid7 is publishing this research in a staged four-part series specifically because the findings carry different patch and disclosure timelines. As of this writing, no CVE identifiers have been assigned in the published Part 2 material, and there is no confirmed public statement of in-the-wild exploitation of these specific nine issues. However, defenders should assume the window between disclosure and weaponization is short for this platform: Zimbra's webmail surface has repeatedly appeared in the CISA KEV catalog in past campaigns, and the technique class described here (delivery-time calendar injection, stored XSS in webmail) requires no authentication and minimal attacker infrastructure. Treat "theoretical" as "pre-exploitation" and act accordingly.
Detection & Response
The observables below target the three defensive chokepoints: the mail pipeline (calendar content at delivery), the web tier (requests consistent with payload delivery and delegation abuse), and post-exploitation behavior on the Zimbra host and within the mailbox (filter creation, grants, outbound exfiltration).
---
title: Zimbra Webmail Request Consistent with Stored XSS Payload Delivery
description: Detects inbound requests to Zimbra web client and service endpoints containing script-injection patterns associated with stored XSS payload delivery or trigger behavior, as described in the Rapid7 ZCS research on stored XSS affecting Classic and Modern clients.
logsource:
category: webserver
product: zimbra
detection:
selection_paths:
cs-uri|contains:
- '/service/soap'
- '/service/home'
- '/zimbra/'
- '/modern/'
selection_xss:
cs-uri-query|contains:
- '%3Cscript'
- '<script'
- 'javascript%3A'
- 'javascript:'
- 'onerror%3D'
- 'onerror='
- 'onload%3D'
- 'onload='
- '%3Cimg'
- '%3Csvg'
condition: selection_paths and selection_xss
falsepositives:
- Security scanning and authorized penetration testing
level: high
---
title: Malicious iCalendar Content in Inbound Message (Calendar Forgery Precursor)
description: Detects inbound email messages whose iCalendar/ICS MIME parts contain suspicious URI schemes or script content, consistent with the delivery-time calendar forgery and stored XSS techniques disclosed against Zimbra ZCS. Apply at the mail gateway, SEG, or MTA content-inspection layer.
logsource:
category: email
product: gateway
detection:
selection_ical:
AttachmentExtension|contains:
- '.ics'
MessageContentType|contains:
- 'text/calendar'
selection_suspicious:
AttachmentContent|contains:
- 'javascript:'
- 'data:text/html'
- '<script'
- 'onerror='
- 'ATTACH;FMTTYPE=text/html'
condition: selection_ical and selection_suspicious
falsepositives:
- Rare; legitimate calendar invites do not embed script schemes or HTML MIME attachments
level: high
---
title: Zimbra Mailbox Server Process Spawning Shell or Script Interpreter
description: Detects the Zimbra mailboxd (Java) or related service processes spawning shell or script interpreters, a strong post-exploitation indicator following web-client or service-layer compromise of a ZCS host.
logsource:
category: process_creation
product: linux
detection:
selection_parent:
ParentImage|contains:
- '/opt/zimbra/'
- 'java'
- 'mailboxd'
- 'zmmailboxd'
selection_child:
Image|endswith:
- '/sh'
- '/bash'
- '/dash'
- '/python'
- '/python3'
- '/perl'
- '/curl'
- '/wget'
- '/base64'
condition: selection_parent and selection_child
falsepositives:
- Zimbra maintenance scripts and backup jobs; baseline zmmailboxd-adjacent admin tooling and tune by command line
level: high
// Hunt: Zimbra syslog/mail logs for calendar-processing anomalies and delegation changes
// Ingest Zimbra /var/log/zimbra.log and /opt/zimbra/log/mailbox.log via Syslog/CEF into Sentinel.
// Part A: Deliveries containing suspicious iCalendar content processed by the calendar parser
Syslog
| where TimeGenerated > ago(7d)
| where Computer has_any ("zimbra", "mail", "mta")
| where SyslogMessage has_any ("text/calendar", "iCalendar", "VEVENT")
| where SyslogMessage has_any ("javascript:", "<script", "onerror=", "data:text/html", "ATTACH")
| project TimeGenerated, Computer, ProcessName, SyslogMessage
| order by TimeGenerated desc;
// Part B: Delegation grant changes (zimbra log records grant activity via soap/account ops)
Syslog
| where TimeGenerated > ago(7d)
| where SyslogMessage has_any ("GrantRight", "ModifyAccount", "zimbraPrefMailForwardingAddress", "zimbraMailForwardingAddress", "grantee", "CreateFilter", "ModifyFilterRules", "saveRules")
| project TimeGenerated, Computer, ProcessName, SyslogMessage
| order by TimeGenerated desc;
// Part C: Web requests to Zimbra service endpoints with XSS markers (via CEF/proxy ingestion)
CommonSecurityLog
| where TimeGenerated > ago(7d)
| where RequestURL has_any ("/service/soap", "/service/home", "/zimbra", "/modern")
| where RequestURL has_any ("%3Cscript", "<script", "javascript%3A", "javascript:", "onerror%3D", "onload%3D", "%3Csvg", "%3Cimg")
| summarize Hits = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, RequestURL
| order by Hits desc;
-- Hunt Zimbra host for post-exploitation artifacts: processes spawned under the zimbra
-- service account with network connections, and recently modified files in web roots
-- where injected content or webshells would land after stored-XSS-driven pivoting.
SELECT Pid, Name, Exe, Username, CommandLine, CreateTime,
netstat().Status AS ConnStatus,
netstat().RemoteAddr AS RemoteIP,
netstat().RemotePort AS RemotePort
FROM pslist()
WHERE Username =~ '(?i)zimbra'
AND Name =~ '(?i)(sh|bash|python|perl|curl|wget|nc|ncat)'
-- Separately, enumerate recently modified files in Zimbra web application directories
-- (new JSP files here are a classic post-webmail-compromise webshell indicator)
SELECT FullPath, Size, Mtime, Ctime
FROM glob(globs=['/opt/zimbra/jetty*/webapps/**/*.jsp',
'/opt/zimbra/jetty*/webapps/zimbra/**/*.jsp'])
WHERE Mtime > now() - 604800
ORDER BY Mtime DESC
#!/usr/bin/env bash
# Zimbra ZCS — Rapid7 Part 2 disclosure: version verification, delegation audit,
# and filter-audit script. Run as root on the mailbox server.
set -euo pipefail
REPORT="/root/zimbra_sec_audit_$(date +%Y%m%d_%H%M%S).txt"
echo "=== Zimbra Security Audit: $(date) ===" | tee "$REPORT"
# 1) Record current ZCS version — compare against the patched builds in the
# Zimbra security advisories covering the Rapid7 disclosure series.
echo -e "\n[+] Installed ZCS version:" | tee -a "$REPORT"
su - zimbra -c 'zmcontrol -v' 2>/dev/null | tee -a "$REPORT" || echo "zmcontrol not found" | tee -a "$REPORT"
# 2) Audit delegation grants — review every grant for unexpected grantees.
# Cross-reference against approved shared-mailbox/delegate assignments.
echo -e "\n[+] Mailbox delegation grants (review for unauthorized grantees):" | tee -a "$REPORT"
for acct in $(su - zimbra -c 'zmprov -l gaa'); do
grants=$(su - zimbra -c "zmprov grr account '$acct'" 2>/dev/null || true)
if [ -n "$grants" ]; then
echo "--- $acct ---" | tee -a "$REPORT"
echo "$grants" | tee -a "$REPORT"
fi
done
# 3) Audit mail filters for attacker persistence (forward-all rules are the
# classic stored-XSS persistence mechanism in webmail compromises).
echo -e "\n[+] Mail filter rules containing forwarding actions:" | tee -a "$REPORT"
for acct in $(su - zimbra -c 'zmprov -l gaa'); do
filters=$(su - zimbra -c "zmprov ga '$acct' zimbraMailSieveScript" 2>/dev/null || true)
if echo "$filters" | grep -Eqi 'redirect|fileinto.*external'; then
echo "--- $acct (REVIEW) ---" | tee -a "$REPORT"
echo "$filters" | grep -Ei 'redirect|fileinto' | tee -a "$REPORT"
fi
done
# 4) Flag recently created/modified JSP files under webapp roots (webshell check).
echo -e "\n[+] JSP files modified in the last 7 days:" | tee -a "$REPORT"
find /opt/zimbra -path '*webapps*' -name '*.jsp' -mtime -7 2>/dev/null | tee -a "$REPORT" || true
# 5) Recent outbound connections from zimbra-owned shell processes (hostile indicator).
echo -e "\n[+] Suspicious process tree (zimbra-owned interpreters):" | tee -a "$REPORT"
ps -u zimbra -o pid,ppid,comm,args | grep -Ei 'bash|sh |python|perl|curl|wget|nc ' | tee -a "$REPORT" || echo "none found" | tee -a "$REPORT"
echo -e "\n[+] Done. Report: $REPORT"
echo "[!] Next: patch to the ZCS release addressing the Rapid7 disclosure series via https://www.zimbra.com/support/security-center/ and review Part 2 guidance at https://www.rapid7.com/blog/post/ve-calendar-forgery-and-stored-xss-in-zimbra-part-2"
Remediation
-
Patch to the ZCS release(s) addressing the Rapid7 disclosure series. Zimbra's security advisories and patch releases are published through the Zimbra Security Center and the official blog. Rapid7 is staging its four-part series around Zimbra's patch timelines, so confirm which of the nine Part 2 issues are fixed in your target build and which remain pending — apply every available fix now and track the remainder. Subscribe to the Zimbra security mailing list so subsequent parts of this series don't catch you flat-footed.
-
If patching must wait, reduce exposure at the mail tier. Since the calendar forgery and XSS delivery vectors are email, your secure email gateway is a viable interim control point: quarantine or sanitize inbound messages whose
text/calendarparts or.icsattachments contain script schemes (javascript:,data:text/html,<script, event-handler attributes). Legitimate meeting invites do not carry script content — this is a very low-false-positive control. -
Restrict external surface area. ZCS webmail should sit behind a reverse proxy or WAF. If your user base permits, consider limiting webmail access to VPN/managed devices while unpatched, and enforce strong CSP headers at the proxy to blunt stored-XSS execution (CSP is a mitigation, not a fix — but it meaningfully raises the bar against inline script execution in the Classic client).
-
Audit for post-exploitation persistence now, not after patching. Patching closes the door; it does not evict an intruder. Review every mailbox's delegation grants (
zmprov grr), every account's Sieve/mail-filter rules for unauthorized redirects, and the webapp roots for recently modified JSP files (use the audit script above). Any grant or forwarding rule you cannot tie to an approved business purpose gets revoked and the account treated as compromised — full credential reset, session invalidation, and mailbox-content review. -
Harden MFA and session controls. Stored XSS in webmail defeats password-only defenses trivially. Enforce MFA on all ZCS accounts (and any SSO fronting it), shorten session lifetimes, and invalidate active sessions after patching to force re-authentication under the new code.
-
Monitor for Parts 3 and 4. Rapid7 has committed to two further installments covering additional findings from the 80+ vulnerability set. Assign an owner to track the series, map each disclosed issue to your environment, and pre-stage maintenance windows — the operational tempo of this disclosure is a sprint, not a marathon.
Related Resources
Security Arsenal Managed SOC Services AlertMonitor Platform Book a SOC Assessment soc-mdr Intel Hub
Is your security operations ready?
Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.