Skip to content
OpenAdvisories
High · 7.5 CVE-2024-2217 EUVD-2024-27173GHSA-5j77-g9r7-hpx3PYSEC-2024-316

Improper Access Control in gaizhenbiao/chuanhuchatgpt

Published Apr 10, 2024 · Updated Aug 22, 2024 · Assigned by @huntr_ai

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 products

VendorProductAffectedFixed
gaizhenbiao gaizhenbiao/chuanhuchatgpt unspecified – < 20240310 20240310

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI chuanhuchatgpt <= 20240121 — PYSEC-2024-316

References