Open WebUI lacks authentication for the `api/v1/utils/pdf` endpoint
The PDF generation endpoint in Open WebUI v0.3.10 had no authentication, so anyone could call it. An attacker could send a very large request to exhaust server resources and cause a denial of service, or generate PDFs without authorisation.
open-webui
Originally disclosed on huntr
In version v0.3.10 of open-webui/open-webui, the api/v1/utils/pdf endpoint lacks authentication mechanisms, allowing unauthenticated attackers to access the PDF generation service. This vulnerability can be exploited by sending a POST request with an excessively large payload, potentially leading to server resource exhaustion and denial of service (DoS). Additionally, unauthorized users can misuse the endpoint to generate PDFs without verification, resulting in service misuse and potential operational and financial impacts.
From the GitHub Advisory Database (GHSA-9vf8-xgwm-97r8, 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 the PDF generation route was registered without any authentication or authorisation check, and without a limit on request size.
Impact
An unauthenticated attacker could exhaust server resources and cause a denial of service, and could also generate PDFs without verification, leading to service misuse and possible operational and financial costs.
What the attacker needed
No authentication needed; network access to the endpoint
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 endpoint is a URL that a web application exposes so other software can ask it to do something. Here, the endpoint that turns content into a PDF file could be used by anyone, without logging in. That let people either flood it with huge requests until the server struggled, or use it freely for their own PDF generation.
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.