id: filebrowser-unauth

info:
  name: File Browser Dashboard - Unauthenticated Access
  author: ritikchaddha
  severity: medium
  description: File Browser dashboard is exposed.
  reference:
    - https://filebrowser.org/
  metadata:
    verified: true
    max-request: 2
    shodan-query: http.favicon.hash:1052926265
  tags: misconfig,filebrowser,unauth

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/login"

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

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

      - type: word
        part: body
        words:
          - 'LoginPage":false'
          - '"NoAuth":true'
        condition: and
# digest: 4b0a00483046022100da1c15e871337b6d2edb6c710dcf7405e48711a44674e36497c51ad05293263b0221008d7acbbe5c793ad3e15cbd0aa7953fe6087a504ecf248f05a9e7b7418145fbec:922c64590222798bb761d5b6d8e72950