Skip to content
IDOR Disclosed report Beginner CVE-2024-7041

open-webui Insecure Direct Object Reference (IDOR) vulnerability

The API endpoint for updating memories lacks proper authorization checks, allowing an attacker to edit other users' memories by manipulating the memory ID. This could let an attacker alter or delete another user's stored data.

open-webui/open-webui

Originally disclosed on huntr

An Insecure Direct Object Reference (IDOR) vulnerability exists in open-webui/open-webui version v0.3.8. The vulnerability occurs in the API endpoint http://0.0.0.0:3000/api/v1/memories/{id}/update, where the decentralization design is flawed, allowing attackers to edit other users' memories without proper authorization.

From the GitHub Advisory Database (GHSA-xcvc-5hgv-phqg, 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 endpoint fails to verify that the authenticated user owns the memory being updated, relying only on the provided ID.

Impact

An attacker could edit other users' memories, potentially altering or deleting their data.

What the attacker needed

Access to the API endpoint; knowledge of a memory ID

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.

An IDOR (Insecure Direct Object Reference) happens when a website uses an identifier like a number in the URL to access a resource, but doesn't check if you're allowed to access that specific resource. Here, the memory update endpoint takes an ID and lets anyone change the memory with that ID, even if it belongs to someone else. This means an attacker could tamper with other users' saved information.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More from open-webui/open-webui

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.