Block Injection Attacks in Magento 2 Checkout
This module sets a 30 character max input (30 characters per each field) for:
- Frontend Validation (input for shipping and billing fields)
- Backend Validation (PHP placeOrder with $quote)
- GraphQl API Protection (via cURL or the like)
Standard Magento 2 Module:
- Add SethIam/OrderProtection to your App/Code directory
- Run in the CLI: setup:upgrade, setup:di:compile, cache:flush
- Good to go.