Katalog CVE

CVE-2026-115450

WysokieCVSS 7.1
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Streszczenie

W przepływie koszyka i zamówienia szablonu MarcosCamara01 Ecommerce Template występuje zewnętrzna kontrola parametru uznawanego za niezmienny (CWE-472). Endpoint POST /api/user/cart przyjmuje variantId (co zapisuje zamówienie) i stripeId (co obciąża Stripe) jako niezależne pola, bez sprawdzenia, czy stripeId należy do variantId. POST /api/stripe/payment buduje pozycje Stripe Checkout z zapisanego stripeId, a webhook checkout.session.completed tworzy produkty zamówienia z variantId, więc zamówienie rejestruje produkt, za który nie zapłacono. Wszystkie stripeId są publicznie czytelne, więc nie trzeba nic zgadywać.

Ocena ryzyka

Uwierzytelniony użytkownik może zamawiać dowolne produkty w cenie najtańszej pozycji w katalogu, wielokrotnie i bez limitu. Prowadzi to do strat finansowych i niespójnych rekordów zamówień.

Rekomendacja

Zweryfikuj po stronie serwera, że stripeId odpowiada variantId, i wyprowadzaj cenę wyłącznie z zaufanego źródła. Zaktualizuj szablon i przejrzyj istniejące zamówienia pod kątem niezgodności.

Inne podatności w MarcosCamara01 Ecommerce Template

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

External Control of Assumed-Immutable Web Parameter (CWE-472) in the cart and checkout flow of MarcosCamara01 Ecommerce Template allows an authenticated user with no special privileges to be charged the price of one product while placing an order for another, because POST /api/user/cart accepts variantId, which determines what the order records, and stripeId, which determines what Stripe charges, as two independent fields of the request body, stores both on the cart row, and no check requires the stripeId to be the one that belongs to the variantId. POST /api/stripe/payment builds the Stripe Checkout line items from the stored value, as { price: item.stripeId, quantity }, so the amount charged is the amount of that Stripe price. The checkout.session.completed webhook then creates the order products from the variantId of the same cart row, so the order records a product that was not paid for. Every stripeId in the catalogue is readable by any visitor, so no value has to be guessed. This results in orders for goods at the price of the cheapest item in the catalogue, repeatable without limit, and in order records whose amount does not correspond to the product they list.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS