Skip to content

Validate proxy baseUrl against server security policy - #861

Open
lirenjie95 wants to merge 4 commits into
eclipse-symphony:mainfrom
lirenjie95:fix/proxy-base-url-validation
Open

Validate proxy baseUrl against server security policy#861
lirenjie95 wants to merge 4 commits into
eclipse-symphony:mainfrom
lirenjie95:fix/proxy-base-url-validation

Conversation

@lirenjie95

Copy link
Copy Markdown
Contributor

Fixes #849

Validate the proxy stage provider's baseUrl before issuing any request:

  • Scheme must be http or https.
  • Host is validated against the server-wide SecurityPolicy (allowedIPRanges / allowListExclusive), reusing the existing SSRF helpers introduced for script downloads. By default loopback, link-local, and private addresses are rejected.

This is a defense-in-depth measure aligned with the discussion in the issue.

Note: redirect re-validation is not included in this change to avoid broad modifications to the shared callRestAPI/auth path; it can be added as a follow-up if needed.

@lirenjie95
lirenjie95 requested a review from Haishi2016 as a code owner August 19, 2026 00:54
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.

HTTP proxy stage provider: user-controlled baseUrl enables SSRF

1 participant