id: dgraph-dashboard-exposure

info:
  name: Dgraph Ratel Dashboard Exposure Panel - Detect
  author: dhiyaneshDk
  severity: info
  description: Dgraph Ratel Dashboard Exposure panel was detected.
  classification:
    cvss-metrics: CVSS:3.0/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:dgraph:dgraph:*:*:*:*:go:*:*:*
  metadata:
    max-request: 1
    shodan-query: http.title:"Dgraph Ratel Dashboard"
    product: dgraph
    vendor: dgraph
  tags: exposure,unauth,panel,misconfig

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Choose a version of the Ratel interface'
          - '<title>Dgraph Ratel Dashboard</title>'
        condition: and

      - type: word
        part: header
        words:
          - "text/html"
# digest: 490a0046304402202cccf6b3fdf295f4db342ce0b82a19a48df368d656b11435f163cb3eaf0d640702201052b53c688b44eb9d88778674bc0125dfafac5ee154126021aa5f7339f93e3d:922c64590222798bb761d5b6d8e72950