Answer the question
In order to leave comments, you need to log in
What is the problem with SQL Injection?
I have read this article and there is a lot of focus on SQL Injection. But it is not clear to me why there are so many problems from injections, if the PHP (PDO) documentation says:
If the application uses exclusively prepared queries, the developer can be sure that no SQL injections can happen.Or, for example, Insufficient Authentication... if I understand correctly, then this problem is relevant if you have not protected any pages with the need for authentication. But who does that anyway ?
Answer the question
In order to leave comments, you need to log in
Development is engaged in an unpleasantly large number of stupid and negligent people. More only greedy and incompetent customers. Even in serious medical and banking systems, mistakes can be found that are monstrous in their simplicity and at the same time dangerous. And in web development, everything is much worse, according to optimistic estimates, 99% of sites are made according to the principle and it will do .
you didn’t read enough about injections, they come with a 2nd bottomName : ' + (SELECT TOP 1 password FROM users ) + '
SQL injections allow you to execute your own set of SQL queries, and this can be either deleting everything and it’s good if there is a fresh backup, or changing data (give someone admin rights, add an extra million to your account, etc.) to deal with this is needed at the time of requests and it is not so difficult
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question