Patches unauthenticated order payment bypass (Broken Access Control)
Changes
- Replaced generic nonces with per-order nonces for all 4 AJAX handlers (, , , )
- Added order status verification to
mark_paid(must be pending/on-hold) - Added invoice existence check to
mark_paid(invoice must be generated first) - Added ownership checks for logged-in users on
confirm_payment,mark_paid, andsave_ndebit
Upgrade notice
All sites should update immediately. This fixes an unauthenticated order payment bypass vulnerability.