Direct Checkout by URL
The module does not properly check the product quantities provided in the web link. Anyone without logging in could change the total of their own order and pay less than the correct price. They could not view any hidden data.
- Who could do thisAnyone visiting the site. No login needed.
- Does it apply to youA site is affected if an attacker has a role with the access right to use direct checkout.
- Has it been used in attacksNo sign of it.
- How urgentDrupal rates this moderately critical. Include it in your next routine update, within the month.
Tell your developerUpdate Direct Checkout by URL to 8.x-1.6.
For developers: what the fix changed
The fix in src/Controller/CheckoutByUrlController.php validates the quantity of the order item before adding it to the cart and throws a BadRequestHttpException if the quantity is invalid.
Also in this release Fixed phpstan and cspell jobs, and added tests for the new validation logic.
.cspell-project-words.txt+1 −0src/Controller/CheckoutByUrlController.php+12 −9 fix