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