CVE-2024-3402 Stored XSS vulnerability in gaizhenbiao/chuanhuchatgpt
Attackers can inject malicious JavaScript via unsanitized model output, leading to arbitrary code execution and potential browser hijacking in other users.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2024-3402?
CVE-2024-3402 is a medium-severity cross-site scripting vulnerability in gaizhenbiao/chuanhuchatgpt, published on 6 Jun 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
A stored Cross-Site Scripting (XSS) vulnerability existed in version (20240121) of gaizhenbiao/chuanhuchatgpt due to inadequate sanitization and validation of model output data. Despite user-input validation efforts, the application fails to properly sanitize or validate the output from the model, allowing for the injection and execution of malicious JavaScript code within the context of a user's browser. This vulnerability can lead to the execution of arbitrary JavaScript code in the context of other users' browsers, potentially resulting in the hijacking of victims' browsers.
Weakness: CWE-79
Which versions are affected by CVE-2024-3402?
It affects 1 product.
Products include Gaizhenbiao Chuanhuchatgpt.
How do I fix CVE-2024-3402?
No fix has been published for CVE-2024-3402 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-3402 being exploited?
There is no known exploitation of CVE-2024-3402 in the wild and no public exploit code.
Other vulnerabilities in gaizhenbiao/chuanhuchatgpt
- CVE-2024-3234 Path Traversal in gaizhenbiao/chuanhuchatgpt
- CVE-2024-5982 Path Traversal in gaizhenbiao/chuanhuchatgpt
- CVE-2024-6255 Path Traversal in gaizhenbiao/chuanhuchatgpt
- CVE-2024-8613 Improper Access Control in gaizhenbiao/chuanhuchatgpt
- CVE-2024-9216 Authentication Bypass in gaizhenbiao/ChuanhuChatGPT
Sources
Also known as GHSA-2j7h-rpqp-4v2f.