Ruby on Rails validate_digest_response() security bypass
|rubyonrails-validatedigest-sec-bypass (51528)||Medium Risk|
Ruby on Rails could allow a remote attacker to bypass security restrictions, caused by the failure to return a false when processing "nil" credentials by the validate_digest_response() function. By sending invalid authentication credentials, a remote attacker could exploit this vulnerability to bypass the HTTP authentication and gain unauthorized access to the system.
Reportedly, this vulnerability will be fixed in a future release of Ruby on Rails (2.3.3), available from the Ruby on Rails Web site. See References.
For other distributions:
Apply the appropriate update for your system. See References.
- Apple Web site: About the security content of Security Update 2010-002 / Mac OS X v10.6.3.
- Nate's Tumble Log Web site: Security hole found in Rails 2.3's http_authentication.rb.
- Ruby on Rails Web site: Security Problem with authenticate_with_http_digest.
- BID-35579: Ruby on Rails 'http_authentication.rb' Nil Credentials Authentication Bypass Vulnerability
- CVE-2009-2422: 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.
- GLSA-200912-02: Ruby on Rails: Multiple vulnerabilities
- OSVDB ID: 55664: Ruby on Rails HTTP Digest Authentication nil User Bypass
- SA35702: Ruby on Rails HTTP Authentication Security Bypass
- VUPEN/ADV-2009-1802: Ruby on Rails HTTP Digest Authentication Security Bypass Vulnerability
- Apple Mac OS X 10.5.8
- Apple Mac OS X 10.6
- Apple Mac OS X 10.6.1
- Apple Mac OS X 10.6.2
- Apple Mac OS X Server 10.5.8
- Apple Mac OS X Server 10.6
- Apple Mac OS X Server 10.6.1
- Apple Mac OS X Server 10.6.2
- Gentoo Linux
- Ruby on Rails Ruby on Rails 2.3.2
- Ruby on Rails Ruby on Rails 2.3.3
Jun 03, 2009
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.