Exports with member consent include direct messages of deleted users' conversations
Summary
Summary
An organization export of public and private data with member consent treated every deleted user as having consented to the export of their private data. As a result, the export included direct messages from conversations that a deleted user had been part of, including messages writte...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| —Zulip server |
>= 11.0, <= 12.3→ 12.4 |
12.4 |
| —Zulip server |
= 13.0-rc1→ 13.0-rc2 |
13.0-rc2 |
Original description The description as published by the source.
Summary
An organization export of public and private data with member consent treated every deleted user as having consented to the export of their private data. As a result, the export included direct messages from conversations that a deleted user had been part of, including messages written by other participants who had not consented. Severity is limited: creating such an export requires administrator permissions, and only conversations involving a deleted user are affected. User deletion isn't available in the Zulip apps: on self-hosted servers, it requires running the manage.py delete_user management command, and on Zulip Cloud, it's done by Zulip's support team.
Details
The "Public and private data (with consent)" export includes the private data of users who have allowed administrators to export it. Since Zulip Server 11.0, it also treats mirror dummy accounts as consenting. Mirror dummies are placeholder accounts that represent users from data imported from other products, such as Slack, and they only contain data that was already accessible to the exporting organization.
When a user is deleted (as opposed to deactivated), their account is turned into a mirror dummy too, so get_consented_user_ids (zerver/lib/export.py) considered them to be consenting. Deleting a user also disables their export consent setting, but since mirror dummies are considered consenting regardless of that setting, this had no effect. The deleted account remains a participant…
Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV
References
- GITHUB_REPO_ADVISORY zulip/zulip