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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

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
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