DbGate: Unauthenticated Remote Code Execution via JSON Script Runner
dbgate
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| dbgate-serve npm |
|
|
Original description
DbGate is cross-platform database manager. In versions 7.1.8 and prior, DbGate's JSON script runner (`POST /runners/start`) allows remote code execution via code injection in the `functionName` parameter of JSON script `assign` commands. The `functionName` value is interpolated directly into dynamically generated JavaScript source code via string concatenation. The generated code is then executed in a forked Node.js child process. Version 7.1.9 contains a patch.
From the CVE record · GitHub_M