id: mfiles-web-detect

info:
  name: M-Files Web Login Panel - Detect
  author: Nodauf
  severity: info
  description: M-Files Web login panel was detected.
  reference:
    - https://www.m-files.com/about/trust-center/security-advisories/
  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:m-files:m-files:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: m-files
    product: m-files
    shodan-query:
      - http.html:"M-Files Web"
      - http.html:"m-files web"
    fofa-query: body="m-files web"
  tags: panel,m-files,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/Login.aspx"

    stop-at-first-match: true

    matchers-condition: or
    matchers:
      - type: regex
        part: body
        regex:
          - '<title>(.*)M-Files Web(.*)</title>'

      - type: word
        part: body
        words:
          - 'M-Files user'
          - 'M-Files authentication'
        condition: or
# digest: 4a0a00473045022100ae2b463afc2cbd7e62061c64739eded143f2da15d0f435acd07a71dbb9935e3b022078de9930dc2014a194a898b2e077072fbb5e50624b5dfcdad7f1838fa94d0362:922c64590222798bb761d5b6d8e72950