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
    cpe: cpe:2.3:a:influxdata:influxdb:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: "X-Influxdb-"
    product: influxdb
    vendor: influxdata
  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: 4a0a00473045022064aff02809539a8367838a212c298f716c28b6bd84af79bd72f02cb8ae5e329d022100983bc4d4ba80a5ad180ddc5465861e6b43f3b10e93145bc6eb687e1ca4ac3f67:922c64590222798bb761d5b6d8e72950