nerdexam
CompTIA

CAS-002 · Question #589

A company's security policy states that its own internally developed proprietary Internet facing software must be resistant to web application attacks. Which of the following methods provides the…

The correct answer is A. Require all development to follow secure coding practices. Secure coding practices provide the broadest and most fundamental protection against web application attacks by eliminating vulnerabilities at the source before deployment.

Enterprise Security

Question

A company's security policy states that its own internally developed proprietary Internet facing software must be resistant to web application attacks. Which of the following methods provides the MOST protection against unauthorized access to stored database information?

Options

  • ARequire all development to follow secure coding practices.
  • BRequire client-side input filtering on all modifiable fields.
  • CEscape character sequences at the application tier.
  • DDeploy a WAF with application specific signatures.

How the community answered

(25 responses)
  • A
    52% (13)
  • B
    28% (7)
  • C
    8% (2)
  • D
    12% (3)

Why each option

Secure coding practices provide the broadest and most fundamental protection against web application attacks by eliminating vulnerabilities at the source before deployment.

ARequire all development to follow secure coding practices.Correct

Requiring secure coding practices - such as parameterized queries, output encoding, and input validation - addresses the root cause of vulnerabilities like SQL injection and XSS at the development stage, preventing them from ever reaching production. This defense-in-depth approach is more comprehensive than any single compensating control applied after the fact.

BRequire client-side input filtering on all modifiable fields.

Client-side input filtering can be trivially bypassed by an attacker intercepting and modifying HTTP requests before they reach the server, making it an unreliable primary defense.

CEscape character sequences at the application tier.

Escaping character sequences at the application tier addresses only a subset of injection vulnerabilities and is itself a component of secure coding rather than a replacement for it.

DDeploy a WAF with application specific signatures.

A WAF provides perimeter-level detection and filtering but can be bypassed through obfuscation or zero-day techniques and does not remediate underlying code vulnerabilities.

Concept tested: Secure coding practices for web application protection

Source: https://owasp.org/www-project-secure-coding-practices-quick-reference-guide/

Topics

#secure coding#web application security#database protection#SQL injection

Community Discussion

No community discussion yet for this question.

Full CAS-002 Practice