fix(#5452): add optional ssrf check mechanism#5464
Open
SteKoe wants to merge 2 commits into
Open
Conversation
f5fc079 to
0e995c5
Compare
0e995c5 to
24010f7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces opt-in SSRF (Server-Side Request Forgery) protection to Spring Boot Admin Server, providing robust safeguards against attacks via the instance registration API. The feature is disabled by default to preserve compatibility, but can be enabled and configured to block registration of instances pointing to internal/private addresses or disallowed URL schemes. The protection is enforced both at registration and on each proxied request. The documentation has been updated to explain the risks, configuration options, and extension points.
Security: SSRF Protection
AdminServerProperties.SsrfProtectionProperties(spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/config/AdminServerProperties.java,spring-boot-admin-server/src/main/java/de/codecentric/boot/admin/server/utils/SsrfUrlValidator.java). [1] [2] [3]InstanceRegistry,InstancesProxyController). [1] [2] [3] [4]Configuration and Extension
Documentation
These changes significantly improve the security posture of Spring Boot Admin Server in environments where untrusted clients may register instances.
closes #5452