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

Potential SQL injection via string-based query concatenation #1829

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

Potential SQL injection via string-based query concatenation #1829

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=4226131&groupId=6798&sidebarIssueTask=109779&sidebarTab=tasks

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

  • permify: internal/storage/postgres/gc/gc.go

==== TLDR ====
SQL injection might be possible in these locations, especially if the strings being concatenated are controlled via user input.

==== How to fix ====
If possible, rebuild the query to use prepared statements or an ORM. If that is not possible, make sure the user input is whitelisted or sanitized. As an added layer of protection, we also recommend installing a WAF that blocks SQL injection attacks.

@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