Description
DbGate fails to validate jslid parameters in the jsldata controller, allowing authenticated users to read and write arbitrary files via file:// scheme resolution. Attackers can exploit getJslFileName() to bypass directory containment and access sensitive files including encrypted database credentials stored in connections configuration.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| dbgate | dbgate | ≤ 7.2.6 | — |
References
- GitHub Issue #1502 issue-tracking
- https://github.com/dbgate/dbgate product
- getJslFileName.js at v7.2.6 technical-description
- jsldata.js at v7.2.6 technical-description
- VulnCheck Advisory: DbGate through 7.2.6 Arbitrary File Read and Write via file:// jslid third-party-advisory