nerdexam
CompTIA

SY0-501 · Question #480

An application was recently compromised after some malformed data came in via web form. Which of the following would MOST likely have prevented this?

The correct answer is A. Input validation. An application was compromised by malformed data submitted via a web form. Implementing robust input validation is the most effective control to prevent such incidents.

Submitted by haru.x· Mar 4, 2026Threats, vulnerabilities, and mitigations

Question

An application was recently compromised after some malformed data came in via web form. Which of the following would MOST likely have prevented this?

Options

  • AInput validation
  • BProxy server
  • CStress testing
  • DEncoding

How the community answered

(29 responses)
  • A
    79% (23)
  • B
    7% (2)
  • C
    3% (1)
  • D
    10% (3)

Why each option

An application was compromised by malformed data submitted via a web form. Implementing robust input validation is the most effective control to prevent such incidents.

AInput validationCorrect

Input validation is the process of ensuring that data submitted through web forms conforms to expected types, formats, and ranges before it is processed by the application. This directly prevents security vulnerabilities such as SQL injection, cross-site scripting (XSS), or buffer overflows by rejecting or sanitizing any malformed or malicious data, thereby stopping attacks at the earliest possible stage.

BProxy server

A proxy server acts as an intermediary for network requests, providing benefits like caching or basic filtering, but it does not inherently perform deep application-level validation of data content within web form submissions to prevent malformed input attacks.

CStress testing

Stress testing evaluates an application's performance and stability under extreme load, focusing on reliability and bottlenecks rather than preventing specific security vulnerabilities caused by malformed input data.

DEncoding

Encoding transforms data into a different format for storage or safe transmission, but it does not prevent malformed or malicious input from initially entering an application, nor does it validate the correctness of the input itself.

Concept tested: Input validation for web application security

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

Topics

#input validation#web application security#injection prevention#secure coding

Community Discussion

No community discussion yet for this question.

Full SY0-501 Practice