id: influxdb-version-detect

info:
  name: InfluxDB Version Information - Detect
  author: c-sh0
  severity: info
  description: InfluxDB version information check was conducted.
  reference:
    - https://docs.influxdata.com/influxdb/v1.8/tools/api/#ping-http-endpoint
    - https://github.com/influxdata/influxdb/blob/master/http/platform_handler.go#L62
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 1
    shodan-query: "X-Influxdb-"
  tags: tech,influxdb,api

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

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - 'X-Influxdb-'

    extractors:
      - type: kval
        kval:
          - "X_Influxdb_Version"

# digest: 4a0a00473045022100b5cd911770c37c43fddc9ad7d86a7ba09acf1b821bee7e000504e2b50d3791f102200174fb42acf692b439223312c3cb5d344c6ba6f9da0182a991189d4254a06035:922c64590222798bb761d5b6d8e72950
