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.
Advisories
Source ID Title
Github GHSA Github GHSA GHSA-rxq3-gm4p-5fj4 rails vulnerable to improper authentication
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

No history.

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2024-08-07T05:52:14.795Z

Reserved: 2009-07-10T00:00:00

Link: CVE-2009-2422

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2009-07-10T15:30:00.250

Modified: 2025-04-09T00:30:58.490

Link: CVE-2009-2422

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses