Fixed
- Accept the CSRF token from a form body in routed requests. With the fix for GHSA-55j2-5pph-56mv alone, the String keys of query string and form body params were dropped from
params.rawwhen Hanami Router also gave them as route params, so CSRF protection could not find_csrf_tokenand rejected every form submission. Both keys are now kept, with the same value. (@parndt in #537)
Security
- Give route params precedence over query string and form body params with the same name in actions with a contract. Route params have Symbol keys and the others have String keys, so both were kept and the contract read the query or form value, letting
?id=2override the:idin/users/1. (@parndt in GHSA-55j2-5pph-56mv)