Skip to content

Conversation

@pixee-demo
Copy link

@pixee-demo pixee-demo bot commented Jan 23, 2025

✨✨✨

Remediation

This change fixes "Change this code to not construct SQL queries directly from user-controlled data." (id = javasecurity:S3649) identified by Sonar.

Details

SQL Injection is a security vulnerability that occurs when an application constructs SQL queries directly from user-controlled data, allowing attackers to execute arbitrary SQL code. This can lead to unauthorized access to the database, data leakage, or data manipulation. The fix involves replacing direct SQL query construction with parameterized queries, changing Statement to PreparedStatement, and securely setting parameter values to prevent SQL injection.

@sonarqubecloud
Copy link

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.

1 participant