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

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