ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 464 - CAS-004 discussion

Report
Export

During a software assurance assessment, an engineer notices the source code contains multiple instances of strcpy. which does not verify the buffer length. Which of the following solutions should be integrated into the SDLC process to reduce future risks?

A.
Require custom IDS/IPS detection signatures for each type of insecure function found.
Answers
A.
Require custom IDS/IPS detection signatures for each type of insecure function found.
B.
Perform a penetration test before moving to the next step of the SDLC.
Answers
B.
Perform a penetration test before moving to the next step of the SDLC.
C.
Update the company's secure coding policy to exclude insecure functions.
Answers
C.
Update the company's secure coding policy to exclude insecure functions.
D.
Perform DAST/SAST scanning before handoff to another team.
Answers
D.
Perform DAST/SAST scanning before handoff to another team.
Suggested answer: C

Explanation:

The source code in this scenario uses insecure functions like strcpy which are known for not checking buffer sizes, leading to buffer overflow vulnerabilities. The most effective solution is to update the company's secure coding policy to prohibit the use of insecure functions and replace them with safer alternatives, such as strncpy, which enforces buffer length checks. Integrating this change into the Software Development Life Cycle (SDLC) ensures that future code adheres to secure practices, thereby reducing the risk of vulnerabilities being introduced into production systems. This approach aligns with CASP+ guidelines that emphasize secure coding practices and policies to prevent common security flaws in software development.

CASP+ CAS-004 Exam Objectives: Domain 2.0 -- Enterprise Security Operations (Secure Coding Standards)

CompTIA CASP+ Study Guide: Secure Coding and Prevention of Buffer Overflows

asked 02/10/2024
Jonathan Dowds
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first