last change

This commit is contained in:
Georges-Antoine Assi
2026-03-07 10:23:22 -05:00
parent 0ff81bd2c6
commit 3fc8c68c49

View File

@@ -181,9 +181,7 @@ def validate_url_for_http_request(url: str, field_name: str = "URL") -> None:
# Try to resolve hostname as IP address
try:
# Handle IPv6 addresses in brackets
ip_str = hostname.strip("[]")
ip = ipaddress.ip_address(ip_str)
ip = ipaddress.ip_address(hostname)
# Block cloud metadata service IPs (AWS, GCP, Azure, etc.)
# AWS/Azure metadata service: 169.254.169.254