Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CRE-47] Add safeurl to protect against SSRF #15885

Merged
merged 1 commit into from
Jan 13, 2025
Merged

Conversation

cedric-cordenier
Copy link
Contributor

@cedric-cordenier cedric-cordenier commented Jan 9, 2025

Use the safeurl client to protect against SSRF vulnerabilities.

IPs and CIDR ranges can be explicitly blocked via the Gateway spec, but by default the safeurl.Client (as configured by this PR) blocks:

  • access to all ports except 443 and 80
  • access to all schemes except http/https
  • access to loopback, current (0.0.0.0) and RFC1918 IPs.

I tested the above using a local node

@cedric-cordenier cedric-cordenier marked this pull request as ready for review January 9, 2025 17:44
@cedric-cordenier cedric-cordenier requested review from a team as code owners January 9, 2025 17:44
Copy link
Contributor

github-actions bot commented Jan 9, 2025

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

@cedric-cordenier cedric-cordenier requested a review from a team as a code owner January 9, 2025 17:56
@cedric-cordenier cedric-cordenier added this pull request to the merge queue Jan 13, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 13, 2025
@cedric-cordenier cedric-cordenier added this pull request to the merge queue Jan 13, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 13, 2025
@agparadiso agparadiso added this pull request to the merge queue Jan 13, 2025
Merged via the queue into develop with commit 98adf6d Jan 13, 2025
172 of 175 checks passed
@agparadiso agparadiso deleted the CRE-47-use-safeurl branch January 13, 2025 11:55
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.

3 participants