ZeroHour

CVE-2026-90896

Missing Authentication in MarcosCamara01 Ecommerce Template Leaks Stripe Buyer PII

CVSS 4.0
8.2 high
EPSS
Published
()
Modified
AI analysis

The GET /api/stripe/checkout_sessions endpoint in MarcosCamara01's Ecommerce Template lacks any authentication or ownership check, directly calling stripe.checkout.sessions.retrieve() on the supplied session id and returning the full session object to whoever asks. An unauthenticated remote attacker who obtains a valid Stripe Checkout Session id (cs_...) can therefore read the buyer's name, email, phone, billing address, amount paid, and internal userId. Session ids leak easily in practice because the template's success_url places the session id in the browser URL (/result?session_id=...), exposing it via Referer headers, analytics tools, server access logs, and shared-machine browser history. All deployments built from the template before commit 91e273c are affected; sibling endpoints like POST /api/stripe/payment already enforced auth.api.getSession(), so only this handler was unprotected. No public PoC exists, the flaw is not in the CISA KEV catalog, and no exploitation has been reported.

What to do: Update to commit 91e273c or later, and verify the checkout_sessions handler now enforces an authenticated session and matches the session's userId to the caller before returning data. If you cannot update immediately, block or restrict GET /api/stripe/checkout_sessions at the reverse proxy/WAF and audit access logs for unauthenticated hits carrying cs_ ids. Also stop putting CHECKOUT_SESSION_ID in the success_url (use a server-side lookup after redirect) and scrub session ids from logs and analytics to cut off the id-leakage path.

Affected
MarcosCamara01 Ecommerce Templateall code before commit 91e273c
Estimated exposure
No basis for an estimate.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Missing Authentication for Critical Function (CWE-306) in the checkout session lookup handler (src/app/api/stripe/checkout_sessions/route.ts), exposed at GET /api/stripe/checkout_sessions, in MarcosCamara01 Ecommerce Template before commit 91e273c allows a remote, unauthenticated attacker holding a valid Stripe Checkout Session id (cs_...) to retrieve the full session object, including the buyer's name, email, phone, billing address, amount paid and internal userId, because the GET handler calls stripe.checkout.sessions.retrieve() and returns the result without checking for an authenticated session or session ownership. Sibling endpoints such as POST /api/stripe/payment already enforced authentication via auth.api.getSession(); this endpoint had no access control whatsoever. The session_id is exposed in the buyer's own browser URL after payment (success_url = /result?session_id={CHECKOUT_SESSION_ID}), so it leaks through Referer headers, analytics tools, server access logs and shared-machine browser history, resulting in disclosure of the buyer's personal data to an unauthenticated actor.

Weakness
CWE-306
Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.