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

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