Channelz v2 QueryTrace のサービス妨害につながる不具合の修正
highgrpc.channelz.v2.Channelz に RPC を送信できる信頼できない呼び出し元は、サーバープロセスを停止させたり、ワーカースレッドをブロックしたりできました。QueryTrace で引数を検証するようになり、呼び出し元が RPC をキャンセルするとサーバーリソースが解放されます。
原文を表示
Your server is affected only if both of these are true: - Your gRPC C++ server activates Channelz with `grpc::channelz::experimental::InitChannelzService()`. - An untrusted caller can send RPCs to the Channelz v2 service (`grpc.channelz.v2.Channelz`). gRPC C++ did not correctly check the arguments and the state of the `QueryTrace` RPC. A remote caller can send `QueryTrace` requests that stop the server process or keep server worker threads blocked. This causes a denial of service (DoS). The fix checks the `QueryTrace` arguments and releases server resources when the caller cancels the RPC. - Do not call `grpc::channelz::experimental::InitChannelzService()` in production servers. - Block access to `grpc.channelz.v2.Channelz` from untrusted callers. Use authentication, an authorization policy, or a network rule.github.com/grpc/grpc/security/advisories/GHSA-mp3j-8555-cjpj
A denial of service (DoS) vulnerability was found and fixed in the gRPC C++ Channelz v2 service.github.com/grpc/grpc/security/advisories/GHSA-mp3j-8555-cjpj