id: windows-communication-foundation-detect

info:
  name: Windows Communication Foundation - Detect
  author: r3naissance
  severity: info
  metadata:
    max-request: 1
    vendor: windows
    product: wcf
    shodan-query: http.title:"Service"
  tags: tech,wcf,windows

http:
  - method: GET
    path:
      - '{{BaseURL}}'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Endpoint not found.'
          - 'class="heading1">Service'
          - 'This is a Windows&#169; Communication Foundation service.'
        condition: or
        case-insensitive: true

      - type: word
        part: body
        case-insensitive: true
        words:
          - '<title>Service</title>'

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100ef4f78a615d4cb66aa2de3e4a61243a03dd1f67286d183cde6b268f8dc5024e1022100f3b0180edbcf332d7f9acb741710d5e8317fb5f9fb4e4892ce10f972bc656750:922c64590222798bb761d5b6d8e72950