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

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: 4a0a004730450220439cd77d797ab98cae68cfd958f62c33eccfdefb5f52b55c42e71b5eaeacd6d2022100958535b1549d84ab8494f94c7c30b6ad4d3c146d7d89d8c019abad556c9209c4:922c64590222798bb761d5b6d8e72950