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/
  metadata:
    verified: true
    max-request: 1
    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: 4b0a00483046022100cddb07ee93c5a5ea5aaa38543a5cb261019049ec97197bf96407ca82ee44ffb3022100b37750bf50540faa4c6cfbaf893d811a7fef9d22d81d4bf2f631a8faef8e7660:922c64590222798bb761d5b6d8e72950