Solution: SQL injection attacks can be the most harmful common server attack. Every skilled developer can make mistakes that lead to SQL injection vulnerabilities. To minimize SQL injections you can do the following things.
- Use Stored Procedures.
- Use Parameterized SQL Commands.
- Sanatize the user input to replace characters in the input with special characters.
string output = input.Replace("*", "star");
No comments:
Post a Comment