id: unauth-kubecost

info:
  name: KubeCost - Unauthenticated Dashboard Exposure
  author: pussycat0x
  severity: medium
  description: KubeCost Dashboard is exposed to external users.
  reference: https://www.facebook.com/photo?fbid=470414125129112&set=pcb.470413798462478
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:kubecost
  tags: misconfig,exposure,unauth,kubecost

http:
  - method: GET
    path:
      - '{{BaseURL}}/overview.html'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<title>Cluster Overview | Kubecost</title>"
          - "<title>Kubecost</title>"
        condition: or

      - type: word
        part: header
        words:
          - text/html

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