id: filebrowser-login-panel

info:
  name: File Browser Login Panel - Detect
  author: ritikchaddha
  severity: info
  reference:
    - https://filebrowser.org/
  classification:
    cpe: cpe:2.3:a:filebrowser:filebrowser:*:*:*:*:*:*:*:*
  metadata:
    max-request: 3
    product: filebrowser
    shodan-query: http.favicon.hash:1052926265
    vendor: filebrowser
    verified: true
  tags: panel,filebrowser,detect

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/login"
      - "{{BaseURL}}/static/img/icons/favicon-32x32.png"

    stop-at-first-match: true
    host-redirects: true
    max-redirects: 2

    matchers-condition: or
    matchers:
      - type: word
        part: body
        words:
          - 'File Browser</title>'
          - 'window.FileBrowser'
        condition: or

      - type: dsl
        dsl:
          - "status_code==200 && ('1052926265' == mmh3(base64_py(body)))"
# digest: 4a0a00473045022100e250cead78bc0fe3fda24251d2011aa1b7e83d567a14ca2a0ea2edf4bdb530360220525857f62f50caa2ab05585c55118a19c6b9d6c99bf06dcf0d02ee37d2dacfc0:922c64590222798bb761d5b6d8e72950