{"id":"CVE-2024-2217","state":"PUBLISHED","title":"Improper Access Control in gaizhenbiao/chuanhuchatgpt","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.","publishedAt":"2024-04-10T17:08:02.787Z","updatedAt":"2024-08-22T18:08:10.258Z","severity":{"score":7.5,"label":"High","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"@huntr_ai"},"assigner":"@huntr_ai","products":["gaizhenbiao gaizhenbiao/chuanhuchatgpt"],"affected":[{"vendor":"gaizhenbiao","product":"gaizhenbiao/chuanhuchatgpt","versions":[{"version":"unspecified","status":"affected","lessThan":"20240310","versionType":"custom"}]}],"references":["https://huntr.com/bounties/e4df74bf-b2ee-490f-a9c9-e5c8010b8b29","https://github.com/gaizhenbiao/chuanhuchatgpt/commit/c5ae3b5ae6b47259e0ce8730e0a47e85121f4a7d"],"weaknesses":["CWE-284"],"ingestedAt":"2026-10-29T20:07:21.467Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/2xxx/CVE-2024-2217.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-2217","state":"PUBLISHED","datePublished":"2024-04-10T17:08:02.787Z","dateUpdated":"2024-08-22T18:08:10.258Z","assignerShortName":"@huntr_ai","assignerOrgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateReserved":"2024-03-06T10:53:37.591Z"},"containers":{"cna":{"title":"Improper Access Control in gaizhenbiao/chuanhuchatgpt","descriptions":[{"lang":"en","value":"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":[{"vendor":"gaizhenbiao","product":"gaizhenbiao/chuanhuchatgpt","versions":[{"version":"unspecified","status":"affected","lessThan":"20240310","versionType":"custom"}]}],"references":[{"url":"https://huntr.com/bounties/e4df74bf-b2ee-490f-a9c9-e5c8010b8b29"},{"url":"https://github.com/gaizhenbiao/chuanhuchatgpt/commit/c5ae3b5ae6b47259e0ce8730e0a47e85121f4a7d"}],"metrics":[{"cvssV3_0":{"version":"3.0","attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","baseScore":7.5,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-284","type":"CWE","lang":"en","description":"CWE-284 Improper Access Control"}]}],"providerMetadata":{"shortName":"@huntr_ai","orgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateUpdated":"2024-04-16T11:10:32.139Z"},"source":{"advisory":"e4df74bf-b2ee-490f-a9c9-e5c8010b8b29","discovery":"EXTERNAL"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://huntr.com/bounties/e4df74bf-b2ee-490f-a9c9-e5c8010b8b29","tags":["x_transferred"]},{"url":"https://github.com/gaizhenbiao/chuanhuchatgpt/commit/c5ae3b5ae6b47259e0ce8730e0a47e85121f4a7d","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-01T19:03:39.126Z"}},{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"gaizhenbiao","product":"chuanhuchatgpt","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"20240310","versionType":"custom"}],"cpes":["cpe:2.3:a:gaizhenbiao:chuanhuchatgpt:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-04-15T17:50:49.987416Z","id":"CVE-2024-2217","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-22T18:08:10.258Z"}}]}}}