id: versa-director-api

info:
  name: Versa Director API Endpoint Detection
  author: c-sh0
  severity: info
  description: Versa Director API Endpoint (Unauthorized) Detection
  reference:
    - https://versa-networks.com/products/components/
  classification:
    cpe: cpe:2.3:a:versa-networks:versa_director:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: versa-networks
    product: versa_director
    shodan-query: html:"Versa Networks"
  tags: api,versa,tech,discovery

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

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - '(?i)"more_info":"http://nms.versa.com/errors/4001"'

      - type: status
        status:
          - 401
# digest: 4a0a0047304502207476e1abb1dcd9ba2bcaa9e3df6ae056bf9a548f013d434fbcf5dcdae39124ac022100e837444c1104582561d6be501c11f976e8a7a20a329db3b9a810d8be98fd42e7:922c64590222798bb761d5b6d8e72950