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

HTTP request might enable SSRF attack #1827

Open
tolgaOzen opened this issue Dec 6, 2024 — with Aikido Issues · 0 comments
Open

HTTP request might enable SSRF attack #1827

tolgaOzen opened this issue Dec 6, 2024 — with Aikido Issues · 0 comments
Labels

Comments

Copy link
Member

Find more live information in Aikido here: https://app.aikido.dev/queue?sidebarIssue=4226129&groupId=6798&sidebarIssueTask=108074&sidebarTab=tasks

==== Scope ====
This task includes issues in the following code repository:

  • permify:
    internal/authn/oidc/authn.go
    pkg/schema/loader.go

==== TLDR ====
If an attacker can control the URL input leading into this http request, the attack might be able to performn a SSRF attack. This kind of attack is even more dangerous is the application returns the result of the URL fetch to the user. It can serve as an initial access point for an attacker for stealing credentials in the cloud.

==== How to fix ====
If possible, only allow requests to whitelisted domains. If not, consult the article linked above to learn about other mitigating techniques such as disabling redirects, blocking private IPs and making sure private services have internal authentication. If you return data coming from the request to the user, validate the data before returning it to make sure you don't return random data.

@tolgaOzen tolgaOzen added the high label Dec 6, 2024 — with Aikido Issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant