| 제목 | 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. AM 02:17 (1 월 ago) |
|---|
| 모더레이션 | 2026. 11. 23. AM 04:29 (1 month later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 442247 [osCommerce 4.14.63493 Virtual Gift Card Basket CatalogController.php actionGiftCard products_id 권한 상승] |
|---|
| 포인트들 | 20 |
|---|