gems hanami-controller 2.3.3
v2.3.3

50 minutes ago

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

Don't miss a new hanami-controller release

NewReleases is sending notifications on new releases.