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
    product: filebrowser
    vendor: filebrowser
    fofa-query: icon_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: 4a0a0047304502205113a662037d3159a44a20076869d0940ff1e90291e237f4b3798ef73c1151dc022100ece7dfddb324c459e9e2413828881ec55947de10f74428655290b4da77af1255:922c64590222798bb761d5b6d8e72950