nerdexam
EC-CouncilEC-Council

312-50V13 · Question #254

312-50V13 Question #254: Real Exam Question with Answer & Explanation

Sign in or unlock 312-50V13 to reveal the answer and full explanation for question #254. The question stem and answer options stay visible for context.

Submitted by dimitri_ru· Mar 6, 2026SQL Injection

Question

Suppose that you test an application for the SQL injection vulnerability. You know that the backend database is based on Microsoft SQL Server. In the login/password form, you enter the following credentials: Based on the above credentials, which of the following SQL commands are you expecting to be executed by the server, if there is indeed an SQL injection vulnerability?

Options

  • Aselect * from Users where UserName = 'attack'' or 1=1 -- and UserPassword = '123456'
  • Bselect * from Users where UserName = 'attack' or 1=1 -- and UserPassword = '123456'
  • Cselect * from Users where UserName = 'attack or 1=1 -- and UserPassword = '123456'
  • Dselect * from Users where UserName = 'attack' or 1=1 --' and UserPassword = '123456'

Unlock 312-50V13 to see the answer

You've previewed enough free 312-50V13 questions. Unlock 312-50V13 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#SQL injection#SQL syntax#comment injection#database queries
Full 312-50V13 PracticeBrowse All 312-50V13 Questions