id: hfs-exposure

info:
  name: HFS Panel - Exposure
  author: tess,darses
  severity: unknown
  classification:
    cpe: cpe:2.3:a:rejetto:http_file_server:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: rejetto
    product: http_file_server
    shodan-query:
      - title:"HFS /"
      - "Set-Cookie: HFS_SID_="
      - http.favicon.hash:2124459909
  tags: misconfig,hfs,exposure,panel

http:
  - method: GET
    path:
      - '{{BaseURL}}'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "HFS ="
          - "Build-time:"
        condition: and

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        name: server-info
        group: 1
        regex:
          - ">HttpFileServer\\s+([\\d\\w\\.\\s]+)\\s*(随波汉化版)?</a>"

      - type: kval
        name: server-header
        part: header
        kval:
          - Server
# digest: 490a0046304402207be9317f3ab8dd9cc464061dd9a4b24a915e1275d5612e41ebce106f430378650220621e3e008827f6da7aa899e3f8f25598fe0d6058a22c4e221bcb81a01578ae00:922c64590222798bb761d5b6d8e72950