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.
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)- A8% (3)
- B3% (1)
- C76% (28)
- D14% (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.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.