Exam GSEC All QuestionsBrowse all questions from this exam
Question 52

While using Wire shark to investigate complaints of users being unable to login to a web application, you come across an HTTP POST submitted through your web application. The contents of the POST are listed below. Based on what you see below, which of the following would you recommend to prevent future damage to your database?

    Correct Answer: B

    To prevent future damage to the database, sanitizing user inputs to prevent injection attacks is the most appropriate recommendation. The contents of the HTTP POST indicate an SQL injection attack attempt, where the 'password' field contains a command to drop a table in the database. This type of attack exploits vulnerabilities where user inputs are not properly sanitized, allowing malicious users to execute arbitrary SQL commands. By ensuring that all user inputs are sanitized, you can prevent such injection attacks and maintain the integrity and security of your database.

Discussion
eromsOption: B

Sanitize user inputs to prevent injection attacks

krepwwnhtptnidumzh

100% B