Skip to content
Medium 4.3

Guests in a channel's subscription permissions could download its files without being subscribed

GHSA-v36w-q3m9-2xm2 First seen on SecPulse

Summary

Summary

A guest user who was included in a channel's Who can subscribe to this channel or Who can subscribe anyone to this channel permission could download files uploaded to that channel without being subscribed to it. Guests are never meant to get channel access from these permissio...

Affected packages

PackageAffected → Fixed
—Zulip server
>= 10.3, < 12.4→ 12.4
—Zulip server
= 13.0-rc1→ 13.0-rc2
Original description The description as published by the source.

Summary

A guest user who was included in a channel's Who can subscribe to this channel or Who can subscribe anyone to this channel permission could download files uploaded to that channel without being subscribed to it. Guests are never meant to get channel access from these permissions, and they can't read the channel's messages. Severity is low: both permissions are set to nobody by default, and the guest must already know the file's URL, which can't be guessed.

Details

Users in a channel's Who can subscribe to this channel or Who can subscribe anyone to this channel permission are considered to have content access to the channel: they can read its messages without subscribing. Guests are excluded from this: these permissions never give guests access to a channel. Message access enforces this exclusion in has_channel_content_access_helper (zerver/lib/message.py).

When Zulip Server 10.3 extended file access to users with content access, validate_attachment_request (zerver/lib/attachments.py) did not apply the same exclusion. A guest in one of these permissions, directly or through a user group, was granted access to files from that channel's messages. For channels with protected history, this only applies to files from messages the guest received while subscribed.

Impact

A guest could download files shared in a channel they are not subscribed to, if they know the file's URL. In practice, this lets a guest who was removed from a chann…

Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details