nerdexam
CompTIA

CS0-003 · Question #352

During a security test, a security analyst found a critical application with a buffer overflow vulnerability. Which of the following would be best to mitigate the vulnerability at the application…

The correct answer is B. Implement input validation. Implementing input validation is the best way to mitigate the buffer overflow vulnerability at the application level. Input validation is a technique that checks the data entered by users or attackers against a set of rules or constraints, such as data type, length, format, or…

Submitted by alyssa_d· Mar 6, 2026Vulnerability Management

Question

During a security test, a security analyst found a critical application with a buffer overflow vulnerability. Which of the following would be best to mitigate the vulnerability at the application level?

Options

  • APerform OS hardening.
  • BImplement input validation.
  • CUpdate third-party dependencies.
  • DConfigure address space layout randomization.

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    81% (21)
  • C
    12% (3)
  • D
    4% (1)

Explanation

Implementing input validation is the best way to mitigate the buffer overflow vulnerability at the application level. Input validation is a technique that checks the data entered by users or attackers against a set of rules or constraints, such as data type, length, format, or range. Input validation can prevent common web application attacks such as SQL injection, cross-site scripting (XSS), or command injection, which exploit the lack of input validation to execute malicious code or commands on the server or the client side. By validating the input before allowing submission, the web application can reject or sanitize any malicious or unexpected input, and protect the application from being compromised.

Topics

#Buffer overflow#input validation#application security

Community Discussion

No community discussion yet for this question.

Full CS0-003 Practice