Submeter #1055168: osCommerce osCommerce V4 4.14.63493 Authorization Bypassinformação

TítuloosCommerce osCommerce V4 4.14.63493 Authorization Bypass
DescriçãoosCommerce 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]
Fonte⚠️ https://gist.github.com/agtt/97d956d30c95d27da1b0b5c90b5de5d9
Utilizador
 agit (UID 102449)
Submissão24/10/2026 02h17 (há 1 mês)
Moderação23/11/2026 04h29 (1 month later)
EstadoAceite
Entrada VulDB442247 [osCommerce 4.14.63493 Virtual Gift Card Basket CatalogController.php actionGiftCard products_id Elevação de Privilégios]
Pontos20

Want to know what is going to be exploited?

We predict KEV entries!