zstd is a supported compression method for HTTP content-encoding. However, lucki...
Harry Sintonen @harrysintonen@infosec.exchange
zstd is a supported compression method for HTTP content-encoding. However, luckily this is only for download direction only.
This means that there's no direct way to attack web servers, at least not using content-encoding (some services using HTTP could still have some custom zstd support for uploads, naturally, but this is not protocol standard).
One plausible scenario comes to mind with HTTP, however: HTTP proxies.
Malicious servers could attempt to exploit a proxy that decompresses HTTP zstd content-encoding. The decompressed data could then include information from the wrong context. If the proxy services multiple different users, information leaks between users could occur, or internal sensitive information of the proxy could be revealed. If the attacker knows that some interesting request is performed through this proxy, they could try to target these requests by flooding a lot of requests towards their malicious server, which would then be responding with a malicious zstd payload. With luck, they might be able to fetch the targeted information from the responses.