| Titel | osCommerce osCommerce V4 4.14.63493 SQL Injection |
|---|
| Beschreibung | osCommerce 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] |
|---|
| Quelle | ⚠️ https://gist.github.com/agtt/440a3c84fb3a48d4a4164fd15f2161e5 |
|---|
| Benutzer | agit (UID 102449) |
|---|
| Einreichung | 24.10.2026 02:13 (vor 1 Monat) |
|---|
| Moderieren | 23.11.2026 04:29 (1 month later) |
|---|
| Status | Akzeptiert |
|---|
| VulDB Eintrag | 442246 [osCommerce 4.14.63493 Order Placement OrderAbstract.php save_products id SQL Injection] |
|---|
| Punkte | 20 |
|---|