rails vulnerable to improper authentication
Published 24 Oct 2017 · Updated 16 Feb 2024
Is your project on an affected rails?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <2.3.3
- Fixed in
- 2.3.3
bundle update --conservative rails # Gemfile: '>= 2.3.3'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.
Is GHSA-rxq3-gm4p-5fj4 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected rails, and gives you the command that fixes it.
More advisories for rails
- MediumCVE-2024-26143Rails has possible XSS Vulnerability in Action Controller · 27 Feb 2024
- HighCVE-2006-4112Rails Denial of Service vulnerability · 24 Oct 2017
- HighCVE-2006-4111Ruby on Rails vulnerable to code injection · 24 Oct 2017
- MediumCVE-2009-4214Moderate severity vulnerability that affects rails · 24 Oct 2017
- MediumCVE-2007-5379Moderate severity vulnerability that affects rails · 24 Oct 2017
- MediumCVE-2007-3227Moderate severity vulnerability that affects rails · 24 Oct 2017
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2009-2422
- Linkexchange.xforce.ibmcloud.com/vulnerabilities/51528
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2009-2422.yml
- Linkweb.archive.org/web/20090711160153/http://secunia.com/advisories/35702
- Linkweb.archive.org/web/20200229192617/http://www.securityfocus.com/bid/35579
- Linklists.apple.com/archives/security-announce/2010//Mar/msg00001.html
- Linkn8.tumblr.com/post/117477059/security-hole-found-in-rails-2-3s
- Linksupport.apple.com/kb/HT4077
- Linkweblog.rubyonrails.org/2009/6/3/security-problem-with-authenticate_with_http_digest
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.