| Titolo | osCommerce osCommerce V4 4.14.63493 SQL Injection |
|---|
| Descrizione | osCommerce V4 (version 4.14.63493) contains an authenticated IDOR and SQL injection in the checkout order-restart action lib/frontend/controllers/CheckoutController.php (actionRestart). The ownership check "if (!$orderModel || $orderModel->customers_id != Yii::$app->user->getId()) { $this->goHome(); }" does not stop execution: Yii's goHome() returns a Response object but does not terminate the request, and there is no return statement, so the code continues even when the order belongs to another customer. Execution then reaches Order::restock($order_id) and new shopping_cart($order_id). shopping_cart::restore_order() concatenates the raw identifier into SQL without escaping, e.g. "where orders_id = '" . $this->order_id . "'" (around lines 112, 116, 181). Impact: (1) IDOR - any logged-in customer can pass another customer's numeric order_id and the code restocks and loads that order's lines into the attacker's cart; (2) SQL injection - the ownership lookup only casts (int)$order_id while the raw string is reused, so a value that int-casts to an order the attacker owns (e.g. "<id>' ...") passes the check and the string payload reaches the unescaped restore_order() queries. CWE-639 + CWE-89. Remediation: return/exit immediately after goHome() on a failed ownership check, and integer-cast and bind the order id everywhere it is used.
Credit: Agit Isik (IOVA LTD)
Contact: [email protected] |
|---|
| Fonte | ⚠️ https://gist.github.com/agtt/cb70f34b3111a1a30b60a5777fc00168 |
|---|
| Utente | agit (UID 102449) |
|---|
| Sottomissione | 24/10/2026 02:12 (1 mese fa) |
|---|
| Moderazione | 23/11/2026 04:29 (1 month later) |
|---|
| Stato | Accettato |
|---|
| Voce VulDB | 442244 [osCommerce 4.14.63493 Checkout Order Restart CheckoutController.php actionRestart order_id iniezione SQL] |
|---|
| Punti | 20 |
|---|