nerdexam
(ISC)2

CSSLP · Question #367

What technique should a web application use to confirm that values sent by clients conform to the expected data types and formats?

The correct answer is B. Input validation. To ensure data integrity and prevent various vulnerabilities, web applications must verify that all client-supplied data adheres to predefined types, formats, and acceptable values. This crucial security and quality practice is implemented at the point of data reception.

Secure Software Implementation

Question

What technique should a web application use to confirm that values sent by clients conform to the expected data types and formats?

Options

  • ACloud Audit Logging
  • BInput validation
  • CError and exception handling
  • DOutput sanitization

How the community answered

(47 responses)
  • A
    2% (1)
  • B
    89% (42)
  • C
    2% (1)
  • D
    6% (3)

Why each option

To ensure data integrity and prevent various vulnerabilities, web applications must verify that all client-supplied data adheres to predefined types, formats, and acceptable values. This crucial security and quality practice is implemented at the point of data reception.

ACloud Audit Logging

Cloud Audit Logging records administrative activities and access events within a cloud environment, which is an auditing mechanism, not a technique for confirming client-sent data types and formats.

BInput validationCorrect

Input validation is the process of checking data received from a client (e.g., user input, API calls) against a set of predefined rules to ensure it is in the correct format, type, and within acceptable ranges, preventing injection attacks, buffer overflows, and other data-related vulnerabilities. It is a critical defense against malicious or malformed data.

CError and exception handling

Error and exception handling manages unexpected events or errors during program execution, but it occurs after data has been processed and an issue arises, not as a primary method for validating initial input.

DOutput sanitization

Output sanitization modifies or encodes data before it is displayed or sent back to the client to prevent output-related attacks like Cross-Site Scripting (XSS), and it operates on output, not incoming client values.

Concept tested: Web application input validation

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

Topics

#Input validation#Web application security#Defensive coding#Data integrity

Community Discussion

No community discussion yet for this question.

Full CSSLP Practice