Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
Fix for:Negative-quantity cart manipulation allows creation of orders with negative grand totals https://github.com/givanz/Vvveb/security/advisories/GHSA-75x2-j47j-mg8j reported by https://github.com/CyberWarrior9
givanze7f2843618f6
diff --git a/system/cart/cart.php b/system/cart/cart.phpindex a36013f..af6e04f 100755--- a/system/cart/cart.php+++ b/system/cart/cart.php@@ -396,6 +396,8 @@ class Cart {$key = str_replace('"', '', $key);+ $quantity = max(1, $quantity);+if (isset($this->products[$key])) {$this->products[$key]['quantity'] += $quantity;} else {