Description
DbGate before 7.3.3 contains a missing authorization vulnerability that allows connection-restricted authenticated users to bypass LOGIN_PERMISSIONS because test() and save() never call testConnectionPermission. Attackers can submit arbitrary connection definitions to POST /connections/test to probe internal database hosts, or to /connections/save to overwrite stored connections.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
dbgate dbgate
Default version status: unaffected
0 to < 7.3.3affected
pkg:github/dbgate/dbgateReferences
- https://github.com/dbgate/dbgate/issues/1601 ↗
- https://github.com/dbgate/dbgate ↗
- https://github.com/dbgate/dbgate/commit/9166a987bfec ↗
- https://github.com/dbgate/dbgate/blob/v7.3.2/packages/api/src/controllers/connections.js#L227-L250 ↗
- https://github.com/dbgate/dbgate/blob/v7.3.2/packages/api/src/controllers/connections.js#L372-L390 ↗
- https://www.vulncheck.com/advisories/dbgate-before-7.3.3-missing-authorization-via-connections-test-and-connections-save ↗