Skip to content
A detailed explainer is available in Japanese. Read the Japanese explainer
Critical 9.9

Zulip Serverでファイル読み書き削除の脆弱性、修正版あり

GHSA-f7qf-999g-f6h9 First seen on SecPulse

Summary

ローカルディスクにアップロードを保存するZulip Server 10.0〜13.2で、アカウントを持つ利用者がサーバー上のファイルを読み書き・削除できる脆弱性です。修正版へ更新し、侵害の跡がないかも調べてください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

ローカルディスクにアップロードを保存するZulip Server 10.0〜13.2で、アカウントを持つ利用者がサーバー上のファイルを読み書き・削除できる脆弱性です。修正版へ更新し、侵害の跡がないかも調べてください。

Affected packages

PackageAffected → Fixed
—Zulip Server
>= 10.0, < 12.5→ 12.5
—Zulip Server
>= 13.0, < 13.3→ 13.3
Original description The description as published by the source.

Summary

On Zulip servers that store uploaded files on local disk, which is the default for self-hosted installations, a user could upload a malicious file to make Zulip's upload server (tusd) treat it as tusd's own record of an upload. The user could then make tusd read, append to, or delete arbitrary files that the zulip system user can access. This exposes the server's secrets, and allows running code as the zulip user. Severity is critical: it only requires a user account in any organization on the server. Servers using the S3 storage backend are not affected.

Details

Since Zulip Server 10.0, the web app uploads files through tusd, which Zulip runs alongside the Zulip server. With the local storage backend, tusd keeps its own internal records about each upload in the same directory where Zulip stores uploaded files, and trusts the information in those records, including where an upload's data is stored. Zulip did not prevent an uploaded file from being mistaken for one of these records.

Impact

A user with an account in any organization on the server could:

  • read files that the zulip user can read, including the server's secrets;
  • append to files that the zulip user can write, which can be used to run arbitrary code as the zulip user;
  • delete files that the zulip user can delete.

This allows a full compromise of the Zulip server, including the data of all of its organizations.

Only servers that store uploaded files on local disk (`LOCAL_UP…

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