id: froxlor-database-backup

info:
  name: Froxlor Server Management Backup File - Detect
  author: tess
  severity: medium
  description: Froxlor Server Management backup file was detected.
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"Froxlor Server Management Panel"
  tags: froxlor,backup,exposure,disclosure

http:
  - method: GET
    path:
      - '{{BaseURL}}/install/froxlor.sql'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "DROP TABLE IF EXISTS"
          - "CREATE TABLE"
          - "PRIMARY KEY"
        condition: and

      - type: word
        part: header
        words:
          - "application/sql"
          - "application/x-sql"
          - "application/octet-stream"
          - "text/plain"
        condition: or

      - type: status
        status:
          - 200

# digest: 4b0a0048304602210083f9a13e9920b26904cd30bb0da637a9671d12f0c8b6adede4a64cd9f85623a20221008cf96c3ec20c6498a7fec03a14c0df41e072a30dc2ebd7477320a35e3343100a:922c64590222798bb761d5b6d8e72950
