id: unauthenticated-netdata

info:
  name: Unauthenticated Netdata
  author: dhiyaneshDk
  severity: medium
  description: Netdata is exposed.
  reference:
    - https://github.com/netdata/netdata
  metadata:
    max-request: 1
  tags: netdata,unauth,misconfig

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/v1/data?chart=system.cpu&format=json&points=125&group=average&gtime=0&options=ms%7Cflip%7Cjsonwrap%7Cnonzero&after=-120&dimensions=iowait"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - "view_update_every"
          - "dimensions"
        condition: and

      - type: word
        words:
          - "application/json"
        part: header
# digest: 490a004630440220110e5a4ead841c39c5e58446abbf81ba54c381384357c1fea2a21221694141b702204ed8fb04e2f99ef77aa09f6017cffae90573d57fd21052d8d04c03ec123ffcd5:922c64590222798bb761d5b6d8e72950