Stored XSS via unsanitized chat-history loading
Published Jul 11, 2024 · Updated Aug 1, 2024
Stored XSS in GaiZhenbiao ChuanhuChatGPT 20240410 allows remote attackers to run JavaScript through an uploaded chat-history file. The load_chat_history method accepted saved_json chatbot entries without stripping HTML tags before returning them to the Gradio interface. Execution requires a victim to upload the crafted file; the script then runs in that browser context and can expose user or session data.
Summary
What happened
Stored XSS in GaiZhenbiao ChuanhuChatGPT 20240410 allows remote attackers to run JavaScript through an uploaded chat-history file. The load_chat_history method accepted saved_json chatbot entries without stripping HTML tags before returning them to the Gradio interface. Execution requires a victim to upload the crafted file; the script then runs in that browser context and can expose user or session data.
The record
- CVE
- CVE-2024-6035
- Published
- Jul 11, 2024
- Updated
- Aug 1, 2024
- Vendor
- GaiZhenbiao
- Product
- ChuanhuChatGPT
- Classifications
- CWE-79, T1204.002
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jul 11, 2024CVE publishedPublication date reported by the CVE source.
- Aug 1, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=20240410
- Affected versionversion=unspecified <=latest
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- huntr chat-history stored-XSS proof of conceptproof of concept · unverified
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo