Files
open-webui/backend/open_webui
Classic298andClaude Opus 4.7 9f20687680 fix: add knowledge_id access check in search_knowledge_files (BOLA) (#25113)
When called without attached model knowledge and given a caller-supplied knowledge_id, search_knowledge_files passed it straight to Knowledges.search_files_by_id, which does not enforce ownership on knowledge_id. An authenticated user who happened to know a target UUID could enumerate file metadata (filename, file id, KB id, KB name, updated_at) from any knowledge base, bypassing the AccessGrants permission model.

Mirror the same admin/owner/AccessGrants check the attached-KB branch already uses, matching the sibling query_knowledge_files function.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-28 16:23:49 -05:00
..
2026-05-21 16:25:25 +04:00
2026-05-21 15:29:49 +04:00
2026-05-21 16:44:36 +04:00
2026-05-28 16:19:35 -05:00
2026-05-12 03:04:35 +09:00
2026-05-09 02:38:08 +09:00
2026-05-21 16:56:56 +04:00
2026-05-20 00:22:27 +04:00
2026-05-21 16:56:56 +04:00