# Stored account state ## Persistent mailbox delegation Use the [stored `loginAs` hunt](CVE-2026-50054.md) for both [CVE-2026-50054](../vulnerabilities/CVE-2026-50054.md) and [CVE-2026-137843](../vulnerabilities/CVE-2026-137843.md). It searches LDAP's parsed `zimbraACE` values, so changing SOAP namespaces, JSON escapes or batch formatting does not hide a grant that is still present. ## Sieve forwarding [CVE-2026-50055](../vulnerabilities/CVE-2026-50055.md) stores the forwarding action in the incoming or outgoing Sieve script. Modern's filter editor may omit that action, so inspect the saved script directly. As the Unix `zimbra` account: ```sh /opt/zimbra/bin/zmprov -l ga victim@lab.local zimbraMailSieveScript zimbraMailOutgoingSieveScript ``` For an account-wide search, retain both attributes for every account: ```sh /opt/zimbra/bin/zmprov -l gaa | while IFS= read -r account; do /opt/zimbra/bin/zmprov -l ga "$account" zimbraMailSieveScript zimbraMailOutgoingSieveScript done > account-sieve-scripts.txt ``` Review `notify` actions, their destination, and interpolation of `${body}` or other message fields. A legitimate notification rule can also use `notify`; compare it with the account's forwarding policy and expected recipients. Zimbra documents the same [LDAP-based filter collection method](https://wiki.zimbra.com/wiki/Steps_to_get_filters_of_all_accounts). The parsed SOAP log gives the time and account context of a change: ```text 2026-12-01 15:11:51,220 INFO [qtp22600334-485:https://192.168.80.136/service/soap] [name=attacker@lab.local;mid=4;ip=192.168.80.136;port=57188;soapId=abdd4bb;] soap - ModifyFilterRulesRequest elapsed=6 ``` ```sh python3 detections/hunt_logs.py --kind soap evidence/mailbox.log ``` Both `ModifyFilterRulesRequest` and `ModifyOutgoingFilterRulesRequest` are included. Their log entries also cover legitimate changes and failed requests. The saved script establishes what is installed now; a removed rule requires older LDAP/configuration evidence or the forwarded messages and MTA logs. ## OAuth datasources For [CVE-2026-93631](../vulnerabilities/CVE-2026-93631.md), collect the affected account's datasource configuration before removing an unexpected link: ```sh /opt/zimbra/bin/zmprov -l gds victim@lab.local > victim-datasources.txt ``` The [provisioning command](https://wiki.zimbra.com/wiki/Zmprov) returns the datasource identity and configuration. Review unexpected OAuth contact and CalDAV sources, the provider account, creation context, mapped folder and subsequent sync activity. The full output may include provider credentials or tokens, so retain it with the other account evidence rather than copying it into a public incident report. The web hunt reports the callback path, recognized datasource type and whether a JWT field was present. It does not reproduce the authorization code, relay value or JWT: ```sh python3 detections/hunt_logs.py --kind web evidence/nginx.access.log ``` A callback alone does not prove that the provider accepted the code. A newly created datasource and its sync activity are stronger evidence. For a CSS-triggered callback, retain the original email and inspect its CSS resource URLs as described in [email content](mail_and_calendar.md#css-and-same-origin-forms). ## Application passwords and two-factor settings [CVE-2026-137844](../vulnerabilities/CVE-2026-137844.md) can create an application password in another account and alter its two-factor state. The SOAP hunt includes application-password creation, enumeration and revocation, scratch-code operations, and two-factor disabling. Compare unexpected entries with the account's application-password list and approved clients. Zimbra documents the [application-passcode and trusted-device controls](https://wiki.zimbra.com/wiki/Zimbra_Two-factor_authentication). [CVE-2026-137845](../vulnerabilities/CVE-2026-137845.md) exchanges an app password for a reusable web session using a crafted HTTP Host authority. If the original request target/Host is retained, inspect `AuthRequest` traffic with the MTA authentication port in that authority, then correlate it with successful ordinary web/SOAP activity for the account. A normal `AuthRequest` operation line does not reveal which password type was supplied. Preserve the relevant authentication and proxy records before revoking suspect credentials and sessions. ## Forged shared-file records and quota For [CVE-2026-93634](../vulnerabilities/CVE-2026-93634.md), review `FileSharedWithMeRequest` activity and the target mailbox's **Files shared with me** folder. Compare each suspicious row's source account, source item, owner and permissions with the actual document and its ACL. A displayed owner name is not evidence that the owner created the share. The retained exploit log identifies both the selected mailbox and the acting account: ```text 2026-12-01 11:11:20,420 INFO [qtp22600334-356:https://mail.lab.local/service/soap/FileSharedWithMeRequest] [name=victim@lab.local;aname=attacker@lab.local;mid=2;ip=192.168.80.136;port=49960;soapId=abdd327;] soap - FileSharedWithMeRequest elapsed=7 ``` For [CVE-2026-115786](../vulnerabilities/CVE-2026-115786.md), repeated legitimate sharing/revocation can leave quota charged after the row disappears. Compare the mailbox's reported quota usage with its retained contents and share/revoke history. Preserve the current usage and relevant records before a mailbox-size recalculation, which changes that evidence. The [quota chain](../chains/shared_file_quota_exhaustion.md) explains why an empty shared-files folder does not rule out this attack. ## Impersonated mail For [CVE-2026-73571](../vulnerabilities/CVE-2026-73571.md) and [CVE-2026-137846](../vulnerabilities/CVE-2026-137846.md), correlate `SaveDraftRequest` and `SendMsgRequest` with the authenticated account, target mailbox, message ID, MTA queue IDs and retained Sent/recipient copies. The normal SOAP line does not include the selected sender or prove abuse. The impersonated user's Sent copy can itself have been planted, so it cannot independently establish authorship. Preserve the full message headers and use the MTA's queue trail to follow local and external delivery.