id: emqx-panel

info:
  name: EMQX Login Panel - Detect
  author: righettod
  severity: info
  description: |
    EMQX login panel was detected.
  reference:
    - https://www.emqx.io/
  classification:
    cpe: cpe:2.3:a:emqx:emqx:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: emqx
    product: emqx
    shodan-query: http.title:"EMQX Dashboard"
  tags: panel,emqx,login,detect,discovery

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

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(to_lower(body), "<title>emqx dashboard", "emqx-dashboard")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - 'but\s+(emqx\-dashboard[0-9a-z\-]+)'
# digest: 4b0a00483046022100d9e6598f4b55e14535ab664719f9341dc207198102f60f163efd5269ade2f609022100b200821ca417f6efd9dbeb3dd8706128e0b8f3cfd57f158f2593c3a6ffebbbc0:922c64590222798bb761d5b6d8e72950