nerdexam
EC-Council

412-79V10 · Question #201

Black-box testing is a method of software testing that examines the functionality of an application (e.g., what the software does) without peering into its internal structures or workings. Black-box…

The correct answer is D. Send a SQL escape character (the '?' character) as the input data to catch instances where the user input is used as part of a SQL identifier without any input sanitization. See the full explanation below for the reasoning.

Question

Black-box testing is a method of software testing that examines the functionality of an application (e.g., what the software does) without peering into its internal structures or workings. Black-box testing is used to detect issues in SQL Injections and to detect XSS, injection vulnerabilities. Most commonly, SQL injection vulnerabilities are a result of using vulnerable programming during the Implementation/Development phase and will likely require code changes. Pen testers need to perform this testing during the development phase to find and fix the SQL injection vulnerability. What can a pen tester do to detect input sanitization issues?

Options

  • ASend single quotes as the input data to catch instances where the user input is not sanitized
  • BSend double quotes as the input data to catch instances where the user input is not sanitized
  • CSend long strings of junk data, just as you would send strings to detect buffer overruns
  • DSend a SQL escape character (the '?' character) as the input data to catch instances where the user input is used as part of a SQL identifier without any input sanitization

How the community answered

(36 responses)
  • A
    8% (3)
  • B
    14% (5)
  • C
    3% (1)
  • D
    75% (27)

Community Discussion

No community discussion yet for this question.

Full 412-79V10 Practice