CSRF in Rubyonrails Rails
CVE-2011-0447
Ruby on Rails 2.1.x, 2.2.x, and 2.3.x before 2.3.11, and 3.x before 3.0.4, does not properly validate HTTP requests that contain an X-Requested-With header, which makes it easier for remote attackers to conduct cross-site request forgery (CSRF) attacks via forged (1) AJAX or (2) API requests that leverage "combinations of browser plugins and HTTP redirects," a related issue to CVE-2011-0696.
Vulnerability class: CSRF (Cross-Site Request Forgery)
Published · last modified .
CVSS v2 metric
CVSS v2 base score 6.8 (Medium). Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.014, 73.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Rubyonrails Rails — versions 2.1.0, 2.1.1, 2.1.2
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (tdunning/github-advisory-parser). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- ADV-2011-0587 (vdb-entry)
- weblog.rubyonrails.org/2011/2/8/csrf-protection-bypass-in-ruby-on-rails (Patch, Vendor Advisory)
- www.securitytracker.com/id (vdb-entry)
- FEDORA-2011-2138 (vendor-advisory)
- www.securityfocus.com/bid/46291 (vdb-entry)
- DSA-2247 (vendor-advisory)
- [rubyonrails-security] 20110209 CSRF Protection Bypass in Ruby on Rails (mailing-list, Patch)
- FEDORA-2011-4358 (vendor-advisory)
- secunia.com/advisories/43274 (third-party-advisory)
- ADV-2011-0877 (vdb-entry)