| パッケージ | 影響を受けるバージョン | 修正済みバージョン |
|---|---|---|
| github.com/imgproxy/imgproxy | < 3.27.2全バージョン | 3.27.2 |
| github.com/imgproxy/imgproxy/v2 | 全バージョン | |
| github.com/imgproxy/imgproxy/v3 | < 3.27.2 | 3.27.2 |
Imgproxy does not block the 0.0.0.0 address, even with IMGPROXY_ALLOW_LOOPBACK_SOURCE_ADDRESSES set to false. This can expose services on the local host.
imgproxy protects against SSRF against a loopback address with the following check (source):
if !config.AllowLoopbackSourceAddresses && ip.IsLoopback() {
return ErrSourceAddressNotAllowed
}
This check is insufficient to prevent accessing services on the local host, as services may receive traffic on 0.0.0.0. Go's IsLoopback (source) strictly follows the definition of loopback IPs beginning with 127. 0.0.0.0 is not blocked.
これらの製品をお使いですか?サイトをスキャンして、脆弱なバージョンが公開されていないか確認しましょう。
無料でサイトをスキャン