Browse / Improper Output Handling / CVE-2024-7053
Open WebUI Vulnerable to a Session Fixation Attack
- Class
- Improper Output Handling (filed by a model that read the advisory)
- Technique
- Data exfiltration
- Also involves
- Sensitive Data Disclosure
- Affected
- open-webui (PyPI)
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
How it works, in short
Markdown images in chat content make an admin's browser request an attacker URL, and session cookies lacking Secure and SameSite protections are sent with it. (Our summary, written by a model. The source text is below.)
Details
A vulnerability in open-webui/open-webui version 0.3.8 allows an attacker with a user-level account to perform a session fixation attack. The session cookie for all users is set with the default SameSite=Lax and does not have the Secure flag enabled, allowing the session cookie to be sent over HTTP to a cross-origin domain. An attacker can exploit this by embedding a malicious markdown image in a chat, which, when viewed by an administrator, sends the admin's session cookie to the attacker's server. This can lead to a stealthy administrator account takeover, potentially resulting in remote code execution (RCE) due to the elevated privileges of administrator accounts.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-7053
- https://github.com/open-webui/open-webui
- https://huntr.com/bounties/947f8191-0abf-4adf-b7c4-d4c19683aba2
Source: GitHub Advisory Database, used under CC BY 4.0.