Injections are ranked as the number one web application vulnerability by OWASP top 10. Injection flaws can be stimulated by an intruder sending malicious data to the interpreter. In this article I will be talking about the SQL Injections in particular.
How to Prevent
1.Use prepared statements / Parameterized queries
For this to be effective,
- A hardcoded constant should be used as the string in the query
- Any variable data from any origin should not be contained
2. Sanitization of user inputs in the server side.
References
https://medium.com/bugbountywriteup/out-of-band-oob-sql-injection-87b7c666548b
https://owasp.org/www-community/attacks/SQL_Injection
https://portswigger.net/web-security/sql-injection
Authors note
This is a short note to have a basic idea or refresh your memory on sql injection. In the future posts I will demonstrate some sql injection attacks. These facts ware gathered from above referred sites and please observe them for further information

No comments:
Post a Comment