id: opentsdb-status

info:
  name: OpenTSDB - Detect
  author: pussycat0x
  severity: low
  description: OpenTSDB stats exposed which is commonly used in monitoring and observability scenarios where tracking and analyzing the performance of systems, applications, and infrastructure over time is essential.
  reference: |
    http://opentsdb.net/
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.favicon.hash:407286339
  tags: opentsdb,exposure,logs

http:
  - method: GET
    path:
      - "{{BaseURL}}/stats?json"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "tsd.connectionmgr.connections"
          - "tsd.http"
          - "host"
        condition: and

      - type: word
        part: header
        words:
          - "application/json"

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