# Sunshine Photo Cart <= 3.7.5 - Unauthenticated Payment Bypass via Square Payment Method

- **ID:** WPSEC-2026-1476
- **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.8
- **Fixed in:** 3.8 (Update to 3.8 or later.)
- **Severity:** High 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N)
- **Weakness:** CWE-345
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (as of 2026-10-22)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/sunshine-photo-cart
- **Fix released:** 2026-10-21
- **Published:** 2026-10-22
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1476/

## Description

The Sunshine Photo Cart plugin for WordPress is vulnerable to Payment Bypass via the Square payment method in all versions up to, and including, 3.7.5, due to the checkout trusting the 'square_payment_id' value submitted by the browser without confirming with Square that the payment exists, was completed, and matches the order's amount, currency and reference. This makes it possible for unauthenticated attackers to have orders marked as paid without paying, or with a cheaper or unrelated Square payment.

## References

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

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

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.
