id: esphome-panel

info:
  name: ESPHome Login Panel - Detect
  author: fabaff
  severity: info
  description: ESPHome login 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
    cwe-id: CWE-200
    cpe: cpe:2.3:a:esphome:esphome:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: esphome
    product: esphome
    shodan-query:
      - title:"Login - ESPHome"
      - http.title:"login - esphome"
    fofa-query: title="login - esphome"
    google-query: intitle:"login - esphome"
  tags: panel,esphome,iot

http:
  - method: GET
    path:
      - '{{BaseURL}}/login'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'class="esphome-header'

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