Ruby on Rails validate_digest_response() security bypass

rubyonrails-validatedigest-sec-bypass (51528) The risk level is classified as MediumMedium Risk

Description:

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.

*CVSS:

Base Score: 5
  Access Vector: Network
  Access Complexity: Low
  Authentication: None
  Confidentiality Impact: None
  Integrity Impact: Partial
  Availability Impact: None
 
Temporal Score: 3.8
  Exploitability: Unproven
  Remediation Level: Temporary-Fix
  Report Confidence: Confirmed

Consequences:

Bypass Security

Remedy:

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.

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

Platforms Affected:

  • 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

Reported:

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

Return to the main page

* 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.

About IBM Security Systems

IBM Security Systems include an extensive portfolio of hardware, software solutions, professional and managed services offerings covering the spectrum of IT and business security risks: people and identity, data and information, application and process, network, server and endpoint and physical infrastructure, empowering clients to innovate and operate their businesses on the most secure infrastructure platforms. Through world-class solutions that address risk across the enterprise, IBM helps organizations build a strong security posture that helps reduce costs, improve service, and manage risk. IBM X-Force(R) Research and Development is one of the most renowned commercial security research and development groups in the world. For more information on how to address today's biggest risks, please visit us at ibm.com/security.