19.09.2017 Views

the-web-application-hackers-handbook

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 19 n Finding Vulnerabilities in Source Code 743<br />

Tools for Code Browsing<br />

The methodology we have described for performing a code review essentially<br />

involves reading <strong>the</strong> source code and searching for patterns indicating <strong>the</strong><br />

capture of user input and <strong>the</strong> use of potentially dangerous APIs. To carry out<br />

a code review effectively, it is preferable to use an intelligent tool to browse <strong>the</strong><br />

codebase. You need a tool that understands <strong>the</strong> code constructs in a particular<br />

language, provides contextual information about specific APIs and expressions,<br />

and facilitates your navigation.<br />

In many languages, you can use one of <strong>the</strong> available development studios,<br />

such as Visual Studio, NetBeans, or Eclipse. In addition, various generic codebrowsing<br />

tools support numerous languages and are optimized for viewing<br />

of code ra<strong>the</strong>r than development. The authors’ preferred tool is Source Insight,<br />

shown in Figure 19-1. It supports easy browsing of <strong>the</strong> source tree, a versatile<br />

search function, a preview pane to display contextual information about any<br />

selected expression, and speedy navigation through <strong>the</strong> codebase.<br />

Figure 19-1: Source Insight being used to search and browse <strong>the</strong> source code for a<br />

<strong>web</strong> <strong>application</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!