提出 #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)
送信2026年10月24日 02:17 (1 月 ago)
モデレーション2026年11月23日 04:29 (1 month later)
ステータス承諾済み
VulDBエントリ442247 [osCommerce 4.14.63493 Virtual Gift Card Basket CatalogController.php actionGiftCard products_id 特権昇格]
ポイント20

Interested in the pricing of exploits?

See the underground prices here!