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

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