nerdexam
CompTIA

CAS-002 · Question #550

A security consultant is evaluating forms which will be used on a company website. Which of the following techniques or terms is MOST effective at preventing malicious individuals from successfully…

The correct answer is D. Input validation. Input validation directly addresses the root cause of web form vulnerabilities by ensuring only properly formatted, expected data reaches the application logic.

Enterprise Security

Question

A security consultant is evaluating forms which will be used on a company website. Which of the following techniques or terms is MOST effective at preventing malicious individuals from successfully exploiting programming flaws in the website?

Options

  • AAnti-spam software
  • BApplication sandboxing
  • CData loss prevention
  • DInput validation

How the community answered

(21 responses)
  • A
    5% (1)
  • C
    5% (1)
  • D
    90% (19)

Why each option

Input validation directly addresses the root cause of web form vulnerabilities by ensuring only properly formatted, expected data reaches the application logic.

AAnti-spam software

Anti-spam software filters unsolicited email and messaging content but provides no protection against exploitation of web form input-handling flaws.

BApplication sandboxing

Application sandboxing limits the damage an exploited application can cause by isolating its runtime environment, but it does not prevent the initial exploit from succeeding.

CData loss prevention

Data loss prevention monitors and restricts the movement of sensitive data out of the organization but does not prevent attackers from injecting malicious input through web forms.

DInput validationCorrect

Input validation is the most effective preventive control against web form exploits such as SQL injection and cross-site scripting because it sanitizes or rejects malicious data at the point of entry before the application processes it. By enforcing constraints on data type, length, format, and range, it neutralizes the attacker's ability to craft payloads that exploit programming flaws. All other options operate downstream and do not address the vulnerability at its source.

Concept tested: Input validation to prevent web form injection attacks

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 CAS-002 Practice