nerdexam
EC-Council

412-79V10 · Question #118

David is working on a pen testing assignment as a junior consultant. His supervisor told him to test a web application for SQL injection. The supervisor also mentioned that some functionalities can…

The correct answer is C. admin' or '1'='1. See the full explanation below for the reasoning.

Question

David is working on a pen testing assignment as a junior consultant. His supervisor told him to test a web application for SQL injection. The supervisor also mentioned that some functionalities can lead to an unverified redirect vulnerability. David noticed that David had this string, he received a WAF error message the input is not allowed: exec_sp_addsrvrolemember 'name' , 'sysadmin'. Which of the following strings could David use instead of the above string to bypass the WAF filtering?

Options

  • Aexec_sp_addsrvrolemember 'name' , 'sysadmin'
  • Bunion select
  • Cadmin' or '1'='1
  • Dusername like char(37);

How the community answered

(25 responses)
  • A
    16% (4)
  • B
    8% (2)
  • C
    72% (18)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 412-79V10 Practice