Home

Description

A Local File Inclusion (LFI) vulnerability exists in the gaizhenbiao/chuanhuchatgpt application, specifically within the functionality for uploading chat history. The vulnerability arises due to improper input validation when handling file paths during the chat history upload process. An attacker can exploit this vulnerability by intercepting requests and manipulating the 'name' parameter to specify arbitrary file paths. This allows the attacker to read sensitive files on the server, leading to information leakage, including API keys and private information. The issue affects version 20240310 of the application.

PUBLISHED Reserved 2024-04-29 | Published 2024-05-16 | Updated 2024-08-01 | Assigner @huntr_ai




HIGH: 7.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Problem types

CWE-20 Improper Input Validation

Product status

Any version
affected

References

huntr.com/bounties/19a16f8e-3d92-498f-abc9-8686005f067e

cve.org (CVE-2024-4321)

nvd.nist.gov (CVE-2024-4321)

Download JSON