The following steps can be used to run the Burp Suite scanner against a Web service that is consumed in a Salesforce app via callouts.
The basic idea is to:
- import the Web Service WSDL into SOAP UI,
- configure SOAP UI to use the Burp Proxy,
- use SOAP UI to simulate the SOAP requests for typical use cases, This will require updating the sample requests generated in SOAP UI to represent those made from Salesforce under normal usage.
- select the requests to scan from the Burp Target, Site map tabs
Get a Burp Suite License
ISV partners can submit a Burp License Request.
Install and run Burp
I put the Burp jar file and license txt file in a directory and started it with the following in a batch file:
java -jar -Xmx1024m burpsuite_pro_v1.5.04.jar
See Also: Getting Started With Burp Suite
Configure Burp
Turn “Intercept” (Proxy->Intercept) off within Burp.
Configure SOAP UI to use the Burp Proxy
File > Preferences > Proxy Settings:
127.0.0.1:8080
You can find the Burp Proxy details Under Proxy > Options > Proxy Listeners
You may need to installed Burp's generated CA Certificate into the Trusted Root Certification Authorities tab if using SSL. See Installing Burp's CA Certificate. If not configured you get the following error message in Soap UI "Error getting response; javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated."
For SoapUI to pickup the new cert:
- Go to the path: C:\Program Files (x86)\SmartBear\SoapUI-5.0.0\jre\lib\security
- Export the Burp CA Certificate using Proxy > Options > CA certificate... > Export: Certificate in DER format.
- Use the Java keytool executable to import the certificate:
"C:\Program Files (x86)\Java\jdk1.7.0_67\bin\keytool.exe" -import -alias burp -file "C:\WhereYouExportedTheDerCertificate\PortSwiggerCA.cer" -keystore cacerts
- The keystore password will be: changeit
Use SOAP UI to simulate the web requests that Salesforce would make to the web service
This will require you to update the sample requests that SOAP UI generates for each of the web methods with realistic request data. Try to mimic the calls that Salesforce will be making.
When the SOAP UI requests are submitted Burp will record them under the Target > Site map tab.
Start the Burp Scanner
Under the Target > Site map tab select the request nodes or host/branch that you want to scan. If it was a website you would usually do an "Spider this branch" at this point. Start the Scanner for the branches by selecting "Actively scan this branch".
Under the Scanner > Scan Queue tab the requests will appear and be processed. The output will start appearing under the Scanner > Results tab.
Export the Burp Scanner Results
Under the Scanner > Scan Queue tab select the results of interest then right click and select "Report selected issues"
The Printer-friendly version with hyperlinks works well for both screen reading and printing. Defaults can be used for the remaining steps. Ensure you save the report in a file with the ".html" extension.
See Also: