id: identity-server-v3-detect

info:
  name: Identity Server V3 - Detect
  author: righettod
  severity: info
  description: |
    Identity Server V3 technology was detected.
  reference:
    - https://identityserver.github.io/Documentation/
  classification:
    cpe: cpe:2.3:a:wso2:identity_server:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: wso2
    product: identity_server
    shodan-query: http.title:"IdentityServer v3"
  tags: tech,identityserver,detect

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

    host-redirects: true
    max-redirects: 2
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "IdentityServer v3") && contains(body, "identityserver.github.io")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '(?i)build\s+([a-z0-9.-]+)'
# digest: 4a0a0047304502202d335bd3f5b42a8cae5d27ed368cca46b6e9a86ff3f9f8065c296b626acd648c022100b8302a3d64d5f422d29fe9c48e025aca0f97b91e473dcffec4fad2a49fef2e1d:922c64590222798bb761d5b6d8e72950