Skip to content

fix: reject hostnames that resolve to non-public IPs - #1264

Open
BetterAndBetterII wants to merge 1 commit into
jina-ai:mainfrom
BetterAndBetterII:fix/ssrf-hostname-private-ip
Open

BetterAndBetterII wants to merge 1 commit into
jina-ai:mainfrom
BetterAndBetterII:fix/ssrf-hostname-private-ip

Conversation

@BetterAndBetterII

Copy link
Copy Markdown

Self-hosted deployments skipped the DNS-resolved IP check because it was gated on privateIpNotAcceptable (prod + GCLOUD_PROJECT). A hostname that resolves to a private, link-local, or unique-local address is now rejected the same way a literal non-public IP already is.

Fixes #1253

Self-hosted deployments skipped the DNS-resolved IP check because it was
gated on privateIpNotAcceptable (prod + GCLOUD_PROJECT). A hostname that
resolves to a private, link-local, or unique-local address is now rejected
the same way a literal non-public IP already is.

Fixes jina-ai#1253
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Server-Side Request Forgery via domain resolution bypass in self-hosted deployments

1 participant