CVE-2024-7053: Open WebUI Session Fixation Vulnerability
Summary
CVE-2024-7053: Open WebUI Vulnerable to a Session Fixation Attack. Affects open-webui versions < 0.3.8. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Open WebUI is an open-source web application framework designed for building user interfaces. It allows developers to create interactive web applications with ease. The framework is widely used for its simplicity and flexibility. However, version 0.3.8 of Open WebUI has a critical vulnerability that exposes users to session fixation attacks, compromising the security of user sessions.
Vulnerability Detail
A vulnerability in 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.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, you can implement additional security measures such as validating session tokens on the server-side and ensuring that session cookies have the 'Secure' flag set. This can help mitigate the risk of session fixation attacks until the package is updated.
Conclusion
The session fixation vulnerability in Open WebUI version 0.3.8 poses a significant risk to user accounts, particularly for administrators. It is crucial to update to the latest version to protect against potential exploits. Additionally, using tools like Vulert can help monitor for vulnerabilities in real-time.
See every vulnerability recorded for open-webui →
FAQ
A session fixation attack is a type of security exploit where an attacker tricks a user into using a specific session ID, allowing the attacker to hijack the user's session.
You can check if your application is affected by using Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to test your application without signing up.
If exploited, this vulnerability can lead to unauthorized access to administrator accounts, potentially resulting in remote code execution and significant data breaches.
Yes, a patch is available in version 0.3.9 of Open WebUI. It is recommended to update to this version to mitigate the vulnerability.
If you cannot update immediately, implement additional security measures such as validating session tokens and ensuring session cookies are secure as a temporary workaround.
References
Related vulnerabilities
Recent vulnerabilities recorded for open-webui.