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,vuln

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: 4b0a004830460221009f3f8817cb501a08183ae97f667357acb4e8539f138a5f4f8e0c9df8366ba54e0221008a2bcdf99e8a37444af1a947c6595341b28f430ff79e47e06019d733310212f2:922c64590222798bb761d5b6d8e72950