إرسال #1055168: osCommerce osCommerce V4 4.14.63493 Authorization Bypassالمعلومات

عنوانosCommerce osCommerce V4 4.14.63493 Authorization Bypass
الوصفosCommerce V4 (version 4.14.63493) contains an unauthenticated insecure direct object reference in the virtual gift card add action lib/frontend/controllers/CatalogController.php (actionGiftCard, add_gift_card). The pending gift-card record is looked up with "... where length(virtual_gift_card_code)=0 and virtual_gift_card_basket_id='<(int) from the products_id request parameter>' and products_id='...' and currencies_id='...'" and, for a guest, "session_id = '" . Yii::$app->getSession()->get('gift_handler') . "'". A fresh or crafted guest session has no gift_handler, so the condition becomes session_id = ''. Logged-in customers' rows are stored with session_id => (userId>0 ? '' : gift_handler), i.e. '', so the guest's empty value matches them. On a match (virtual_gift_card_basket_id > 0) the code executes tep_db_perform(..., 'update', "virtual_gift_card_basket_id = '<(int)>'"), overwriting the victim's recipient name/email, message, sender name and design. Impact: an unauthenticated attacker can enumerate virtual_gift_card_basket_id (supplied via the products_id parameter) and overwrite a logged-in customer's pending gift-card entry, redirecting delivery of a purchased gift card to an attacker-chosen recipient. CWE-639. Remediation: never treat an empty session_id as an ownership match, require a non-empty handler for guests, bind gift-card records to the authenticated customer, and reject empty-key lookups. Credit: Agit Isik (IOVA LTD) Contact: [email protected]
المصدر⚠️ https://gist.github.com/agtt/97d956d30c95d27da1b0b5c90b5de5d9
المستخدم
 agit (UID 102449)
ارسال24/10/2026 02:17 AM (1 شهر منذ)
الاعتدال23/11/2026 04:29 AM (1 month later)
الحالةتمت الموافقة
إدخال VulDB442247 [osCommerce 4.14.63493 Virtual Gift Card Basket CatalogController.php actionGiftCard products_id تجاوز الصلاحيات]
النقاط20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!