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

Refactor SQL query to use parameterized values #3

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tfsjohan
Copy link
Owner

@tfsjohan tfsjohan commented Mar 17, 2024

This pull request includes changes that enhance the security of the software and update the registry. The most significant changes are the introduction of parameterized queries in the UpdatePerson method to prevent SQL injection attacks and an update to the values.xml file in the registry.

Security Enhancements:

  • Ghas/Data/Repository.cs: The UpdatePerson method has been modified to use parameterized queries. This helps prevent SQL injection attacks by ensuring that all input is treated as literal content and not part of the SQL command.

Registry Updates:

@tfsjohan tfsjohan linked an issue Mar 17, 2024 that may be closed by this pull request
1 task
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.

Fix code scanning alert - SQL query built from user-controlled sources
1 participant