Users could obtain uploaded files they shouldn't be able to access if they knew the file's URL
Summary
Summary
Any user with an account in any organization on a Zulip server could obtain a copy of a file uploaded through Zulip's resumable upload API, which the Zulip web and desktop apps use for all uploads, if they knew the file's URL. They did not need access to the message or conversation wh...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| —Zulip Server |
>= 10.0, < 12.5→ 12.5 |
12.5 |
| —Zulip Server |
>= 13.0, < 13.3→ 13.3 |
13.3 |
Original description The description as published by the source.
Summary
Any user with an account in any organization on a Zulip server could obtain a copy of a file uploaded through Zulip's resumable upload API, which the Zulip web and desktop apps use for all uploads, if they knew the file's URL. They did not need access to the message or conversation where the file was shared, and the file could belong to a different organization on the same server. Severity is moderate: it requires knowing the file's URL, which includes a random component and is normally only visible to people who can see a message linking to it.
Details
Since Zulip Server 10.0, the web and desktop apps upload files through tusd, which Zulip runs alongside the Zulip server. tusd supports creating a new upload by combining existing uploads, a feature Zulip does not use but had not disabled. Nothing checked that the uploads being combined belonged to the user making the request. As a result, a user could create an upload containing the contents of a file previously uploaded by someone else, and Zulip treated that upload as the user's own file.
Impact
A user could read the contents of a file uploaded by another user, without access to any message linking to it. To be affected, a file must have been:
- uploaded through the resumable upload API (
/api/v1/tus), on Zulip Server 10.0 or later, which includes all uploads from the Zulip web and desktop apps; and - linked or shared in a way that let the attacker learn its URL.
The attacker needs an account in s…
Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV
References
- GITHUB_REPO_ADVISORY zulip/zulip