Gửi #797099: go-kratos kratos 2.9.2 Unintended Route Exposure via DefaultServeMux Fallbackthông tin

tiêu đềgo-kratos kratos 2.9.2 Unintended Route Exposure via DefaultServeMux Fallback
Mô tảThe Kratos HTTP server (`transport/http/server.go`) sets `http.DefaultServeMux` as the fallback handler for both unmatched routes (`NotFoundHandler`) and disallowed methods (`MethodNotAllowedHandler`). In Go, `http.DefaultServeMux` is a global, shared ServeMux instance. Numerous standard library and third-party packages automatically register handlers on it during `init()`. The most notable example is `net/http/pprof`, which registers debug profiling endpoints. Kratos itself ships a pprof wrapper package (`transport/http/pprof`) that imports `net/http/pprof`.
Nguồn⚠️ https://github.com/go-kratos/kratos/issues/3810
Người dùng
 Yu_Bao (UID 89348)
Đệ trình04/04/2026 15:51 (cách đây 21 ngày)
Kiểm duyệt24/04/2026 21:43 (20 days later)
Trạng tháiđược chấp nhận
Mục VulDB359545 [go-kratos đến 2.9.2 http.DefaultServeMux Fallback transport/http/server.go NewServer nâng cao đặc quyền]
điểm20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!