# Sunshine Photo Cart – Client Photo Gallery & Photo Proofing for Photographers <= 3.7.4 - Unauthenticated Insecure Direct Object Reference to Restricted Gallery Image Exposure via Share, Add to Cart, and Product Options AJAX Actions

- **ID:** WPSEC-2026-0959
- **Plugin:** Sunshine Photo Cart – Client Photo Gallery & Photo Proofing for Photographers (`sunshine-photo-cart`), https://wordpress.org/plugins/sunshine-photo-cart/
- **Affected versions:** all versions before 3.7.5
- **Fixed in:** 3.7.5 (Update to 3.7.5 or later.)
- **Severity:** Medium 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N)
- **Weakness:** CWE-639
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (as of 2026-10-14)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/sunshine-photo-cart
- **Fix released:** 2026-10-13
- **Published:** 2026-10-14
- **URL:** https://wpsec.com/vuln/WPSEC-2026-0959/

## Description

The Sunshine Photo Cart plugin for WordPress is vulnerable to Insecure Direct Object Reference via the share, add to cart, product details and store product modal AJAX handlers in all versions up to, and including, 3.7.4, due to missing gallery access checks on the user-supplied 'imageId', 'image_id', 'imageIds' and 'galleryId' values. Some of these handlers only checked whether the gallery was visible, not whether the visitor had unlocked it. This makes it possible for unauthenticated attackers to retrieve images, image names and image URLs from password-protected, email-gated, account-only or private galleries they are not authorized to access.

## References

- https://wpsec.com/vuln/WPSEC-2026-0959/
- https://plugins.svn.wordpress.org/sunshine-photo-cart/tags/3.7.5/
- https://wordpress.org/plugins/sunshine-photo-cart/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-0959/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
