Ruby on Rails (Ruby) · CWE-287
Ruby on Rails: JWT & Session Auth Bypass (Source & Boundary Audit)
Trace entrypoints to sinks and map coverage-ledger units. Eliminate alg=none, missing iss/aud validation, weak secrets, and fail-open auth guards. Tailored for Ruby on Rails: Scope ActiveRecord finders through current_user associations and strong_parameters.
Coverage ledger tracking key
surface:rails::boundary:broken-auth-jwt::angle:audit
ZAP 10105 / 10054 session token audit
Risk boundary
// Unverified Ruby on Rails path (CWE-287 · Source & Boundary Audit)
// Handler accepts input without validating current_user.id.Hardened guard
// Hardened Ruby on Rails (CWE-287 · Source & Boundary Audit)
// 1. Scope ActiveRecord finders through current_user associations and strong_parameters
// 2. Pin asymmetric verification algorithms cleanly and validate exp, iss, aud, and revocation.Verification steps
- 01Seed coverage-ledger.json for every Ruby on Rails handler touching JWT & Session Auth Bypass.
- 02Trace request parameters through current_user.id validation down to the sink.
- 03Verify with paired positive/negative evidence via zap-automation-auth.