Open WebUI Vulnerable to Cross-Site Scripting (XSS) via Chat File Upload
A stored cross-site scripting flaw existed in the chat file upload feature of Open WebUI version 0.3.8. An attacker could inject malicious content into a file, and when a victim accessed it via a URL or shared chat, JavaScript would execute in the victim's browser.
open-webui
Originally disclosed on huntr
A Stored Cross-Site Scripting (XSS) vulnerability exists in the chat file upload functionality of open-webui/open-webui version 0.3.8. An attacker can inject malicious content into a file, which, when accessed by a victim through a URL or shared chat, executes JavaScript in the victim's browser. This can lead to user data theft, session hijacking, malware distribution, and phishing attacks.
From the GitHub Advisory Database (GHSA-j274-m559-cj4j, 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 application served uploaded chat files without sanitising or restricting their content, so browser-executable markup ran in the site's origin.
Impact
This could lead to theft of user data, session hijacking, malware distribution and phishing attacks.
What the attacker needed
Upload a crafted file to a chat; victim opens the file URL or shared chat
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.
Cross-site scripting (XSS) is when a website shows content that includes hidden code, and a visitor's browser runs that code as if the site itself had written it. Here, a file uploaded to a chat could contain such hidden code, and anyone who opened the file or a shared chat containing it would run the code without knowing. That lets the attacker act as the victim inside the site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.