codesamplex

Sample

Prevent Rack::Protection::AuthenticityToken from denying safe GET requests when session middleware is absent, while validating masked and unmasked CSRF tokens on unsafe requests

sha256:cbdc3c3ea3ec557a27fc8fb08067ec858f4e4f30056c1856d23e37bef67466a5

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Prevent Rack::Protection::AuthenticityToken from denying safe GET requests when session middleware is absent, while validating masked and unmasked CSRF tokens on unsafe requests HOW
Packages
rack-protection 4.2.1
Environment
ruby
Created
2026-08-16T16:29:45Z

Commonly assumed

AuthenticityToken passes safe GET requests through to downstream handlers without requiring an active session store.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts