The Booking Package plugin for WordPress is vulnerable to Price Manipulation in versions up to, and including, 1.7.06 This is due to the intentForStripe() function passing user-controlled $_POST['amount'] directly to the Stripe PaymentIntent API without validation, and the commitStripe() function ignoring the server-calculated amount when confirming the payment. While the server correctly calculates the booking cost via getAmount() based on services, guests, taxes, and coupons, this calculated amount is never validated against or used to update the PaymentIntent because the critical code in CreditCard.php that would include the calculated amount in the PaymentIntent update is commented out. This makes it possible for unauthenticated attackers to book services at arbitrary prices (e.g., $0.01 instead of $500.00) by manipulating the amount parameter during PaymentIntent creation and completing the booking with the fraudulent payment.
The Booking Package WordPress plugin versions up to 1.7.06 contains a price manipulation vulnerability where user-controlled payment amounts bypass server validation, allowing attackers to book services at arbitrary prices. Unauthenticated attackers can exploit the intentForStripe() and commitStripe() functions to manipulate Stripe PaymentIntent amounts without proper verification against calculated costs.
تحتوي إضافة Booking Package للـ WordPress على ثغرة في التحقق من صحة المبالغ المالية حيث يتم تمرير مبلغ الدفع الذي يتحكم به المستخدم مباشرة إلى واجهة برمجة تطبيقات Stripe دون التحقق من صحته. يمكن للمهاجمين غير المصرح لهم التلاعب بمعاملات الدفع وحجز الخدمات برسوم منخفضة جداً أو مجاناً تقريباً. المشكلة تكمن في أن الكود الحرج الذي يتحقق من المبلغ المحسوب على الخادم معلق ولا يتم استخدامه في تحديث PaymentIntent.
The Booking Package WordPress plugin versions up to 1.7.06 contains a price manipulation vulnerability where user-controlled payment amounts bypass server validation, allowing attackers to book services at arbitrary prices. Unauthenticated attackers can exploit the intentForStripe() and commitStripe() functions to manipulate Stripe PaymentIntent amounts without proper verification against calculated costs.
Update the Booking Package plugin to version 1.7.07 or later immediately. Verify that the server-calculated amount from getAmount() is properly validated and used in PaymentIntent updates. Implement server-side price verification before processing any payment. Review Stripe webhook logs for suspicious transactions with mismatched amounts. Consider implementing additional payment validation middleware.
قم بتحديث إضافة Booking Package إلى الإصدار 1.7.07 أو أحدث فوراً. تحقق من أن المبلغ المحسوب من الخادم يتم التحقق منه بشكل صحيح واستخدامه في تحديثات PaymentIntent. قم بتنفيذ التحقق من السعر على جانب الخادم قبل معالجة أي دفعة. راجع سجلات Stripe webhook للمعاملات المريبة ذات المبالغ غير المتطابقة. فكر في تنفيذ برنامج وسيط إضافي للتحقق من الدفع.