id: mitel-micollab-panel

info:
  name: Mitel MiCollab Login Panel - Detect
  author: righettod,darses
  severity: info
  description: |
    Mitel MiCollab login panel was detected.
  reference:
    - https://www.mitel.com/products/micollab-miteam-meetings-collaboration-software
  classification:
    cpe: cpe:2.3:a:mitel:micollab:*:*:*:*:-:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: mitel
    product: micollab
    shodan-query:
      - http.html:"MiCollab End User Portal"
      - http.favicon.hash:-1922044295
    fofa-query:
      - '"MiCollab End User Portal" && title=="Redirecting..."'
      - icon_hash="-1922044295"
  tags: panel,mitel,login,detect,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/wd/en-us/wapplink.asp"
      - "{{BaseURL}}/portal/"

    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - "status_code == 200"
          - "contains_any(to_lower(body), 'micollab', 'mitel_logo', 'micollab end user portal')"
        condition: and

    extractors:
      - type: regex
        name: version
        group: 1
        regex:
          - "SVR_VER=([\\d.\\-]+)"
# digest: 490a0046304402202e64b58cd1386058f98078747866b10117c8266d9f5162075bae4df2f15a57a402200ea26f7f2c2c42bbf16345631829d0224208742ddaa4151c13b2929607320bab:922c64590222798bb761d5b6d8e72950