id: emoncms-panel

info:
  name: OpenEnergyMonitor emonCMS - Login Panel
  author: rxerium
  severity: info
  description: |
    emonCMS is an open-source energy monitoring web application by OpenEnergyMonitor,
    used in homes and small businesses to track electricity, gas, and temperature.
    The login page is commonly exposed on port 80, 443, or 8010.
  reference:
    - https://emoncms.org/
    - https://github.com/emoncms/emoncms
  metadata:
    max-request: 1
    verified: true
    vendor: OpenEnergyMonitor
    product: emoncms
    shodan-query: 'http.title:"Emoncms - user login"'
  tags: panel,emoncms,energy,iot,ics,monitoring,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Emoncms - user login'

      - type: word
        part: header
        words:
          - 'EMONCMS_SESSID'

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