CVE-2024-2217
JSON

7.5high

Improper Access Control in gaizhenbiao/chuanhuchatgpt

Severity
7.5high CVSS:3.0 by @huntr_ai
Exploit likelihood
0.78% (higher than 57% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
@huntr_ai
Also known as
PYSEC-2024-316

Description

gaizhenbiao/chuanhuchatgpt is vulnerable to improper access control, allowing unauthorized access to the `config.json` file. This vulnerability is present in both authenticated and unauthenticated versions of the application, enabling attackers to obtain sensitive information such as API keys (`openai_api_key`, `google_palm_api_key`, `xmchat_api_key`, etc.), configuration details, and user credentials. The issue stems from the application's handling of HTTP requests for the `config.json` file, which does not properly restrict access based on user authentication.

Affected

Product or packageVersionsReported by
gaizhenbiao gaizhenbiao/chuanhuchatgptfrom unspecified before 20240310CVE List
gaizhenbiao chuanhuchatgptbefore 20240310, 20240121CVE List, NVD
chuanhuchatgpt (PyPI)up to 20240121PyPA Advisory Database

All scores

@huntr_ai7.5high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
PyPA Advisory Database7.5high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-284

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

gaizhenbiao/chuanhuchatgpt is vulnerable to improper access control, allowing unauthorized access to the `config.json` file. This vulnerability is present in both authenticated and unauthenticated versions of the application, enabling attackers to obtain sensitive information such as API keys (`openai_api_key`, `google_palm_api_key`, `xmchat_api_key`, etc.), configuration details, and user credentials. The issue stems from the application's handling of HTTP requests for the `config.json` file, which does not properly restrict access based on user authentication.

NVD (es)

gaizhenbiao/chuanhuchatgpt es vulnerable a un control de acceso inadecuado, lo que permite el acceso no autorizado al archivo `config.json`. Esta vulnerabilidad está presente tanto en las versiones autenticadas como en las no autenticadas de la aplicación, lo que permite a los atacantes obtener información confidencial, como claves de API (`openai_api_key`, `google_palm_api_key`, `xmchat_api_key`, etc.), detalles de configuración y credenciales de usuario. El problema se origina en el manejo de solicitudes HTTP para el archivo `config.json` por parte de la aplicación, que no restringe el acceso de forma adecuada en función de la autenticación del usuario.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-2217 changed 2024-08-22CVE Terms of Use
NVDCVE-2024-2217 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2024-316 changed 2026-07-13CC-BY-4.0