ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 319 - PT0-002 discussion

Report
Export

Which of the following is most important to include in the final report of a static application-security test that was written with a team of application developers as the intended audience?

A.
Executive summary of the penetration-testing methods used
Answers
A.
Executive summary of the penetration-testing methods used
B.
Bill of materials including supplies, subcontracts, and costs incurred during assessment
Answers
B.
Bill of materials including supplies, subcontracts, and costs incurred during assessment
C.
Quantitative impact assessments given a successful software compromise
Answers
C.
Quantitative impact assessments given a successful software compromise
D.
Code context for instances of unsafe typecasting operations
Answers
D.
Code context for instances of unsafe typecasting operations
Suggested answer: D

Explanation:

A static application-security test (SAST) is a type of software testing that analyzes the source code, bytecode or binary code of an application for potential vulnerabilities, such as injection flaws, cross-site scripting, buffer overflows and insecure data handling. A SAST report should provide the application developers with detailed information about the location, severity and impact of the identified vulnerabilities, as well as recommendations for remediation. One of the most important elements to include in a SAST report is the code context for each vulnerability, which shows the relevant code snippets where the issue occurs, as well as the data flow and control flow paths that lead to the vulnerability. This helps the developers understand the root cause of the problem and how to fix it. Code context is especially important for instances of unsafe typecasting operations, which are a common source of security weaknesses in applications. Typecasting is the process of converting one data type to another, such as from an integer to a string. Unsafe typecasting occurs when the conversion is done without proper validation or sanitization, which can lead to unexpected behavior, memory corruption, data loss or code execution. For example, in C/C++, casting a pointer to an incompatible type can result in undefined behavior or buffer overflows. Therefore, a SAST report should include the code context for instances of unsafe typecasting operations, so that the developers can review and correct them.

Reference:

* The Official CompTIA PenTest+ Study Guide (Exam PT0-002), Chapter 6: Analyzing and Reporting Pen Test Results, page 329-330.

* Static Application Security Testing (SAST) | GitLab1

* What Is Static Application Security Testing (SAST)?2

* APPLICATION SECURITY TESTING REPORT 2020 - Code Intelligence3

* On the combination of static analysis for software security assessment ...4

asked 02/10/2024
ang kokwei
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first