ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 315 - PT0-002 discussion

Report
Export

A penetration tester managed to exploit a vulnerability using the following payload:

IF (1=1) WAIT FOR DELAY '0:0:15'

Which of the following actions would best mitigate this type ol attack?

A.
Encrypting passwords
Answers
A.
Encrypting passwords
B.
Parameterizing queries
Answers
B.
Parameterizing queries
C.
Encoding output
Answers
C.
Encoding output
D.
Sanitizing HTML
Answers
D.
Sanitizing HTML
Suggested answer: B

Explanation:

The payload used by the penetration tester is a type of blind SQL injection attack that delays the response of the database by 15 seconds if the condition is true. This can be used to extract information from the database by asking a series of true or false questions. To prevent this type of attack, the best practice is to use parameterized queries, which separate the user input from the SQL statement and prevent the injection of malicious code. Encrypting passwords, encoding output, and sanitizing HTML are also good security measures, but they do not directly address the SQL injection vulnerability.Reference:

The Official CompTIA PenTest+ Study Guide (Exam PT0-002), Chapter 5: Attacks and Exploits, Section 5.2: Perform Network Attacks, Subsection: SQL Injection, p. 235-237

Blind SQL Injection | OWASP Foundation, Description and Examples sections

Time-Based Blind SQL Injection Attacks, Introduction and Microsoft SQL Server sections

asked 02/10/2024
Miles Greenyer
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first