Submeter #1055167: osCommerce osCommerce V4 4.14.63493 SQL Injectioninformação

TítuloosCommerce osCommerce V4 4.14.63493 SQL Injection
DescriçãoosCommerce V4 (version 4.14.63493) contains a second-order SQL injection via cart product attributes that fires during order placement. Product attribute identifiers submitted when adding an item to the cart (POST id[<products_id>][<option_id>]=<value_id>) are passed to the cart unmodified by lib/frontend/components/CartFactory.php (around lines 436/512/517), stored raw in lib/common/classes/shopping_cart.php (only the product uprid key is normalized to digits), and later concatenated unescaped into SQL in lib/common/classes/extended/OrderAbstract.php save_products() (around lines 1266/1268/1275): "... and pa.options_id = '" . $this->products[$i]['attributes'][$j]['option_id'] . "' ... and pa.options_values_id = '" . $this->products[$i]['attributes'][$j]['value_id'] . "'". Both the download-enabled branch and the default branch interpolate the raw values, and tep_db_prepare_input does not escape quotes, so a quoted-context payload injects. The injection executes at checkout; it is reachable by a guest when guest checkout is enabled, otherwise by any authenticated customer. The payload must ride on an attribute key whose integer part matches a real product attribute. CWE-89. Remediation: integer-cast and/or bind option_id and value_id before use in SQL and validate cart attribute identifiers against the product's real attributes at add time. Credit: Agit Isik (IOVA LTD) Contact: [email protected]
Fonte⚠️ https://gist.github.com/agtt/440a3c84fb3a48d4a4164fd15f2161e5
Utilizador
 agit (UID 102449)
Submissão24/10/2026 02h13 (há 1 mês)
Moderação23/11/2026 04h29 (1 month later)
EstadoAceite
Entrada VulDB442246 [osCommerce 4.14.63493 Order Placement OrderAbstract.php save_products id Injeção SQL]
Pontos20

Do you need the next level of professionalism?

Upgrade your account now!