nerdexam
EC-Council

312-50V9 · Question #475

While performing data validation of web content, a security technician is required to restrict malicious input. Which of the following processes is an efficient way of restricting malicious input?

The correct answer is C. Validate web content input for type, length, and range. Validating input for type, length, and range is the most effective technique for blocking malicious data before it can exploit application vulnerabilities.

Hacking Web Applications

Question

While performing data validation of web content, a security technician is required to restrict malicious input. Which of the following processes is an efficient way of restricting malicious input?

Options

  • AValidate web content input for query strings.
  • BValidate web content input with scanning tools.
  • CValidate web content input for type, length, and range.
  • DValidate web content input for extraneous queries.

How the community answered

(38 responses)
  • A
    3% (1)
  • B
    16% (6)
  • C
    74% (28)
  • D
    8% (3)

Why each option

Validating input for type, length, and range is the most effective technique for blocking malicious data before it can exploit application vulnerabilities.

AValidate web content input for query strings.

Validating only query strings is too narrow and ignores other input vectors such as form fields, headers, and cookies that attackers routinely exploit.

BValidate web content input with scanning tools.

Scanning tools are used for vulnerability assessment, not real-time runtime input restriction during application processing.

CValidate web content input for type, length, and range.Correct

Input validation against type (ensuring the data matches the expected data type), length (rejecting oversized input that could cause buffer overflows), and range (ensuring values fall within acceptable bounds) addresses the core mechanisms of injection and overflow attacks. This approach enforces strict allowlisting principles at the application boundary, neutralizing the majority of malicious input vectors such as SQL injection, XSS, and buffer overflows before processing occurs.

DValidate web content input for extraneous queries.

Validating for 'extraneous queries' is vague and does not represent a recognized, structured validation methodology that systematically blocks malicious input.

Concept tested: Web application input validation techniques

Source: https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html

Topics

#input validation#data validation#malicious input restriction#web security controls

Community Discussion

No community discussion yet for this question.

Full 312-50V9 Practice