You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@casbin.apache.org by "lulululu-debug (via GitHub)" <gi...@apache.org> on 2026/08/19 18:12:36 UTC
[PR] fix(channel): block private upstreams in base URL to prevent SSRF [casbin-gateway]
lulululu-debug opened a new pull request, #212:
URL: https://github.com/apache/casbin-gateway/pull/212
### Summary
validateBaseUrl now rejects channel base URLs whose host points at a loopback, unspecified, private (RFC 1918 / IPv6 ULA), link-local or broadcast address, or "localhost". This stops an authenticated user from using the channel probe (or a saved channel) to reach internal services or the 169.254.169.254 cloud metadata endpoint.
Operators that run a legitimate internal upstream can allow specific hosts, IP literals or CIDR blocks back in via the new allowedPrivateUpstreamHosts setting.
The check is applied on both the save and test paths, since both go through validateBaseUrl.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@casbin.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@casbin.apache.org
For additional commands, e-mail: commits-help@casbin.apache.org
Re: [PR] fix(channel): block private upstreams in base URL to prevent SSRF [casbin-gateway]
Posted by "hsluoyz (via GitHub)" <gi...@apache.org>.
hsluoyz closed pull request #212: fix(channel): block private upstreams in base URL to prevent SSRF
URL: https://github.com/apache/casbin-gateway/pull/212
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@casbin.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@casbin.apache.org
For additional commands, e-mail: commits-help@casbin.apache.org