Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Latest commit

 

History

History
58 lines (41 loc) · 2.54 KB

README.md

File metadata and controls

58 lines (41 loc) · 2.54 KB

Scanning SOAP API's with StackHawk

For more information about StackHawk see https://www.stackhawk.com

TL;DR

  1. Create an application on the StackHawk Web platform.
  2. Clone this repo or copy the stackhawk-soap.yml configuration file and place in the root of your project directory.

SOAP API configuration

SOAP API schemas use XML to define the structure of its operations. The schema is made available through a WSDL file, offering a machine-readable format for how the web service works.

HawkScan will use the contents provided by the WSDL to improve the quality of the scan by:

  • Pre-seeding the sitemap using the routes defined in the WSDL. This can be used to complement any crawled routes or can be used instead of app spidering altogether.
  • Using defined inputs to operations in the spec to inform how to communicate with the web application and gather clues on how to better attack endpoints.

For more help configuring SOAP API's, see our Documentation.

Configuration Examples

Using a spec file Using a relative URL
app:
  ...
  soapConf: "soapAPI.wsdl"
app:
  ...
  soapConf: /soapAPI/v1?wsdl

Example Scan Configuration

app:
  applicationId: xxxx-XXXX-xxxx-XXXX-xxxxxxxx
  env: Development
  host: http://localhost:8000
  autoPolicy: true
  api: /soapAPI/v1?wsdl]

Running the scanner

Bash

docker run --rm -v $(pwd):/hawk:rw -e API_KEY=hawk.xxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxx -t stackhawk/hawkscan:latest stackhawk-soap.yml

Windows CLI

docker run --rm -v %cd%:/hawk -e API_KEY=hawk.xxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxx -t stackhawk/hawkscan:latest stackhawk-soap.yml

PowerShell

docker run --rm -v ${PWD}:/hawk -e API_KEY=hawk.xxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxx -t stackhawk/hawkscan:latest stackhawk-soap.yml

Linux

docker run --rm -v $(pwd):/hawk:rw -network host -e API_KEY=hawk.xxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxx -t stackhawk/hawkscan:latest stackhawk-soap.yml