Skip to content

v2.3.3

Latest

Choose a tag to compare

@timriley timriley released this 01 Dec 13:25
· 48 commits to main since this release
v2.3.3
c56882f

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.raw when Hanami Router also gave them as route params, so CSRF protection could not find _csrf_token and 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=2 override the :id in /users/1. (@parndt in GHSA-55j2-5pph-56mv)

Compare v2.3.2 ... v2.3.3