Integrating a new web services Framework for Frameworks handler with the existing Web Service Description Language custom scanner
About this task
When scanning a JAX-RS or JAX-WS application with AppScan® Source, you should ensure that you can capture all web service entry points so that you do not miss any vulnerabilities in your application. This document describes a technique for doing this. It outlines the steps that you would take to integrate a new Framework for Frameworks (F4F) handler that is used to analyze unsupported web service frameworks with the Web Service Description Language (WSDL) custom scanner.
This work is necessary so that the WSDL custom scanner will be able to differentiate between those web service entry points that have already been discovered by this new F4F handler and those web service entry points that exist in the WSDL file. With this information, the WSDL custom scanner will eliminate configuration findings that have already been analyzed by this new F4F handler.
Connecting the Web Service F4F handler to the WSDL Custom Scanner
Before you begin
Procedure
Results
Signature mapping
About this task
The WSDL custom scanner will try to match the reported methods with the corresponding WSDL Services, WSDL Port Types, and WSDL Operations. This is why the web services are reported in WSDL format. Some simplifications have been added to make things easier to understand:
- For any XSD primitive types, there is no need to add the target
namespace. Instead, just use the name (for example,
string
,int
,float
,double
). - For collections and arrays,
[]
is added after the type (for example,string[]
,int[]
). - For class types that will be mapped to XSD complex types (using
JAX-B or any other technologies), the type will appear such as this:
http//my-types/myxsdnamespace/:Customer
The namespace should be available as part of the Java annotation. If it is not part of the Java annotation, it should match the caller service namespace or the package name, depending on the implementation of the framework.
If you are not sure how the expected signature should look, run a WSDL scan from AppScan Source on the WSDL files themselves. This will generate findings for all operations under the WSDL services. Clicking on each finding will display the method signature in the Findings Detail view.