From ad60843fbf577eda80105e3916822d663aaefcb3 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 16 Sep 2026 02:14:02 -0400 Subject: fix: economy recovery double-refund/erased-liability/cap-drops, entity editor path traversal --- internal/admin/api_techs.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/admin/api_techs.go') diff --git a/internal/admin/api_techs.go b/internal/admin/api_techs.go index 293b1db..ba3288a 100644 --- a/internal/admin/api_techs.go +++ b/internal/admin/api_techs.go @@ -67,6 +67,10 @@ func (s *AdminServer) handleTechByID(w http.ResponseWriter, r *http.Request) { http.Error(w, `{"error":"missing id"}`, http.StatusBadRequest) return } + if !validEntityID(id) { + http.Error(w, `{"error":"invalid id"}`, http.StatusBadRequest) + return + } switch r.Method { case http.MethodGet: -- cgit v1.2.3