{"id":"PYSEC-2024-316","details":"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.","aliases":["CVE-2024-2217"],"modified":"2026-07-13T07:15:20.080849161Z","published":"2024-04-10T17:15:54.440Z","references":[{"type":"FIX","url":"https://github.com/gaizhenbiao/chuanhuchatgpt/commit/c5ae3b5ae6b47259e0ce8730e0a47e85121f4a7d"},{"type":"EVIDENCE","url":"https://huntr.com/bounties/e4df74bf-b2ee-490f-a9c9-e5c8010b8b29"}],"affected":[{"package":{"name":"chuanhuchatgpt","ecosystem":"PyPI","purl":"pkg:pypi/chuanhuchatgpt"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"20240121"}]}],"versions":["3.2.5"],"ecosystem_specific":{},"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/chuanhuchatgpt/PYSEC-2024-316.yaml"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}