Open WebUI Allows Arbitrary File Reading and Deletion
The application did not check whether a user was an administrator before allowing access to file management endpoints. An attacker could list all uploaded files, retrieve information about any file, and delete any file.
open-webui/open-webui
Originally disclosed on huntr
An improper access control vulnerability in open-webui/open-webui v0.3.8 allows attackers to view and delete any files. The application does not verify whether the attacker is an administrator, allowing the attacker to directly call the GET /api/v1/files/ interface to retrieve information on all files uploaded by users, which includes the ID values. The attacker can then use the GET /api/v1/files/{file_id} interface to obtain information on any file and the DELETE /api/v1/files/{file_id} interface to delete any file.
From the GitHub Advisory Database (GHSA-jrhc-9qg9-4qfq, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely missing authorization checks on the file management API endpoints, allowing any authenticated user to perform administrative actions.
Impact
An attacker could view information about any uploaded file and delete any file, potentially causing data loss or exposure.
What the attacker needed
Access to the application
How it was found
- Call the file listing endpoint to get IDs of all uploaded files.
- Use a file ID to retrieve information about any file.
- Use a file ID to delete any file.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This is a case where the app forgot to check if the person asking is allowed to do something. Anyone could ask the app to show a list of all uploaded files, see details about any file, or even delete files, without being an admin. It is like a hotel where any guest can open any room door and take or destroy things.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.