Triage Flaws allows developers to review static flaws in the context of their local copy of the source code for the application. This section describes static flaws and explains how to:
- Access static flaw information
- Use the Source Code View
- Work with static flaws found in non-debug code
- Schedule a consultation call with Veracode
About Static Flaws
Flaws found by static analysis represent potentially dangerous code paths in an application. Generally speaking, these fall into two categories: vulnerabilities and potential vulnerabilities. Vulnerabilities are exploitable weaknesses in the application, with a code path that can be found and exploited by an attacker to impair the application's confidentiality, integrity, or availability. Potential vulnerabilities represent weaknesses in the application code that may not be exploitable by an attacker at the present time, either because the code path is unreachable or because some mitigating factor is in place in the code base. However, potential vulnerabilities may become true vulnerabilities in the future if the code architecture or deployment method of the application changes, or if the flawed code is called in another program.
Veracode Static Analysis uses debug information to report the source file and line number on which the flaw exists, aiding in remediation. Java and .NET applications can be analyzed in non-debug form, but the resulting flaws from a non-debug analysis do not have source file and line number information. Instead, information about the flaw's location is given relative to the module, class path, function name, and approximate location within the function body. (See the compilation instructions for information on how to build your application with debug information.)
Reviewing the Module Selection
If you have scanned this application before, you can view the differences between the files you uploaded last time, and the files you uploaded this time, so that you can verify you are reviewing the same files as the previous upload. For the most consistent results, Veracode recommends that you scan the same files between scans. From the Application Overview page, click Review Modules in the left navigation menu. The differences are displayed in a table called File Upload Information. See View Changes Between File Uploads for more information.
Viewing Static Results for an Application
To access static results, from the Application Overview page of the application, click Triage Flaws under the application name. Then, click Static under the application name, if it is not already selected.To begin reviewing a portion of your results while the remainder of your application is scanned, click the View Partial Results link from the Application Overview page. See Viewing Accelerated Results for Static Scans for more information.
The table at the bottom of the page shows the flaw ID, severity, exploitability, CWE, location, source, number of data paths, status, and mitigation status.
You can click the triangle next to a flaw ID to view details about the
flaw, including remediation guidance, flaw descriptions, links to software security
resources, and links to recommended Veracode eLearning courses and tutorials.
The CWE ID & Name column
maps the discovered flaw to the Common
Weakness Enumeration (CWE) standard. If this flaw is stopping the application
from passing policy compliance, the red shield icon indicates that a fix is required to
meet the policy requirements.
Click a specific finding for Triage Flaws to prompt you load your local copy of the source code into the Source Code View at the top of the page.
View Data Path Information for Flaws
- From Triage Flaws, click the link in the Data Paths
- The Data Path tab opens, where you can view each path that leads to the sink.
- To view details about a specific data path, select a path from the left panel.
- Details are displayed for each path, including the steps taken to exploit the flaw, filename or class, function name, and line number or relative location of the flaw by percentage.
- Fix each exploitable data path to remediate the flaw.
Using the Source Code view
The Source Code view allows you to load source code from your local system (or a network-accessible directory) into Triage Flaws so that you can view information about the flaw in the context of your original source. To use this feature you must be using an HTML5-supported browser. You can also use a browser that utilizes Java plugins, but Veracode does not recommend using Java. Read Veracode Browser Requirements for security guidelines for avoiding the use of Java.
To use the Source Code view:
- Select Source Code Viewer radio button at the top-right of the page, if it is not already selected.
- Select a flaw.
- If you have not previously loaded source code for this application, the Platform prompts you to locate the source code on your hard disk. The fully qualified path of the source code that you used to build the application is shown for reference.
- The Platform loads the source code and scrolls the file to the line of code containing the flaw. If you selected the wrong source file, you can click Load Different File button to change it.
- Hovering over the annotation on the left hand column allows viewing a detailed description of the flaw and a remediation recommendation.
You can also scroll through the code to view other flaws in the same source file, or use the Goto Line field to jump to a particular line.
Viewing Flaws Found in Non-debug Code
The Veracode Platform allows viewing flaws found in code without debug symbols. As source file and line number information is unavailable for these flaws, the Platform presents other location information:
- In the Flaws tab, the Source column contains the function prototype containing the flaw and the approximate location in the function body, by percentage where the flaw occurs.