Skip to content
Access control Disclosed report Beginner CVE-2024-7045

Open WebUI Has Improper Access Control Leading to Arbitrary Prompt Read

The application did not check whether a user was an administrator before allowing access to prompt management endpoints. An attacker could call the prompts API to list all prompts created by the admin, including their IDs, and then use those IDs to retrieve any prompt's content.

open-webui

Originally disclosed on huntr

In version v0.3.8 of open-webui/open-webui, improper access control vulnerabilities allow an attacker to view any prompts. The application does not verify whether the attacker is an administrator, allowing the attacker to directly call the /api/v1/prompts/ interface to retrieve all prompt information created by the admin, which includes the ID values. Subsequently, the attacker can exploit the /api/v1/prompts/command/{command_id} interface to obtain arbitrary prompt information.

From the GitHub Advisory Database (GHSA-c7fq-p62p-wvpc, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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 the API endpoints for listing and retrieving prompts lacked an authorization check to ensure the requester had administrator privileges.

Impact

An attacker could view any prompt created by the administrator, potentially exposing sensitive or private prompt content.

What the attacker needed

Access to the application; no admin privileges required

How it was found

  1. Call the /api/v1/prompts/ endpoint to retrieve all prompt information created by the admin, including ID values.
  2. Use the obtained ID with the /api/v1/prompts/command/{command_id} endpoint to fetch arbitrary prompt information.

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 a web app forgot to check if the person asking for data is allowed to see it. Anyone, even a normal user, could ask the server for a list of all prompts (text templates) that the administrator had created. The server gave back the list and also special ID numbers, which could then be used to fetch the full content of any prompt.

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.

More from open-webui

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.