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:
    verified: true
    max-request: 3
    vendor: filebrowser
    product: filebrowser
    shodan-query: http.favicon.hash:1052926265
    fofa-query: icon_hash=1052926265
  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: 4a0a0047304502206bc0f22e33e086b06415356dd9b25610f9a28d2a18628499c74e728d6b76df7d022100c37ecd1ec51fe4ab6d810f000550ac55d1587fa1a5b89f8c25d0ddf7ee090ce2:922c64590222798bb761d5b6d8e72950