Vitess allows HTML injection in /debug/querylogz & /debug/env
vitessio vitess
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| vitess.io/vitess Go |
|
|
vitessio vitess
| Product | Affected | Fixed in |
|---|---|---|
| vitess.io/vitess Go |
|
|
Vitess is a database clustering system for horizontal scaling of MySQL. The /debug/querylogz and /debug/env pages for vtgate and vttablet do not properly escape user input. The result is that queries executed by Vitess can write HTML into the monitoring page at will. These pages are rendered using text/template instead of rendering with a proper HTML templating engine. This vulnerability is fixed in 21.0.1, 20.0.4, and 19.0.8.
From the CVE record · GitHub_M
The /debug/querylogz and /debug/env pages in vtgate and vttablet do not properly escape user input. Queries executed by Vitess can place HTML on these monitoring pages, which is exposed when someone views them. The input does not specify the attacker's access requirements.
Engineers running Vitess or the Go package vitess.io/vitess should check installations below 0.19.8, from 0.20.0-rc1 to below 0.20.4, or from 0.21.0-rc1 to below 0.21.1.