Ruby on Rails (Ruby) · CWE-918
Ruby on Rails: Server-Side Request Forgery (SSRF) (DAST & CI Regression Guard)
Automate ZAP staging probes and Semgrep PR gates. Block untrusted URLs, 302 redirects, and IPv6-mapped IPv4 addresses targeting private networks. Tailored for Ruby on Rails: Scope ActiveRecord finders through current_user associations and strong_parameters.
Coverage ledger tracking key
surface:rails::boundary:ssrf-egress::angle:dast-ci
ZAP 40046 SSRF staging probe
Risk boundary
// Unverified Ruby on Rails path (CWE-918 · DAST & CI Regression Guard)
// Handler accepts input without validating current_user.id.Hardened guard
// Hardened Ruby on Rails (CWE-918 · DAST & CI Regression Guard)
// 1. Scope ActiveRecord finders through current_user associations and strong_parameters
// 2. Resolve DNS once, block private/link-local/loopback CIDRs, disable redirects, and pin the IP.Verification steps
- 01Seed coverage-ledger.json for every Ruby on Rails handler touching Server-Side Request Forgery (SSRF).
- 02Trace request parameters through current_user.id validation down to the sink.
- 03Verify with paired positive/negative evidence via novel-vuln-and-cve-research.