{"id":"GHSA-rxq3-gm4p-5fj4","summary":"rails vulnerable to improper authentication","details":"The example code for the digest authentication functionality (http_authentication.rb) in Ruby on Rails before 2.3.3 defines an authenticate_or_request_with_http_digest block that returns nil instead of false when the user does not exist, which allows context-dependent attackers to bypass authentication for applications that are derived from this example by sending an invalid username without a password.","aliases":["CVE-2009-2422"],"modified":"2024-02-16T08:14:01.612807Z","published":"2017-10-24T18:33:38Z","database_specific":{"github_reviewed_at":"2020-06-16T21:56:22Z","nvd_published_at":"2009-07-10T15:30:00Z","cwe_ids":["CWE-287"],"severity":"CRITICAL","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2009-2422"},{"type":"WEB","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/51528"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2009-2422.yml"},{"type":"WEB","url":"https://web.archive.org/web/20090711160153/http://secunia.com/advisories/35702"},{"type":"WEB","url":"https://web.archive.org/web/20200229192617/http://www.securityfocus.com/bid/35579"},{"type":"WEB","url":"http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html"},{"type":"WEB","url":"http://n8.tumblr.com/post/117477059/security-hole-found-in-rails-2-3s"},{"type":"WEB","url":"http://support.apple.com/kb/HT4077"},{"type":"WEB","url":"http://weblog.rubyonrails.org/2009/6/3/security-problem-with-authenticate_with_http_digest"}],"affected":[{"package":{"name":"rails","ecosystem":"RubyGems","purl":"pkg:gem/rails"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.3"}]}],"versions":["0.10.0","0.10.1","0.11.0","0.11.1","0.12.0","0.12.1","0.13.0","0.13.1","0.14.1","0.14.2","0.14.3","0.14.4","0.8.0","0.8.5","0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","0.9.4.1","0.9.5","1.0.0","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","1.2.5","1.2.6","2.0.0","2.0.1","2.0.2","2.0.4","2.0.5","2.1.0","2.1.1","2.1.2","2.2.2","2.2.3","2.3.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/10/GHSA-rxq3-gm4p-5fj4/GHSA-rxq3-gm4p-5fj4.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}