Skip to main content

Understanding Visual Studio Scan Results

When viewing scan results in Visual Studio, in the CxViewer Tree (at bottom-left), double-click a detected vulnerability type to display an interactive interface for navigating the results:

1342439949.png

Source code panes may be collapsed (at the top); you can expand them.

The CxViewer interface includes four panes with different levels of information:

  • CxViewer Tree (bottom): Lists all vulnerability types in a navigation tree according to Severity (High, Medium, Low, Information). Click a vulnerability type to display its instances in the panes above.

    Right-click the vulnerability and select Show Description. Once the description is open, you can review the vulnerability risk, cause and remediation information.

    If you click the Codebashing icon 1342439953.jpg , a relevant Codebashing lesson becomes available. Codebashing is our interactive learning platform, where you can learn about code vulnerabilities, why they happen, and how to eliminate them. Once there, select a tutorial and start sharpening your skills.

  • CxViewer Result (top): Tabular detailed list of all found instances of the vulnerability type that is selected in the CxViewer Tree. Select an instance to emphasize it in the graphical panes (Graph and Path; see below).

  • CxViewer Graph (below CxViewer Result): Graphical display of full paths of all found instances of the vulnerability type that is selected in the CxViewer Tree.

    Graphical intersections represent the relationships between the instances, and the instance that is selected in the CxViewer Result pane is emphasized in the Graph (bold arrows), and one of its elements is highlighted (green).

    The red-bordered element represents a best-fix location: securing the code at this point will fix multiple instances of the vulnerability.

    You can navigate the Graphs with the provided MSAGL controls.

    Select an element to view and select this code in context in the file's source code above (you may need to expand the source code pane). This also causes the instance to be displayed in the Path pane.

  • CxViewer Path (below CxViewer Graph): The full path of code elements that constitute the vulnerability instance that is selected in the Graph. This path represents the full attack vector for the vulnerability instance.

    Select a code element in the Path to view and select it in the file's source code, and to highlight it in the Graph.

Notice

If source code files are available in the file system, but not part of the solution file, they are scanned, but the browser results return an error indicating that the source file has not been found.