Download Multi-step scanning in ZAP
Transcript
6 Test 67 word ”dummy”) is entered, a paragraph will show up on the third step, containing the words ”Dummy Vulnerability”. An Active Scan rule has been created to search for this string in the response of a HTTP request. This is naturally not a real vulnerability, but it was an easy way to test if a sequence would find a vulnerability, that would otherwise not have been discovered. The web application currently consists of three different wizards. The first one simply stores user submitted data in the session, until it is persisted on the final step of the wizard. The second wizard is set up to place Anti-CSRF tokens between each step. This will ensure that it is not possible to jump directly to e.g. step2, and that the wizard must start at the first step. The third wizard requires the user to login before it is possible to start the wizard. A screenshot of the start page of the web application can be seen in Figure 6.2. Figure 6.2: A screenshot of the ’Wizards R Us’ Web application, after navigating through a few wizards and persisting some data. Using the web application for testing provided a fast way to ensure that a vulnerability is only discovered, by scanning using sequences. However, one of the most relevant types of vulnerabilities for sequences, is cross-site scripting (XSS) vulnerabilities. It was not possible to implement XSS vulnerabilities in the ASP.NET web application, as ASP.NET has built-in mechanisms for preventing this, and it would require a lot of effort to circumvent this. Instead, the ZAP test project was expanded to include a persistent XSS vulnerability, which can be seen in Figure 6.3. This was an important vulnerability to be able to discover, as it is the same type of vulnerability that the original issue for ZAP mentioned, in the purposely vulnerable web application, Wacko Picko. It was also possible to discover the Persistent XSS vulnerability in Wacko Picko, but it was a little more complicated. The issue is that Wacko Picko contains a commenting system for pictures that are uploaded. When writing a comment, it is possible to include HTML script tags in the comment. When