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 package | Versions | Reported by |
|---|---|---|
| gaizhenbiao gaizhenbiao/chuanhuchatgpt | from unspecified before 20240310 | CVE List |
| gaizhenbiao chuanhuchatgpt | before 20240310, 20240121 | CVE List, NVD |
| chuanhuchatgpt (PyPI) | up to 20240121 | PyPA Advisory Database |
All scores
| @huntr_ai | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| PyPA Advisory Database | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
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
| https://huntr.com/bounties/e4df74bf-b2ee-490f-a9c9-e5c8010b8b29 | evidence, exploit, third-party-advisory | |
| https://github.com/gaizhenbiao/chuanhuchatgpt/commit/c5ae3b5ae6b47259e0ce8730e0a47e85121f4a7d | fix, patch | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-2217 changed 2024-08-22 | CVE Terms of Use |
| NVD | CVE-2024-2217 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2024-316 changed 2026-07-13 | CC-BY-4.0 |