How to scan SOAP Web Services in AppScan Standard

Technote (FAQ)


Question

What are the steps to testing a SOAP Web Service using IBM Security AppScan Standard?

Cause

Testing a (SOAP) Web Service using AppScan Standard differs slightly to testing a normal Web Application. Whilst the test phase is much the same, the explore phase however takes place in a separate client called the Generic Services Client (GSC).
For testing REST Web Services consult technote How to scan REST Web Services.


Answer

To properly test a Web Service, it is necessary to have some good test data (for example, SOAP Envelopes) for the service methods. It is typically best to source this from the Web Service test data when possible, preferably test data that will result in a good/positive return from the method invocation.

The other thing that is typically necessary, is the Web Services Description Language (WSDL) file/URL, which describes the method declarations for the service.

Once the WSDL file/URL and test data is obtained, testing the service generally uses this procedure:

    1. In Rational AppScan Standard, create a new Regular Scan template (File > New...).

    2. In the Scan Configuration Wizard, select the type of scan as 'Web Service Scan' then click Next.

    3. For the WSDL URL, enter the URL from which the WSDL can be obtained. A sample Web Service is present on the demo Altoromutual site using the WSDL URL http://www.altoromutual.com/transfer/transfer.asmx?wsdl . Once entered, click Next.

    4. The Test Policy should use the "Web Services" policy, as this contains the tests specifically useful for Web Services testing. Once selected, click Next.

    5. On the final Wizard screen, click Finish.
With these steps complete, the Generic Services Client (GSC) launches in order to 'explore' the Web Service.

When the GSC client launches, the WSDL is automatically imported, thus should include the Methods present from the WSDL in the Call Library list similar to this:



If this has not occurred, then add the WSDL using this button, .

Once the methods are available, it is now possible to start invoking these methods to generate the requests with which Rational AppScan Standard will modify in order to deliver the various attack vectors to the Web Service method in order to test for vulnerabilities.

Testing the method is fairly straight forward and follows the following steps:

  1. Enter in the test data, either through the 'Form', 'Tree', or 'Source' views of the Edit Data step. An example of this for the TransferBalance method of the demo Web Service is:



  2. With the test data completed, next select the "Invoke" button.

  3. Verify that the Response from the Web Service was as per expectation, for example:



  4. This is all that is required in order to include this method in the test run. Steps 1-3 should be repeated for each method to be tested.

  5. When all of the methods to be tested have been invoked and return good responses, simply close the GSC Tool to complete the exploration.

  6. When the GSC Tool closes, Rational AppScan Standard will process the URLs that were explored adding these to the site tree, for example:



  7. Finally all that is now required is to initiate testing. This is achieved through Scan > Test Only in the Rational AppScan Standard GUI.

During the scan, the vulnerabilities found will be reported in exactly the same way as if a regular Web Application scan was being performed.


Short demos of using AppScan with GSC are here:



NOTE: If you received a task to test Web Services with AppScan, you may ask the Web Services development if they have SOAP request files that they used to test the functionality of the services. You may use them by copying them to the GSC toot (to the "Source" tab).

Rate this page:

(0 users)Average rating

Document information


More support for:

IBM Security AppScan Standard
Web Services: WSDL

Software version:

7.9, 8.0, 8.5, 8.6.0.0, 8.7, 8.8, 9.0

Operating system(s):

Windows

Reference #:

1404788

Modified date:

2014-03-28

Translate my page

Machine Translation

Content navigation