Frun1na opened a new issue, #4640: URL: https://github.com/apache/rocketmq-dashboard/issues/4640
### Bug Report **Describe the bug** `rmqctl`'s Studio API client (`rmqctl/internal/studio/client.go`, `Client.request`) reads the response body with an unbounded `io.ReadAll`. Every Studio response is a small JSON envelope, but nothing bounds what the server may stream back: a misbehaving or compromised Studio endpoint could send an arbitrarily large body and exhaust the CLI's memory before any JSON validation runs. **To Reproduce** 1. Point `rmqctl` at an HTTP endpoint that streams a multi-gigabyte response. 2. Run any command that calls the Studio API (e.g. `rmqctl topic list`). 3. The CLI buffers the entire body in memory before failing to parse it. **Expected behavior** The client should cap the accepted response body size and fail with a clear error once the cap is exceeded. **Additional context** Fix proposed in #4639 (64 MiB cap via `io.LimitReader`). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
