open-webui/open-webui
cpe:2.3:a:openwebui:open_webui:*:*:*:*:*:*:*
- 0.3.8
A vulnerability in Open-WebUI version 0.3.8 allows attackers to bypass access controls and view or delete any files. The issue arises because the application does not verify if a user is an administrator. This flaw enables attackers to exploit the GET /api/v1/files/ endpoint to list all user-uploaded files, including their ID values. Subsequently, they can use the GET /api/v1/files/{file_id} endpoint to access information about specific files and the DELETE /api/v1/files/{file_id} endpoint to remove any file.
Exploitation of this vulnerability allows for unauthorized viewing and deletion of files, compromising the integrity of the application's file management system.
To reproduce this vulnerability, send a GET request to the /api/v1/files/ endpoint. This request can be made without administrative privileges, and it will return a list of all files uploaded by users, including their ID values. Once the file IDs are obtained, they can be used to access or delete specific files by sending GET or DELETE requests to the /api/v1/files/{file_id} endpoint, respectively.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.