nerdexam
CompTIA

SY0-501 · Question #47

Although a web enabled application appears to only allow letters in the comment field of a web form, malicious user was able to carry a SQL injection attack by sending special characters through the…

The correct answer is C. Server side validation. The application's susceptibility to a SQL injection attack, despite client-side restrictions, indicates a failure to implement robust server-side input validation.

Submitted by jaden.t· Mar 4, 2026Threats, vulnerabilities, and mitigations

Question

Although a web enabled application appears to only allow letters in the comment field of a web form, malicious user was able to carry a SQL injection attack by sending special characters through the web comment field. Which of the following has the application programmer failed to implement?

Options

  • ARevision control system
  • BClient side exception handling
  • CServer side validation
  • DServer hardening

How the community answered

(37 responses)
  • A
    8% (3)
  • B
    3% (1)
  • C
    76% (28)
  • D
    14% (5)

Why each option

The application's susceptibility to a SQL injection attack, despite client-side restrictions, indicates a failure to implement robust server-side input validation.

ARevision control system

A revision control system is used for managing changes to source code and documentation, not for implementing application-level security controls like input validation to prevent SQL injection.

BClient side exception handling

Client-side exception handling deals with errors that occur within the user's browser and does not prevent malicious input from being sent to or processed by the server, as client-side controls can be circumvented.

CServer side validationCorrect

Server-side validation is critical because client-side validation can be easily bypassed by a malicious user, allowing unvalidated input containing special characters to reach the server. By validating and sanitizing input on the server, the application prevents malicious characters from being interpreted as SQL commands, thereby stopping SQL injection attacks.

DServer hardening

Server hardening focuses on securing the operating system, network services, and infrastructure components of a server, but it does not directly address application-level vulnerabilities related to improper input validation within the web application code.

Concept tested: Server-side input validation for injection prevention

Source: https://learn.microsoft.com/en-us/dotnet/framework/security/security-coding-guidelines/input-validation

Topics

#SQL injection#server-side validation#input validation#web application security

Community Discussion

No community discussion yet for this question.

Full SY0-501 Practice