🔍 CVE-2026-90896

0.0
CVSS Score
UNKNOWN
2026-09-14
2026-09-18 19:25
✅ 완료

🇰🇷 한글 설명

MarcosCamara01 Ecommerce Template의 특정 버전에서 결제 세션 조회 핸들러에 인증 메커니즘이 누락된 취약점이 발견되었습니다. 공격자가 유효한 Stripe 결제 세션 ID를 보유한 경우, 인증 없이 구매자의 이름, 이메일, 전화번호, 주소 및 내부 사용자 ID를 포함한 전체 세션 정보를 탈취할 수 있습니다.

💡 쉬운 설명

결제 완료 후 주소창에 남는 결제 번호만 알면, 누구나 다른 사람의 이름, 연락처, 주소 같은 개인정보를 몰래 볼 수 있는 보안 구멍이 있습니다. 결제 정보가 담긴 페이지를 조회할 때 '본인이 맞는지' 확인하는 절차가 빠져 있기 때문에 발생합니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

MarcosCamara01 Ecommerce Template (commit 91e273c 이전 버전)

⚔️ 공격 벡터

결제 완료 후 URL에 노출된 Stripe Checkout Session ID를 사용하여 GET /api/stripe/checkout_sessions 엔드포인트에 직접 요청을 보냄

🛡️ 대응 방법

해당 엔드포인트에 auth.api.getSession()을 적용하여 인증을 강제하고, 요청한 사용자가 해당 세션의 소유자인지 확인하는 로직을 추가해야 함

🔧 검증 코드

응답 결과가 200 OK이면서 개인정보가 포함된 JSON 데이터가 반환되면 취약한 상태이며, 401 Unauthorized 또는 403 Forbidden이 반환되어야 안전함

Shell / Script
curl -i -X GET 'https://<target-domain>/api/stripe/checkout_sessions?session_id=cs_test_123'

💻 영향받는 소프트웨어

Log Server