id: heimdall-dashboard-exposure

info:
  name: Heimdall Application Dashboard - Unauthenticated Access
  author: 0x_Akoko
  severity: medium
  description: |
    Detected The Heimdall Application Dashboard was accessible without authentication.When it was deployed without the protection, the full dashboard-including all linked internal services and API credentials-was accessible to unauthenticated users.
  reference:
    - https://github.com/linuxserver/Heimdall
  metadata:
    verified: true
    max-request: 1
    product: heimdall
    shodan-query: 'http.title:"Heimdall"'
    fofa-query: 'title="Heimdall" || body="heimdall-logo-small.svg"'
  tags: heimdall,exposure,unauth,misconfig,dashboard

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}
        Accept: text/html

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(to_lower(body), "<title>heimdall</title>", "heimdall-logo-small.svg", "items/pintoggle", "id=\"pinlist\"")'
          - '!contains_any(to_lower(body), "password", "login")'
        condition: and
# digest: 4a0a004730450220776521dd64719abdfdd5ada0a6f991d94add080ff227a7864948199c71e374ae022100f51f1e617b04922858fcfd6c45d9a0dc5e8096eacd9613f2421fe01480213752:922c64590222798bb761d5b6d8e72950