tidb-dashboard
tidb-dashboard copied to clipboard
*: fix security issues
trafficstars
This PR fixes some security issues.
- Use of inherently dangerous function in
pkg/apiserver/logsearch/task.go. - Potential SQL injection in
pkg/apiserver/statement/queries.go. (In reality, only SQL digests are concatenated, so this won’t happen, but it’s there to prevent “potential changes”.) - External service interaction via DNS in
pkg/apiserver/logsearch. - Lack of rate limiting on unauthed API
/api/user/login.