Описание
Open WebUI has an IDOR vulnerability in the update_message_by_id API endpoint
Summary
An IDOR vulnerability exists in the Channels feature of Open WebUI, allowing any channel member to modify messages sent by other members (including administrators) within the same channel. This vulnerability affects the latest version (v0.8.12) of Open WebUI.
Details
In the update_message_by_id function, for group or dm type channels, only the caller's membership in the channel is checked via the is_user_channel_member function, without verifying message ownership. This allows any channel member to modify messages sent by other members within the same channel. The problematic code is as follows (https://github.com/open-webui/open-webui/blob/main/backend/open_webui/routers/channels.py#L1355) :
Non-group/dm types include a check for the user ID, while the group/dm type clearly lacks this verification.
PoC
The Channels feature is disabled by default and can be enabled first through the admin interface.
Create a group type channel with members including users test1 and test2.
User test2 sends a message in the channel.
User test1 can directly modify the message that test2 just sent.
Messages sent by administrators can also be modified.
Impact
Malicious users can arbitrarily tamper with messages published by other users (including administrators), allowing them to disseminate false information.
Suggested Fix
Add a message ownership check in the group/dm branch of channels.py.
Пакеты
open-webui
< 0.9.5
0.9.5
Связанные уязвимости
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.9.5, an IDOR vulnerability exists in the Channels feature of Open WebUI, allowing any channel member to modify messages sent by other members (including administrators) within the same channel. In the update_message_by_id function, for group or dm type channels, only the caller's membership in the channel is checked via the is_user_channel_member function, without verifying message ownership. This allows any channel member to modify messages sent by other members within the same channel. This vulnerability is fixed in 0.9.5.
Уязвимость функции update_message_by_id() веб-интерфейса на базе искуственного интеллекта Open WebUI, позволяющая нарушителю получить доступ на чтение, изменение или удаление данных