Gửi #807796: chatchat-space Langchain-Chatchat 0.3.1.3 Use of Insufficiently Random Values / CWE-330thông tin

tiêu đềchatchat-space Langchain-Chatchat 0.3.1.3 Use of Insufficiently Random Values / CWE-330
Mô tảA vulnerability was found in chatchat-space Langchain-Chatchat 0.3.1.3. Affected by this vulnerability is the function _get_file_id() of the file libs/chatchat-server/chatchat/server/api_server/openai_routes.py (lines 229–235) of the component File Identifier Generation. The manipulation leads to use of insufficiently random values. File identifiers are generated by base64-encoding the deterministic string {purpose}/{date}/{filename} (e.g., base64("assistants/2026-04-01/photo.png")) with no random component. An attacker who knows or can infer the upload date and filename can construct valid file_id values for any uploaded file without prior observation, enabling targeted read, overwrite, or deletion via the unauthenticated /v1/files/{file_id} endpoints. Common filenames combined with a 30-day date enumeration window require at most 120 requests to locate uploaded files. The attack may be initiated remotely. The exploit has been disclosed to the public. It is recommended to introduce a UUID4 random component into the file identifier generation logic.
Nguồn⚠️ https://github.com/chatchat-space/Langchain-Chatchat/issues/5464
Người dùng
 Dem00 (UID 84913)
Đệ trình19/04/2026 10:23 (cách đây 2 các tháng)
Kiểm duyệt05/05/2026 12:21 (16 days later)
Trạng tháiđược chấp nhận
Mục VulDB361126 [chatchat-space Langchain-Chatchat đến 0.3.1.3 Uploaded File openai_routes.py _get_file_id mã hóa yếu]
điểm20

Do you want to use VulDB in your project?

Use the official API to access entries easily!