Answer the question
In order to leave comments, you need to log in
What are the types of threats to a web server?
I'm a bit confused about the intricacies of attacking web servers.
As I understand it, the types of web server security threats can be divided into two groups - firstly, related to administration errors, and secondly, related to server software implementation errors.
But I don't understand a little, for example SQL-injection - in the textbooks they write that this is due to poor administration, such as there is not enough filtering of incoming data. BUT
When I implement an application, I write injection protection in the code itself - such as using parameterization
$stmt = $pdo->prepare('SELECT * FROM table WHERE column = :value');
$stmt->execute(array('value' => $parameter));
Answer the question
In order to leave comments, you need to log in
1. Network
2. Server
3. Web server
4. Web server application (php,etc.)
5. DB queries (mysql, etc.)
Perhaps the author of the book just lives in the old realities, where few people used PDO, it was fashionable to wrap parameters in mysql_real_escape_string, and they also tried to invent layers that caught SQL injections in parameters between the application and the client.
With proper use of SQL by the programmer, nothing special needs to be administered.
I would not begin to bury the book ahead of schedule on the basis of just one mistake, but all this situation should remind you of how important it is not to blindly trust authorities.
As I understand it, the types of web server security threats can be divided into two groups - firstly, related to administration errors, and secondly, related to server software implementation errors.I would single out at least three types of errors:
But I don't understand a little, for example SQL-injection - in the textbooks they write that this is due to poor administration, such as there is not enough filtering of incoming data.The input must be filtered by a CGI script. If it is a bug, no administration will help (except "do not install bug scripts on the server").
Or they write that the administration error is the permission to use the PUT and DELETE methods, which allow a remote user to edit and delete pages from the server.As a rule, the server runs as a user with minimal rights; and in the directory accessible to the server all files become inaccessible to record from this user. Although unnecessary methods should be banned.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question