nerdexam
CompTIA

PT0-002 · Question #274

A penetration tester found several critical SQL injection vulnerabilities during an assessment of a client's system. The tester would like to suggest mitigation to the client as soon as possible…

The correct answer is D. Users' input validation E. Parameterized queries. SQL injection is a type of attack that exploits a vulnerability in a web application that allows an attacker to execute malicious SQL statements on a database server. SQL injection can result in data theft, data corruption, authentication bypass, or command execution. To…

Reporting and Communication

Question

A penetration tester found several critical SQL injection vulnerabilities during an assessment of a client's system. The tester would like to suggest mitigation to the client as soon as possible. Which of the following remediation techniques would be the BEST to recommend? (Choose two.)

Options

  • AClosing open services
  • BEncryption users' passwords
  • CRandomizing users' credentials
  • DUsers' input validation
  • EParameterized queries
  • FOutput encoding

How the community answered

(56 responses)
  • A
    13% (7)
  • B
    2% (1)
  • C
    2% (1)
  • D
    79% (44)
  • F
    5% (3)

Explanation

SQL injection is a type of attack that exploits a vulnerability in a web application that allows an attacker to execute malicious SQL statements on a database server. SQL injection can result in data theft, data corruption, authentication bypass, or command execution. To mitigate SQL injection vulnerabilities, the following remediation techniques are recommended: Users' input validation: This involves checking and sanitizing the user input before passing it to the database server. Input validation can prevent malicious or unexpected input from reaching the database server and causing harm. Input validation can be done by using whitelists, blacklists, regular expressions, or escaping mechanisms. Parameterized queries: This involves using placeholders or parameters for user input instead of concatenating it with the SQL statement. Parameterized queries can separate the user input from the SQL logic and prevent it from being interpreted as part of the SQL statement. Parameterized queries can be implemented by using prepared statements, stored procedures, or frameworks that support them. The other options are not relevant or effective remediation techniques for SQL injection vulnerabilities.

Topics

#SQL injection#Vulnerability remediation#Input validation#Parameterized queries

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice