imgproxy is vulnerable to SSRF against 0.0.0.0
Moderate severity
GitHub Reviewed
Published
Jan 27, 2025
in
imgproxy/imgproxy
•
Updated Jan 27, 2025
Description
Published by the National Vulnerability Database
Jan 27, 2025
Published to the GitHub Advisory Database
Jan 27, 2025
Reviewed
Jan 27, 2025
Last updated
Jan 27, 2025
Summary
Imgproxy does not block the
0.0.0.0
address, even withIMGPROXY_ALLOW_LOOPBACK_SOURCE_ADDRESSES
set to false. This can expose services on the local host.Details
imgproxy protects against SSRF against a loopback address with the following check (source):
This check is insufficient to prevent accessing services on the local host, as services may receive traffic on
0.0.0.0
. Go'sIsLoopback
(source) strictly follows the definition of loopback IPs beginning with127
.0.0.0.0
is not blocked.References