Description
Chat2DB before 5.3.0 contains an insecure direct object reference vulnerability in the GET /api/connection/datasource/{id} endpoint. The handler calls dataSourceService.queryExistent(id, ...) without an ownership check and returns the decrypted password field, allowing any authenticated non-admin user to enumerate datasource IDs and read the plaintext database credentials of datasources owned by other users.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| OtterMind | Chat2DB | < 5.3.0 | 5.3.0 |
References
- Researcher Disclosure technical-description issue-tracking
- Chat2DB 5.3.0 Release Notes release-notes
- https://www.vulncheck.com/advisories/forgecode-arbitrary-code-execution-via-unvetted-mcp-json-in-untrusted-repository third-party-advisory