id: aspnet-soap-webservices-asmx

info:
  name: SOAP-based ASP.NET web services ASMX - Detect
  author: righettod
  severity: info
  description: |
    SOAP-based ASP.NET web services collection was detected.
  reference:
    - https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/csharp/language-compilers/write-web-service
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.html:".asmx?WSDL"
  tags: config,exposure,asmx,soap,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - ".asmx?op="
          - ".asmx?WSDL"
          - ".asmx?disco"
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '<p class="heading1">([A-Za-z0-9\s_\-\.]+)<\/p>'
# digest: 4a0a004730450220104d8a5bc13e83966781a45362dd095d002d245d29b187324493f508d0161e39022100da9764e4c9430dd4dddc6dba165c2ee51ea33260d9c754fd6f9d839dc8aec856:922c64590222798bb761d5b6d8e72950